z/OS concepts
Previous topic | Next topic | Contents | Glossary | Contact z/OS | PDF


How z/OS uses physical and virtual storage

z/OS concepts

By bringing pieces of the program into central storage only when the processor is ready to execute them, z/OS® can execute more and larger programs concurrently.

For a processor to execute a program instruction, both the instruction and the data it references must be in central storage. The convention of early operating systems was to have the entire program reside in central storage when its instructions were executing. However, the entire program does not really need to be in central storage when an instruction executes. Instead, by bringing pieces of the program into central storage only when the processor is ready to execute them--moving them out to auxiliary storage when it doesn't need them, an operating system can execute more and larger programs concurrently.

How does the operating system keep track of each program piece? How does it know whether it is in central storage or auxiliary storage, and where? It is important for z/OS professionals to understand how the operating system makes this happen.

Physical storage is divided into areas, each the same size and accessible by a unique address. In central storage, these areas are called frames; in auxiliary storage, they are called slots. Similarly, the operating system can divide a program into pieces the size of frames or slots and assign each piece a unique address. This arrangement allows the operating system to keep track of these pieces. In z/OS, the program pieces are called pages.

Pages are referenced by their virtual addresses and not by their real addresses. From the time a program enters the system until it completes, the virtual address of the page remains the same, regardless of whether the page is in central storage or auxiliary storage. Each page consists of individual locations called bytes, each of which has a unique virtual address.





Copyright IBM Corporation 1990, 2010