Check out the new USENIX Web site. next up previous
Next: 3.6 Driver to Modify Up: 3 Prototype Description Previous: Cleaning Mechanism

3.5 Swapping In (rw_swap_page)

This is the simplest operation. Whenever a pages is requested, the system searches for it in the cache. If the page is found in the cache, the system decompresses it and places the result on the user address space. Otherwise, if the page is in the disk, the disk block is read and the page is decompressed as in the previous case. As read disk blocks are not placed in the cache, if another page from the same buffer is requested, a new disk read will be needed (remember that hits_do_read are not very frequent).

Toni Cortes
Tue Apr 27 17:43:22 MET DST 1999