CST334 Week 4
This week’s module covered a lot about how memory virtualization actually works, and honestly, it tied together a lot of things that were confusing before. The big topics were free-space management, paging, swapping, and translation lookaside buffers, TLB’s. Even though these ideas are all different, I started noticing how they connect to each other as part of a bigger system.
Free-space management made the most sense right away because the examples clearly showed how fragmentation can mess everything up. It also helped explain why paging uses fixed-size units. Then we moved into TLBs, and that was one of my “aha” moments. Thinking of a TLB as basically a super fast “cheat sheet” that saves recent translations made the whole idea of speeding up memory access feel a lot more real.
Multi-level paging was one of the topics I had to reread a couple times. The part that tripped me up was how page tables get so massive that you literally can’t store them as one giant table. Once I realized multi-level paging is basically a way to avoid wasting memory on empty areas, it started clicking for me. Swapping also made sense once I pictured it as the OS moving less-used pages to the hard drive just to keep things running.
The hardest part for me this week was page-replacement policies. I get the general idea, pick which page should get kicked out, but comparing policies and trying to understand why each one does better or worse in certain situations was a little overwhelming. I also really struggled with the BELADY caching policy.
My biggest realization this week was how all these ideas build on each other. TLBs make translations fast, multi-level paging keeps memory overhead low, swapping lets us pretend we have more RAM than we do, and replacement policies decide what stays or goes when memory gets tight.
Looking ahead, I’m curious how this ties into virtualization as a whole and how real systems handle memory under heavy workloads. This module definitely helped me feel more confident with virtual memory and paging.
Comments
Post a Comment