Cover V03, I04
Article
Figure 1
Figure 2
Figure 3
Figure 4
Listing 1
Sidebar 1
Table 1

jul94.tar


Sidebar: Paging and Swapping under SCO UNIX

The SCO UNIX operating system has two types of memory management: paging and swapping. Greg Oetting at SCO Support explains the differences:

Paging occurs when the system is low on memory, and is done on a page by page basis. When the amount of free memory reaches the value of the kernel parameter GPGSLO, the system goes through all of the pages in memory to see if any of them are old. Old pages will then either be thrown away, as in the case of program text, or written to the swap area, as in the case of data pages. This process continues until the amount of memory reaches the value of the kernel parameter GPGSHI, at which point processing continues.

Swapping occurs when there is no memory left: for example a process requests 300K of memory when there is only 150K remaining. In this case the system goes through memory, swaps out to disk any data regions and throws away text regions. The main difference between the two is that swapping is on a larger scale.