Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Write up
- Include a file called README.pdf that includes the following information.
- The tables prepared in Task 2
- Describe the fourth program of your choice and explain what you found interesting about its memory reference behaviour.
- One paragraph comparing the various algorithms in terms of the results you see in the tables. Do you notice any trends? Which ones are doing better in each case? Think about why and discuss.
- A second paragraph explaining the data you obtained for FIFO and LRU as the size of memory increases. Specifically, comment on what you notice about the hit rate (does it increase or decrease?) when using different memory sizes. Do you notice any anomalies?
- For both paragraphs, explain in detail your thought process and support your arguments in order to generate some insight into the relative behaviour of the replacement policies.
- ./sim -f traceprogs/tr-simpleloop.ref -m 50 -s XXXX -a lru
- ./sim -f traceprogs/tr-simpleloop.ref -m 100 -s XXXX -a lru
- ./sim -f traceprogs/tr-simpleloop.ref -m 150 -s XXXX -a lru
- ./sim -f traceprogs/tr-simpleloop.ref -m 200 -s XXXX -a lru
- ./sim -f traceprogs/tr-simpleloop.ref -m 50 -s XXXX -a opt
- ./sim -f traceprogs/tr-simpleloop.ref -m 100 -s XXXX -a opt
- ./sim -f traceprogs/tr-simpleloop.ref -m 150 -s XXXX -a opt
- ./sim -f traceprogs/tr-simpleloop.ref -m 200 -s XXXX -a opt
- Total = 2682 bits?
- Memory size 50 NEEDS swapfile_size of >= 2632
- Memory size 100 NEEDS swapfile_size of >= 2582
- Memory size 150 NEEDS swapfile_size of >= 2532
- Memory size 200 NEEDS swapfile_size of >= 2482
- 1. TABLES FROM TASK 2
- -----------------------------------------------------FIFO-----------------------------------------------------
- ./sim -f traceprogs/tr-simpleloop.ref -m XX -s XX -a fifo:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 71.0619 | 7254 | 2954 | 2904 | 194 | 2710
- 100| 73.0310 | 7455 | 2753 | 2653 | 44 | 2609
- 150| 73.4130 | 7494 | 2714 | 2564 | 16 | 2548
- 200| 73.4914 | 7502 | 2706 | 2506 | 12 | 2494
- ./sim -f traceprogs/tr-matmul.ref -m XX -s XX -a fifo:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 60.9658 | 1760609 | 1127255 | 1127205 | 1083218 | 43987
- 100| 62.4795 | 1804322 | 1083542 | 1083442 | 1061221 | 22221
- 150| 98.8086 | 2853457 | 34407 | 34257 | 32944 | 1313
- 200| 98.8266 | 2853978 | 33886 | 33686 | 32434 | 1252
- ./sim -f traceprogs/tr-blocked.ref -m XX -s XX -a fifo:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 99.7317 | 2411649 | 6487 | 6437 | 4167 | 2270
- 100| 99.8208 | 2413802 | 4334 | 4234 | 2759 | 1475
- 150| 99.8254 | 2413913 | 4223 | 4073 | 2653 | 1420
- 200| 99.8689 | 2414965 | 3171 | 2971 | 1876 | 1095
- -----------------------------------------------------LRU------------------------------------------------------
- ./sim -f traceprogs/tr-simpleloop.ref -m XX -s XX -a lru:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- ./sim -f traceprogs/tr-matmul.ref -m XX -s XX -a lru:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- ./sim -f traceprogs/tr-blocked.ref -m XX -s XX -a lru:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- -----------------------------------------------------CLOCK----------------------------------------------------
- ./sim -f traceprogs/tr-simpleloop.ref -m XX -s XX -a clock:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 72.7861 | 7430 | 2778 | 2728 | 88 | 2640
- 100| 73.7167 | 7525 | 2683 | 2583 | 2 | 2581
- 150| 73.7363 | 7527 | 2681 | 2531 | 0 | 2531
- 200| 73.7363 | 7527 | 2681 | 2481 | 0 | 2481
- ./sim -f traceprogs/tr-matmul.ref -m XX -s XX -a clock:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 63.9448 | 1846639 | 1041225 | 1041175 | 1040069 | 1106
- 100| 65.3103 | 1886073 | 1001791 | 1001691 | 1000613 | 1078
- 150| 98.7980 | 2853151 | 34713 | 34563 | 33485 | 1078
- 200| 98.8612 | 2854978 | 32886 | 32686 | 31609 | 1077
- ./sim -f traceprogs/tr-blocked.ref -m XX -s XX -a clock:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 99.7617 | 2412374 | 5762 | 5712 | 3280 | 2432
- 100| 99.8220 | 2413831 | 4305 | 4205 | 2612 | 1593
- 150| 99.8438 | 2414358 | 3778 | 3627 | 2571 | 1057
- 200| 99.8673 | 2414926 | 3210 | 3009 | 1941 | 1069
- -----------------------------------------------------OPT------------------------------------------------------
- ./sim -f traceprogs/tr-simpleloop.ref -m XX -s XX -a opt:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- ./sim -f traceprogs/tr-matmul.ref -m XX -s XX -a opt:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- ./sim -f traceprogs/tr-blocked.ref -m XX -s XX -a opt:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- -----------------------------------------------------RAND------------------------------------------------------
- ./sim -f traceprogs/tr-simpleloop.ref -m XX -s XX -a rand:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 70.9933 | 7247 | 2961 | 2911 | 216 | 2695
- 100| 72.9134 | 7443 | 2765 | 2665 | 60 | 2605
- 150| 73.4130 | 7494 | 2714 | 2564 | 17 | 2547
- 200| 73.4620 | 7499 | 2709 | 2509 | 16 | 2493
- ./sim -f traceprogs/tr-matmul.ref -m XX -s XX -a rand:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 65.5219 | 1892183 | 995681 | 995631 | 956619 | 39012
- 100| 88.7762 | 2563736 | 324128 | 324028 | 316500 | 7528
- 150| 96.6794 | 2791971 | 95893 | 95743 | 93398 | 2345
- 200| 98.0426 | 2831338 | 56526 | 56326 | 54691 | 1635
- ./sim -f traceprogs/tr-blocked.ref -m XX -s XX -a rand:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | 99.6573 | 2409849 | 8287 | 8237 | 5737 | 2500
- 100| 99.7807 | 2412832 | 5304 | 5204 | 3445 | 1759
- 150| 99.8185 | 2413748 | 4388 | 4238 | 2762 | 1476
- 200| 99.8404 | 2414276 | 3860 | 3660 | 2313 | 1347
- -----------------------------------------------------INSERTNAME------------------------------------------------------
- ./sim -f traceprogs/tr-simpleloop.ref -m XX -s XX -a INSERTNAME:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- ./sim -f traceprogs/tr-matmul.ref -m XX -s XX -a INSERTNAME:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- ./sim -f traceprogs/tr-blocked.ref -m XX -s XX -a INSERTNAME:
- |Hit rate | Hit count | Miss count | Overall eviction count | Clean eviction count | Dirty eviction count
- ---|----------------------------------------------------------------------------------------------------------
- 50 | | | | | |
- 100| | | | | |
- 150| | | | | |
- 200| | | | | |
- --------------------------------------------------------------------------------------------------------------
- 2. The fourth program we chose was INSERTNAME because
- 3.
- 4.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement