CST 334 Week 4
This week I learned about Paging. Paging is a strategy for allocating memory of a virtual address to memory. To accomplish this a virtual page number obtained from the virtual address is used to index a page table. Entries in the page table contain page frame number, which provides information on where the page is stored in physical memory. I learned that while paging provides an efficient strategy to memory management, references to the page table are expensive. To resolve this issue a cache called the translation lookaside buffer (TLB) is used to track previous translation made by the page table. If a hit occurs, the OS does not have to perform the costly operation of accessing the page table for address translations. I also learned about the various approaches to storing translations in the TLB such as the optimal policy, least recently used, first in first out, and random. Upon each context switch, the TLB is cleared and a new page table is created for each new process. The ...