University of Toronto
Department of Computer Science
Summer 1997

CSC 148H: INTRODUCTION TO COMPUTER SCIENCE


Memory Reference Traces

A memory reference trace is simply a list of page numbers in the order that they are referenced. Because memory addresses are most commonly expressed in hexadecimal (base 16), the traces are lists of hexadecimal numbers. Because OOT does not appear to support hexadecimal numbers and all you need to do is compare two numbers for equality, you may treat them as strings. Alternatively, you can use the function strintok to convert the hexadecimal number as you read them in to integers.


REALLY NEW: Because it takes too long for some of you to run your programs on the first four big traces (qsort, lu, mm32, mm16), you are not required to hand in results for these traces. If you already have results, please hand them in. If not, please spend your remaining time working on the report instead of running the experiments.

NOTE: You are still expect to hand in results for a few memory sizes for the final 5 traces. They should not take very much time at all to run.


IMPORTANT: Do not print out the traces. Some of these files are pretty big and printing them will waste a lot of paper for no reason. One suggestion was to write the main program such that it prompts for the memory size and the name of the trace file. Then the main program can open the trace file and read from it. Do not hand in printouts of the trace files. The trace files that you create to test your program will be much smaller, and you should hand in the traces you create annotated to explain what you expect the trace to show.

Another set of traces


These traces were constructed by hand. They are smaller and simpler than the other set of traces, and should be useful for comparing the behaviour of the three paging algorithms (LRU, FIFO, and your own invention).

These traces were inspired by a java applet that demonstrates a memory reference sting for different bits of code. Note that you cannot access this applet from the cdfpc lab because the applet is not on a University of Toronto web page. If you have a separate internet account with web access, you will be able to see it.


Karen Reid
Last modified: Thu Jun 19 11:08:06 EST