Читайте также: |
|
Исходный код программы
SIMULATE | Начало моделирования |
1 FUNCTION RN$1,C13 | Описание закона |
0,0/0.1,0.104/0.2,0.222/0.3,0.357/0.4,0.511/0.5,0.693/0.6,0.915/0.7,1.304/0.8,1.610/ 0.9,2.303/0.97,3.507/0.995,5.298/0.999,7 | распределения случайных величин |
1 TABLE M$1,100,100,15 | Описание выходных данных |
1 VARIABLE X$1+1+X$2*RN$1/1000 | Расчет номера модуля ОП |
2 VARIABLE (X$3+X$4+X$5)*100/TB$1 | Расчет процента производительности |
3 VARIABLE X$1-1 | Расчет числа заявок |
4 VARIABLE X$1+X$2+1 | Расчет номер общей шины |
GENERATE,,,1 | Генерация исходной заявки |
SPLIT V$3,ABC,1 | Расщепление заявки |
ABC MARK | Начало цикла |
SEIZE P$1 | Занятие процессора |
ADVANCE X$3,FN$1 | Выполнение команды |
RELEASE P$1 | Освобождение процессора |
SEIZE V$4 | Занятие общей шины |
ADVANCE X$5 | Задержка заявки при передаче по системе коммутации |
ASSIGN 2,V$1 | Выбор модуля ОП |
SEIZE P$2 | Занятие модуля ОП |
ADVANCE X$4 | Выборка из памяти |
RELEASE P$2 | Освобождение модуля памяти |
RELEASE V$4 | Освобождение общей шины |
TABULATE 1 | Сбор статистики |
SAVEVALUE 6-,1 | Окончание обработки заявки |
TEST_LE X$6,0,ABC | Проверка условия окончания моделирования |
SAVEVALUE 7,V$2 | Запоминание результата |
TERMINATE 1 | Окончание моделирования |
INITIAL X$1,9,X$2,4 | Задание исходных данных |
INITIAL X$3,100,X$4,50,X$5,18 | |
INITIAL X$6,10000 | |
START 1 | |
END | Окончание моделирования |
5.2. Исходные данные:
X$1 – число процессоров;
X$2 – число модулей ОП;
X$3 – среднее время выполнения команд процессором (мкс);
X$4 – время обращения к памяти ЭВМ (мкс);
X$5 – время коммутации (мкс).
X$7 – производительность МПК
Листинги с результатами
1)
GPSSR/PC V1.1 27-MAY-2015 21:38 PAGE 1
1.LST=1.txt
LINE BLOCK
1 SIMULATE
2 1 FUNCTION RN$1,C13
3 0,0/0.1,0.104/0.2,0.222/0.3,0.357/0.4,0.511/0.5,0.693/
4 0.6,0.915/0.7,1.304/0.8,1.610/0.9,2.303/0.97,3.507/
5 0.995,5.298/0.999,7
6 1 TABLE M$1,100,100,15
7 1 VARIABLE X$1+1+X$2*RN$1/1000
8 2 VARIABLE (X$3+X$4+X$5)*100/TB$1
9 3 VARIABLE X$1-1
10 4 VARIABLE X$1+X$2+1
11 1 GENERATE,,,1
12 2 SPLIT V$3,ABC,1
13 3 ABC MARK
14 4 SEIZE P$1
15 5 ADVANCE X$3,FN$1
16 6 RELEASE P$1
17 7 SEIZE V$4
18 8 ADVANCE X$5
19 9 ASSIGN 2,V$1
20 10 SEIZE P$2
21 11 ADVANCE X$4
22 12 RELEASE P$2
23 13 RELEASE V$4
24 14 TABULATE 1
25 15 SAVEVALUE 6-,1
26 16 TEST_LE X$6,0,ABC
27 17 SAVEVALUE 7,V$2
28 18 TERMINATE 1
29 INITIAL X$1,9,X$2,4
30 INITIAL X$3,100,X$4,50,X$5,18
31 INITIAL X$6,10000
32 START 1
33 END
CONTENTS OF (NONZERO) FULLWORD SAVEVALUES
XF LOC VALUE LOC VALUE LOC VALUE LOC VALUE
1 9 2 4 3 100 4 50
5 18 7 27
TABLE NO. 1
ENTRIES IN TABLE MEAN ARGUMENT STANDARD DEVIATION SUM OF ARGUMENTS
10000 611.75 115.27 6117528.0
UPPER OBSERVED PER CENT CUMULATIVE CUMULATIVE MULTIPLE DEVIATION
LIMIT FREQUENCY OF TOTAL PERCENTAGE REMAINDER OF MEAN FROM MEAN
100 105 1.05 1.05 98.95 0.16 -4.44
200 1 0.01 1.06 98.94 0.33 -3.57
300 3 0.03 1.09 98.91 0.49 -2.70
400 8 0.08 1.17 98.83 0.65 -1.84
500 860 8.60 9.77 90.23 0.82 -0.97
600 2622 26.22 35.99 64.01 0.98 -0.10
700 5123 51.23 87.22 12.78 1.14 0.77
800 662 6.62 93.84 6.16 1.31 1.63
900 457 4.57 98.41 1.59 1.47 2.50
1000 67 0.67 99.08 0.92 1.63 3.37
1100 72 0.72 99.80 0.20 1.80 4.24
1200 15 0.15 99.95 0.05 1.96 5.10
1300 5 0.05 100.00 0.00 2.13 5.97
REMAINING VALUES ARE ZERO
2)
GPSSR/PC V1.1 27-MAY-2015 21:42 PAGE 1
2.LST=2.txt
LINE BLOCK
1 SIMULATE
2 1 FUNCTION RN$1,C13
3 0,0/0.1,0.104/0.2,0.222/0.3,0.357/0.4,0.511/0.5,0.693/
4 0.6,0.915/0.7,1.304/0.8,1.610/0.9,2.303/0.97,3.507/
5 0.995,5.298/0.999,7
6 1 TABLE M$1,100,100,15
7 1 VARIABLE X$1+1+X$2*RN$1/1000
8 2 VARIABLE (X$3+X$4+X$5)*100/TB$1
9 3 VARIABLE X$1-1
10 4 VARIABLE X$1+X$2+1
11 1 GENERATE,,,1
12 2 SPLIT V$3,ABC,1
13 3 ABC MARK
14 4 SEIZE P$1
15 5 ADVANCE X$3,FN$1
16 6 RELEASE P$1
17 7 SEIZE V$4
18 8 ADVANCE X$5
19 9 ASSIGN 2,V$1
20 10 SEIZE P$2
21 11 ADVANCE X$4
22 12 RELEASE P$2
23 13 RELEASE V$4
24 14 TABULATE 1
25 15 SAVEVALUE 6-,1
26 16 TEST_LE X$6,0,ABC
27 17 SAVEVALUE 7,V$2
28 18 TERMINATE 1
29 INITIAL X$1,3,X$2,10
30 INITIAL X$3,100,X$4,50,X$5,18
31 INITIAL X$6,10000
32 START 1
33 END
CONTENTS OF (NONZERO) FULLWORD SAVEVALUES
XF LOC VALUE LOC VALUE LOC VALUE LOC VALUE
1 3 2 10 3 100 4 50
5 18 7 76
TABLE NO. 1
ENTRIES IN TABLE MEAN ARGUMENT STANDARD DEVIATION SUM OF ARGUMENTS
10000 221.98 99.20 2219808.0
UPPER OBSERVED PER CENT CUMULATIVE CUMULATIVE MULTIPLE DEVIATION
LIMIT FREQUENCY OF TOTAL PERCENTAGE REMAINDER OF MEAN FROM MEAN
100 475 4.75 4.75 95.25 0.45 -1.23
200 2786 27.86 32.61 67.39 0.90 -0.22
300 5261 52.61 85.22 14.78 1.35 0.79
400 860 8.60 93.82 6.18 1.80 1.79
500 402 4.02 97.84 2.16 2.25 2.80
600 130 1.30 99.14 0.86 2.70 3.81
700 59 0.59 99.73 0.27 3.15 4.82
800 21 0.21 99.94 0.06 3.60 5.83
900 6 0.06 100.00 0.00 4.05 6.83
REMAINING VALUES ARE ZERO
3)
GPSSR/PC V1.1 27-MAY-2015 21:44 PAGE 1
3.LST=3.txt
LINE BLOCK
1 SIMULATE
2 1 FUNCTION RN$1,C13
3 0,0/0.1,0.104/0.2,0.222/0.3,0.357/0.4,0.511/0.5,0.693/
4 0.6,0.915/0.7,1.304/0.8,1.610/0.9,2.303/0.97,3.507/
5 0.995,5.298/0.999,7
6 1 TABLE M$1,100,100,15
7 1 VARIABLE X$1+1+X$2*RN$1/1000
8 2 VARIABLE (X$3+X$4+X$5)*100/TB$1
9 3 VARIABLE X$1-1
10 4 VARIABLE X$1+X$2+1
11 1 GENERATE,,,1
12 2 SPLIT V$3,ABC,1
13 3 ABC MARK
14 4 SEIZE P$1
15 5 ADVANCE X$3,FN$1
16 6 RELEASE P$1
17 7 SEIZE V$4
18 8 ADVANCE X$5
19 9 ASSIGN 2,V$1
20 10 SEIZE P$2
21 11 ADVANCE X$4
22 12 RELEASE P$2
23 13 RELEASE V$4
24 14 TABULATE 1
25 15 SAVEVALUE 6-,1
26 16 TEST_LE X$6,0,ABC
27 17 SAVEVALUE 7,V$2
28 18 TERMINATE 1
29 INITIAL X$1,3,X$2,4
30 INITIAL X$3,100,X$4,50,X$5,8
31 INITIAL X$6,10000
32 START 1
33 END
CONTENTS OF (NONZERO) FULLWORD SAVEVALUES
XF LOC VALUE LOC VALUE LOC VALUE LOC VALUE
1 3 2 4 3 100 4 50
5 8 7 79
TABLE NO. 1
ENTRIES IN TABLE MEAN ARGUMENT STANDARD DEVIATION SUM OF ARGUMENTS
10000 198.07 99.33 1980723.0
UPPER OBSERVED PER CENT CUMULATIVE CUMULATIVE MULTIPLE DEVIATION
LIMIT FREQUENCY OF TOTAL PERCENTAGE REMAINDER OF MEAN FROM MEAN
100 673 6.73 6.73 93.27 0.50 -0.99
200 5873 58.73 65.46 34.54 1.01 0.02
300 2246 22.46 87.92 12.08 1.51 1.03
400 732 7.32 95.24 4.76 2.02 2.03
500 292 2.92 98.16 1.84 2.52 3.04
600 123 1.23 99.39 0.61 3.03 4.05
700 41 0.41 99.80 0.20 3.53 5.05
800 17 0.17 99.97 0.03 4.04 6.06
900 3 0.03 100.00 0.00 4.54 7.07
REMAINING VALUES ARE ZERO
4)
GPSSR/PC V1.1 27-MAY-2015 21:47 PAGE 1
4.LST=4.txt
LINE BLOCK
1 SIMULATE
2 1 FUNCTION RN$1,C13
3 0,0/0.1,0.104/0.2,0.222/0.3,0.357/0.4,0.511/0.5,0.693/
4 0.6,0.915/0.7,1.304/0.8,1.610/0.9,2.303/0.97,3.507/
5 0.995,5.298/0.999,7
6 1 TABLE M$1,100,100,15
7 1 VARIABLE X$1+1+X$2*RN$1/1000
8 2 VARIABLE (X$3+X$4+X$5)*100/TB$1
9 3 VARIABLE X$1-1
10 4 VARIABLE X$1+X$2+1
11 1 GENERATE,,,1
12 2 SPLIT V$3,ABC,1
13 3 ABC MARK
14 4 SEIZE P$1
15 5 ADVANCE X$3,FN$1
16 6 RELEASE P$1
17 7 SEIZE V$4
18 8 ADVANCE X$5
19 9 ASSIGN 2,V$1
20 10 SEIZE P$2
21 11 ADVANCE X$4
22 12 RELEASE P$2
23 13 RELEASE V$4
24 14 TABULATE 1
25 15 SAVEVALUE 6-,1
26 16 TEST_LE X$6,0,ABC
27 17 SAVEVALUE 7,V$2
28 18 TERMINATE 1
29 INITIAL X$1,9,X$2,10
30 INITIAL X$3,100,X$4,50,X$5,8
31 INITIAL X$6,10000
32 START 1
33 END
SYMBOL VALUE SYMBOL VALUE
====== ===== ====== =====
ABC 3
CONTENTS OF (NONZERO) FULLWORD SAVEVALUES
XF LOC VALUE LOC VALUE LOC VALUE LOC VALUE
1 9 2 10 3 100 4 50
5 8 7 30
TABLE NO. 1
ENTRIES IN TABLE MEAN ARGUMENT STANDARD DEVIATION SUM OF ARGUMENTS
10000 521.79 111.07 5217918.0
UPPER OBSERVED PER CENT CUMULATIVE CUMULATIVE MULTIPLE DEVIATION
LIMIT FREQUENCY OF TOTAL PERCENTAGE REMAINDER OF MEAN FROM MEAN
100 105 1.05 1.05 98.95 0.19 -3.80
200 2 0.02 1.07 98.93 0.38 -2.90
300 24 0.24 1.31 98.69 0.57 -2.00
400 220 2.20 3.51 96.49 0.77 -1.10
500 3629 36.29 39.80 60.20 0.96 -0.20
600 4539 45.39 85.19 14.81 1.15 0.70
700 1040 10.40 95.59 4.41 1.34 1.60
800 200 2.00 97.59 2.41 1.53 2.50
900 151 1.51 99.10 0.90 1.72 3.41
1000 70 0.70 99.80 0.20 1.92 4.31
1100 10 0.10 99.90 0.10 2.11 5.21
1200 10 0.10 100.00 0.00 2.30 6.11
REMAINING VALUES ARE ZERO
Дата добавления: 2015-09-06; просмотров: 106 | Нарушение авторских прав
<== предыдущая страница | | | следующая страница ==> |
Выводы по результатам исследований | | | Графики вероятностно-временных характеристик по результатам в листингах |