# SimMemManager Script 2 # # Scheduling with one user process # - load of user process into VM # - load of 0-th page of user process into RM # - servicing page faults # - memory access commands # - LRU replacement ########################################################################### # # Set up system: # page size: 100 # # frames: 100 # # vpages: 200 # frame factor: 25% # quantum: 3 # sysinit 100 100 200 0.25 3 # # Queue up an arrival with enough memory reads to reach its frame limit: arrival 1000 1 30 12 MemAccess 1000 2 25 MemAccess 1000 4 125 MemAccess 1000 9 625 # # ... and some to scramble the LRU ordering: MemAccess 1000 12 50 MemAccess 1000 15 150 # # And go beyond that to force simple replacements: MemAccess 1000 18 225 MemAccess 1000 20 925 MemAccess 1000 22 825 # # And finally a few more: MemRead 1000 26 225 MemRead 1000 28 925 # # Let's see if it reaches its frame limit at the right point: simto 18 show show 1000 show pmt show fmt # # Now let's run through the hits on resident pages to scramble the LRU # ordering a bit: simto 24 show 1000 show pmt show fmt # # Now let's see some accesses that cause replacment of memory pages. First one: simto 27 show show 1000 show pmt show fmt # ... and the second: simto 31 show show 1000 show pmt show fmt # ... and the third: simto 35 show show 1000 show pmt show fmt # Run it almost to termination: simto 43 show 1000 # # All done... show