|
COMP3300 Assignment 2 2005 Program Files |
Updated on |
|||
| COURSE PROFILE
ASSIGNMENTS CONTACT |
Whats New:
The file debug.csv (see below) was for the FIFO example, not LRU. Replaced by the correct file 10 May 2005 (download from here; the tar file has not been updated). Also provided: For those wanting to do further testing, see the file Total pages used 4144; total page faults 5525; total victims 1896 You have a default CPU time limit of 900s. If this is not enough, you can raise your limit to 2 CPU hours (but this should not be necessary): ulimit -t unlimited One more example (
|
|
||
- create a Run directory for the compile scripts to work
- create BENCHMARKS directory in the Run directory, and place the trace file in that directory for the given traceset file to work
tar xfz comp3300-a2-2005-v1.0.tgz
On other systems, your dearchiver may not be clever enough to do this in one
step: you may need to gunzip first (not the same thing as
unzip) or simply run your dearchiver twice.
Make sure that you preserve the directory structure if you want to use the supplied scripts. Executables need to go in a directory called Run (in the directory containing the source files) which contains the BENCHMARKS directory.
- Bonus files substitute this for freeMemPT.c to get output showing the order pages are allocated and deallocated (caution only use if you know the number of pages used and replacements is relatively low) read the comments at the top of the file for more detail:
- freeMemPT-debug.c
- this variant produces output in a file called debug.csv in the current directory be careful that you are checking the right version
- debug.csv a sample of output from running a correct
./sim-replace-lru traceset.text 42compiled with this file instead of freeMemPT.c; your screen output with this configuration should look something like this (whether with the debug version or not):
42 physical pages x 4096 = 172032; biggest page: 167936 = 0x29000
Opened trace file 0 'BENCHMARKS/spec026.ucomp.pdt'.
.......
finished reading trace 0, 'BENCHMARKS/spec026.ucomp.pdt': EOF. Deallocting page table for process 0
globally allocated 128
process 0 allocated 3145736 for 43 pages, 43 faults, 1 replacements
Total pages used 43; total page faults 43; total victims 1
My work is done...
- freeMemPT-debug.c
- Header files:
- C files:
- scripts:
- benchmarks and tracesets:
- Run/README for running programs
- Run/traceset.text
- Run/traceset-2.text example of increasing memory demand by scheduling the same process twice
- Run/traceset-full.text full benchmarks with absolute paths to files on student unix system
- Run/BENCHMARKS/README for benchmarks
- Run/BENCHMARKS/spec026.ucomp.pdt supplied benchmark (see README in Run directory for more)

