Example of web application for regression fitting of parameters # control variables may be optionally defined here. These expressions # set the default values # $convergence_limit = .0001 #(real) $iteration_limit = 10000 #(integer) # $print_interval = 1 #(integer) # $coefficient_of_variation = 0.9 # (real) (should be named under_relaxation) # execution control # $solver = lqns (analytic) OR parasrvn (simulation) OR petrisrvn # (petri-net, needs GreatSPN2.0 tool from Genoa) # Parameter settings $name = value OR $name = v1, v2, v3... # OR $name = v1 v2 v3 OR $name = start-value:end-value , step-value. # Values are numeric. $nusers = $val1 #10 $DirDemand = $val2 #0.1 $WSDemand = $val3 #0.4 $appDph1 = $val4 #0.2 $appDph2 = $val5 #0.2 $DBopD = $val6 # 0.1 $mApp = $val7 # 1 $wsThreads = $val8 #par8 3 $think = $val9 #par9 5 # The rest of the file has exactly the same syntax as the orginal # lqns/srvn model file syntax except that the values of the named parameters # defined above may be used in place of hard-coded values. G "..." 0.00001 10000 1 0.9 -1 # Processor Information: No of processors P 0 # Processor parameters, ending with optional observation of throughput # of form: %u $obs-name #p ProcessorName SchedDiscipline [multiplicity, default = 1] # Discipline = f fifo|r random|p premptive| # h hol or non-pre-empt|s proc-sharing # multiplicity = m value (multiprocessor)|i (infinite) p InfP f i p WSP s m 2 p AppP s p DBP s # End of Processor Information -1 # Task Information: No of Tasks T 0 # Task parameters, with optional observation controls at end of line # of form: %u0 $varname..... total task utilization # %u2 $varname..... phase 2 utilization (any phase after u) # %f $varname..... throughput # %pu $varname..... processor utilization of the task #t TaskName RefFlag EntryList -1 Processor [multiplicity] # RefFlag = r (reference or user)|n (other) # multiplicity = m value (multiprocessor)|i (infinite) t Users r users -1 InfP m $nusers %f $Thru t Response n respTime -1 InfP i t WS n webServ -1 WSP m $wsThreads %u0 $WSutn t App n appOp -1 AppP m $mApp t Dir n dirServ -1 AppP t DB n dbOp -1 DBP m 1 %u0 $DButn # End of Task Information -1 #Entry Information: No. of Entries E 0 # Entry parameters, with observation controls at end of line # of form % $obs-name # ParameterToken EntryName Phase1value Phase2 Phase3 -1 # Tokens and Value Definitions are: # a External arrival rate of requests # %w $varname..... waiting time of requests at the entry. # s HostServiceRequests for EntryName # %u0 $varname..... total utilization of the entry # %u2 $varname..... utiliation of phase 2 (any phase) # %f $varname..... throughput of the entry # %pu $varname..... processor utilization of the entry # %s2 $varname..... total phase 2 service time of the entry (any phase) # %v $varname..... coefficient of variation of the service time #of phase 2 (or any phase in place of 2) # %fb $varname..... throughput bound calculated by lqns # %pw $varname..... processor waiting for execution in this entry # c HostServiceCoeeficientofVariation # f PhaseTypeFlag (0 for stochastic, 1 for deterministic no of calls) # These lines go Token FromEntry ToEntry Phase1Value Phase2 Phase3 -1 # Tokens and Value definitions are: # F ProbForwarding (forward to this entry rather than replying) # z AsynchronousCalls (or no. of sned-no-reply messages) # o Fanout (for replicated servers) # i FanIn (for replicated servers) # y SynchronousCalls (no. of rendezvous) # %w2 $varname.... waiting for service by a message sent to ToEntry s users 0 $think -1 y users respTime 0 1 -1 s respTime 0 0 -1 %s0 $RespTime y respTime webServ 1 -1 y respTime dirServ 0.1 -1 s dirServ $DirDemand -1 s webServ $WSDemand -1 y webServ appOp 0.7 -1 s appOp $appDph1 $appDph2 -1 %s1 $appServ y appOp dbOp 1.5 0.7 -1 s dbOp $DBopD -1 #End of Entry Information -1 # The next section provides the observation information to be reported. # It is a list of parameter names and observation varicable names, # and expressions in these variables, with names for the expressions # for which values will be printed in tabular format or plotted. # $0 = variable defines a variable to be printed first and to be used # as the independent variable for plots. # Plotting is a command line option -F gnu, (for gnuplot) or -F mat # (for matlab) R 0 $0 = $Thru $RespTime $AppResp = $appServ $WSutn $DButn -1