R. Clayton (rclayton@monmouth.edu)
Sat, 28 Oct 2000 21:17:14 -0400 (EDT)
If you have copied any files from /export/opt/cs-438-505, delete them - they
are obsolete and won't work anymore.
You should recompile and relink your operating system against the new simulator
library. If you don't, or if you just relink without recompiling, your
operating system will almost certainly fail in mysterious ways.
The test batch disks for the second assignment are available. None of programs
on the batch disk do terminal i-o, and all are well behaved. The batch disks
are:
pa2-bigpgms.dsk
This batch disk tests your operating system's ability to manage user space.
The eight programs on this batch disk won't all fit in user space at the
same time; whatever you use to read programs from the disk will have to
recognize when user space is full and wait until space becomes available
before it can continue loading. Here's an example execution:
cl pa2os -Dins-cnts -d /export/opt/cs-438-505/devices/pa2-bigpgms.dsk
The system is halted.
Total execution time: 1382 ticks, idle time: 1219 ticks (88%).
Op-code: count
add: 1219
move: 24
sysc: 16
br: 57
cl
Each process does a sleep call and an exit, so there should be 16 system
calls total.
pa2-diskw.dsk
This batch disk contains a single program that writes the last block on the
disk. The block contains the numbers 1 through 32:
cl pa2os -Dins-cnts -d /export/opt/cs-438-505/devices/pa2-diskw.dsk
The system is halted.
Total execution time: 121 ticks, idle time: 101 ticks (83%).
Op-code: count
add: 101
bne: 1
move: 10
sysc: 4
cmpr: 1
cl /export/opt/cs-438-505/devices/print-disk-block results.dsk 63
Block 63
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
17 18 19 20
21 22 23 24
25 26 27 28
29 30 31 32
cl
pa2-diskrw.dsk
This batch disk tests your operating system's ability to share the disk
among its program loader and a user process. The batch disk contains two
programs, a small one and a large one. The small one writes the last block
of the batch disk a word at a time, and the large one doesn't do anything.
The small program writes 32 consecutive numbers starting with it's base
address to the last block:
cl pa2os -Dins-cnts -d /export/opt/cs-438-505/devices/pa2-diskrw.dsk
The system is halted.
Total execution time: 3625 ticks, idle time: 2823 ticks (77%).
Op-code: count
add: 2919
bne: 65
move: 328
sysc: 68
cmpr: 97
br: 24
blt: 32
cl /export/opt/cs-438-505/devices/print-disk-block results.dsk 63
Block 63
1024 1025 1026 1027
1028 1029 1030 1031
1032 1033 1034 1035
1036 1037 1038 1039
1040 1041 1042 1043
1044 1045 1046 1047
1048 1049 1050 1051
1052 1053 1054 1055
cl
In this case, the small program started executing at 1024. The small
program does 32 reads and 32 writes, an open, close, and exit; the large
program does an exit for a total of 68 system calls.
pa-disk3rw.dsk
This batch disk tests your os's ability to keep user processes separate; it
also depends on a correctly implemented context switch. The disk contains
three copies of the small program on the previous batch disk; each program
writes one of the last three block on the batch disk. The programs write 32
consecutive numbers starting with their respective base addresses:
cl pa2os -Dins-cnts -d /export/opt/cs-438-505/devices/pa2-disk3rw.dsk
The system is halted.
Total execution time: 2954 ticks, idle time: 700 ticks (23%).
Op-code: count
add: 988
bne: 195
move: 981
sysc: 201
cmpr: 291
blt: 96
cl /export/opt/cs-438-505/devices/print-disk-block results.dsk 63
Block 63
1024 1025 1026 1027
1028 1029 1030 1031
1032 1033 1034 1035
1036 1037 1038 1039
1040 1041 1042 1043
1044 1045 1046 1047
1048 1049 1050 1051
1052 1053 1054 1055
cl /export/opt/cs-438-505/devices/print-disk-block results.dsk 62
Block 62
1120 1121 1122 1123
1124 1125 1126 1127
1128 1129 1130 1131
1132 1133 1134 1135
1136 1137 1138 1139
1140 1141 1142 1143
1144 1145 1146 1147
1148 1149 1150 1151
cl /export/opt/cs-438-505/devices/print-disk-block results.dsk 61
Block 61
1216 1217 1218 1219
1220 1221 1222 1223
1224 1225 1226 1227
1228 1229 1230 1231
1232 1233 1234 1235
1236 1237 1238 1239
1240 1241 1242 1243
1244 1245 1246 1247
cl
One program started executing at 1024; the second at 1112, and the third at
1216. Each program does 67 system calls, and there's three of them.
These descriptions assume that your operating system does multiprocessing
Remember - delete copied files and rebuild your operating system.
This archive was generated by hypermail 2.0b3 on Mon Dec 18 2000 - 13:30:05 EST