3.
Write a set of ``useful'' user programs that demonstrate
both a small and large number of each kind of miss, for both the TLB and paging
from disk. In other words, write one test program that
that demonstrates a small number of capacity TLB misses, then one that
demonstrates a small number of capacity page faults, then one that
demonstrates a large number of capacity TLB misses, etc.
As an example, both sort.c and matmult.c in the ``test'' directory
demonstrate a large number of conflict misses for most standard paging
policies.
For each test case, explain its performance on your system, and say how
you might improve the performance of your system.
You will probably find it useful to reduce the size of main memory
(in machine.h), to more quickly incur paging behavior.