![]() |
Paging Supervisor | |
|
In a VS operating system, all non-resident programs exist in complete form only on auxiliary storage, which is where the OS loads them first. and the total virtual storage size of all executing programs usually exceeds the size of the real storage of the computer. In OS/390, both virtual and real storage are divided into 4096-byte chunks. The chunks are called pages on auxiliary storage, and page frames in real RAM. Paging is the name of the mechanism used to maintain the contents of real memory:
Page Frame Table The Page Frame Table contains lists, AKA "queues", of non-empty page frames. The actual number of the Active Queues is determined by the systems programmers and operators responsible for generating and running the system efficiently. Click here to see a Page Frame Table with three Active queues. CHG and REF Bits Each entry in the page frame queues contains a page frame number, as well as two bits, the change (CHG) and reference (REF) bits. These bits are set on and off by hardware, and by software:
The page frame table also contains two special page frame lists, plus one controlling number:
The role of the Paging Supervisor (PS) is to replenish the available page frames. On an OS/390 system, it accomplishes this by using a Least Recently Used (LRU) algorithm, in which
Queue Maintenance An algorithm is implemented by Queue Maintenance which updates the paging tables, and causes the most inactive frames to be recycled. Click here to see the details of that LRU Paging Algorithm. A Queue Maintenance cycle is activated whenever
When a Queue Maintenance cycle is complete, the available and page-out queues will have been replenished with page frames, and page-ins can proceed. Queue Maintenance Threshold When the number of available pages drops below the Queue Maintenance Threshold, pages from page-out frames will be written to Auxiliary Storage, and those now-unused frames will be moved to the list of available page frames. Page-ins will take place until the number of available pages drops again, and queue maintenance will again be performed. Click on Next in the above ACTION MENU for an Assignment on Paging worth 2% of your final mark. |