simulog *** qnap2 *** (octobre 1984) v03 (c) copyright by cii honeywell bull and inria, 1982 1 /declare/ integer n_disk = 2, n_term; & global variables 2 real visits(n_disk); & dimension n_disk must be init. 3 queue real serv_t; & param for every queue queue.serv_t 4 queue cpu,terms,disk(n_disk); & station identifiers 5 & 6 /station/ name=cpu; 7 service = exp(serv_t); & in a station, serv_t stands 8 & for name.serv_t 9 transit = disk(1 step 1 until n_disk), 10 visits (1 step 1 until n_disk), terms, 1; 11 & where list, rel. prob. list, where list, prob list ..; 12 & 13 /station/ name = disk(1 step 1 until n_disk); 14 transit = cpu; 15 service = exp(serv_t); 16 & 17 /station/ name = terms; 18 init = n_term; & params here do not have to be init 19 type = infinite; & standard types infinite, multiple, etc. 20 & default type is single server 21 service = exp(serv_t); 22 transit = cpu,1; 23 & 24 /exec/ begin 25 &init variables 26 visits(1):= 9; 27 visits(2):= 4; 28 disk(1).serv_t:= 0.015; 29 disk(2).serv_t:= 0.030; 30 cpu.serv_t := 0.15; 31 terms.serv_t:= 10; 32 & loop for multiple solutions 33 for n_term := 3,6,12,18 do 34 begin 35 & init variables for each if necessary (none here) 36 print("no of terminals = ", n_term); 37 solve; & qnap decides what solver to use (MVA by preference) 38 output; & default output variables and format 39 end; 40 end; no of terminals = 3. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *0.4783 *0.6631 *0.2080 * 3.189 * * * * * * * * * terms * 10.00 * 0. * 2.278 * 10.00 *0.2278 * * * * * * * * * disk 1 *0.1500e-01*0.3075e-01*0.3141e-01*0.1532e-01* 2.050 * * * * * * * * * disk 2 *0.3000e-01*0.2733e-01*0.2785e-01*0.3057e-01*0.9110 * * * * * * * * ******************************************************************* memory used: 3082 words of 4 bytes ( 1.19 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *0.4783 *0.6631 *0.2080 * 3.189 * * * * * * * * * terms * 10.00 * 0. * 2.278 * 10.00 *0.2278 * * * * * * * * * disk 1 *0.1500e-01*0.3075e-01*0.3141e-01*0.1532e-01* 2.050 * * * * * * * * * disk 2 *0.3000e-01*0.2733e-01*0.2785e-01*0.3057e-01*0.9110 * * * * * * * * ******************************************************************* no of terminals = 6. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *0.8165 * 2.008 *0.3690 * 5.443 * * * * * * * * * terms * 10.00 * 0. * 3.888 * 10.00 *0.3888 * * * * * * * * * disk 1 *0.1500e-01*0.5249e-01*0.5503e-01*0.1573e-01* 3.499 * * * * * * * * * disk 2 *0.3000e-01*0.4666e-01*0.4866e-01*0.3129e-01* 1.555 * * * * * * * * ******************************************************************* memory used: 3098 words of 4 bytes ( 1.19 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *0.8165 * 2.008 *0.3690 * 5.443 * * * * * * * * * terms * 10.00 * 0. * 3.888 * 10.00 *0.3888 * * * * * * * * * disk 1 *0.1500e-01*0.5249e-01*0.5503e-01*0.1573e-01* 3.499 * * * * * * * * * disk 2 *0.3000e-01*0.4666e-01*0.4866e-01*0.3129e-01* 1.555 * * * * * * * * ******************************************************************* no of terminals = 12. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *0.9970 * 7.123 * 1.072 * 6.647 * * * * * * * * * terms * 10.00 * 0. * 4.748 * 10.00 *0.4748 * * * * * * * * * disk 1 *0.1500e-01*0.6410e-01*0.6846e-01*0.1602e-01* 4.273 * * * * * * * * * disk 2 *0.3000e-01*0.5697e-01*0.6040e-01*0.3180e-01* 1.899 * * * * * * * * ******************************************************************* memory used: 3114 words of 4 bytes ( 1.20 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *0.9970 * 7.123 * 1.072 * 6.647 * * * * * * * * * terms * 10.00 * 0. * 4.748 * 10.00 *0.4748 * * * * * * * * * disk 1 *0.1500e-01*0.6410e-01*0.6846e-01*0.1602e-01* 4.273 * * * * * * * * * disk 2 *0.3000e-01*0.5697e-01*0.6040e-01*0.3180e-01* 1.899 * * * * * * * * ******************************************************************* no of terminals = 18. - mean value analysis ("mva") - ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *1.0000 * 13.11 * 1.966 * 6.667 * * * * * * * * * terms * 10.00 * 0. * 4.762 * 10.00 *0.4762 * * * * * * * * * disk 1 *0.1500e-01*0.6429e-01*0.6870e-01*0.1603e-01* 4.286 * * * * * * * * * disk 2 *0.3000e-01*0.5714e-01*0.6061e-01*0.3182e-01* 1.905 * * * * * * * * ******************************************************************* memory used: 3130 words of 4 bytes ( 1.20 % of total memory) ******************************************************************* * name * service * busy pct * cust nb * response * thruput * ******************************************************************* * * * * * * * * cpu *0.1500 *1.0000 * 13.11 * 1.966 * 6.667 * * * * * * * * * terms * 10.00 * 0. * 4.762 * 10.00 *0.4762 * * * * * * * * * disk 1 *0.1500e-01*0.6429e-01*0.6870e-01*0.1603e-01* 4.286 * * * * * * * * * disk 2 *0.3000e-01*0.5714e-01*0.6061e-01*0.3182e-01* 1.905 * * * * * * * * ******************************************************************* 41 /terminal/ ==>warning (edit) : end of file detected on unit 4 (input)