Assignment 1 test disks.


R. Clayton (rclayton@monmouth.edu)
Fri, 20 Oct 2000 16:54:42 -0400 (EDT)


The assignment 1 test files are available in /export/opt/cs-438-505/devices.
Two of the files - pa1-nosleep.dsk and pa1-sleep.dsk - you're familiar with.
The pa1-allsleep.dsk file contains five processes, each of which sleeps for
around 500 ticks and then exits. If you've implemented multiprocessing
correctly, the total execution time should be around 500 to 600 ticks:

  cl pa1os -d /export/opt/cs-438-505/devices/pa1-allsleep.dsk

  The system is halted.
  Total execution time: 538 ticks, idle time: 502 ticks (93%).

  cl

If you haven't implemented multiprocessing, or implemented it incorrectly, the
total execution time will be around 2500 ticks:

  cl sos -d /export/opt/cs-438-505/devices/pa1-allsleep.dsk

  The system is halted.
  Total execution time: 2530 ticks, idle time: 2490 ticks (98%).

  cl

The pa1-diskoverlap.dsk file tests to see if your operating system overlapped
disk i-o with user process execution. You weren't required to do this (except
generally under the objective of efficient resource use), but you'll have to
implement it for your second assignment. pa1-diskoverlap.dsk contains five
one-block programs, each executes for about 10 ticks, long enough to read in
the next program. With disk i-o overlapped, execution should take around 70 to
90 ticks:

  cl pa1os -d /export/opt/cs-438-505/devices/pa1-diskoverlap.dsk

  The system is halted.
  Total execution time: 85 ticks, idle time: 19 ticks (22%).

  cl

Without disk i-o overlap, total execution time should be about twice as long:

  cl sos -d /export/opt/cs-438-505/devices/pa1-diskoverlap.dsk

  The system is halted.
  Total execution time: 175 ticks, idle time: 104 ticks (59%).

  cl

You can also use the ins-cnts flag the the simulator's -D option to check your
operating system. The ins-cnts flag prints the instruction execution counts
for the batch-disk run:

  cl pa1os -Dins-cnts -d /export/opt/cs-438-505/devices/pa1-diskoverlap.dsk

  The system is halted.
  Total execution time: 85 ticks, idle time: 19 ticks (22%).
  Op-code: count
   1: 19
  11: 5
  13: 50
  19: 5

  cl

The important instruction is 19, the SYSC system call instruction. Each
program in pa1-diskoverlap.dsk makes one exit system call and there are five
programs, so there should be five system calls total. Here's an example of an
operating system with problems:

  cl sos -Dins-cnts -d /export/opt/cs-438-505/devices/pa1-diskoverlap.dsk

  The system is halted.
  Total execution time: 77 ticks, idle time: 19 ticks (24%).
  Op-code: count
   1: 19
  11: 1
  13: 50
  19: 1

  cl

pa1-allsleep.dsk contains five programs, each of which makes two system
calls (a sleep and an exit):

  cl pa1os -Dins-cnts -d /export/opt/cs-438-505/devices/pa1-allsleep.dsk

  The system is halted.
  Total execution time: 538 ticks, idle time: 502 ticks (93%).
  Op-code: count
   1: 502
  11: 15
  19: 10

  cl

pa1-sleep.dsk contains six programs, each of which makes two system calls (a
sleep and an exit):

  cl pa1os -Dins-cnts -d /export/opt/cs-438-505/devices/pa1-sleep.dsk

  The system is halted.
  Total execution time: 616 ticks, idle time: 95 ticks (15%).
  Op-code: count
   1: 95
  11: 18
  13: 466
  19: 12

  cl

pa1-nosleep.dsk contains four programs, each of which makes an exit system
call:

  cl pa1os -Dins-cnts -d /export/opt/cs-438-505/devices/pa1-nosleep.dsk

  The system is halted.
  Total execution time: 299 ticks, idle time: 46 ticks (15%).
  Op-code: count
   1: 46
  11: 4
  13: 234
  19: 4

  cl

For those that are interested, the instructions are ADD (1), MOVE (11), NOOP
(no operation, 13) and SYSC (19).



This archive was generated by hypermail 2.0b3 on Mon Dec 18 2000 - 13:30:05 EST