- Understand how to implement the progress of memory allocating using different policies
make
./MemManager
TLB replacement policy:LRU, RANDOM
Page replacement policy:FIFO, CLOCK
Frame alloction policy:GLOBAL, LOCAL
-->can be modified in sys_config.txt(in UPPER case)
Users can configure hardware and policies in sys_config Notice that this simulator does not support more than 26 processes
To make a memory allocation (modified in trace.txt), you must assign reference in following format
- Reference(A,B) , where A is the name of the process(up to Z) and B is the number of virtual frame number
PFN: frame index that is about to be replaced
Source: the block number of the page which is page-in from disk
Destination: the block number where the evicted page page-out
Process [X], TLB Hit, [VPN]=>[PFN]
Page hit: Process [X], TLB Miss, Page Hit, [VPN]=>[PFN]
Page fault: Process [X], TLB Miss, Page Fault, [PFN], Evict [VPN] of Process [X] to [Destination], [VPN]<<[Source]
In this file, you get to see the TLB hit ratio and page fault ratio of each process
