|
In computer operating systems, paging is a memory management scheme by which a computer stores and retrieves data from secondary storage for use in main memory. In this scheme, the operating system retrieves data from secondary storage in same-size blocks called ''pages''. Paging is an important part of virtual memory implementations in modern operating systems, using secondary storage to let programs exceed the size of available physical memory. For simplicity, main memory is called RAM (for random-access memory) and secondary storage is called "disk," but the concepts do not depend on whether these terms are literal. ==History== The first memory "pages" were concepts in computer architecture, regardless of whether a page moved between RAM and disk. For example, on the PDP-8, 7 of the instruction bits comprised a memory address that selected one of 128 (2) words. This zone of memory was called a "page." This use of the term is now rare. In the 1960s, ''swapping'' was an early virtual memory technique. An entire program would be "swapped out" (or "rolled out") from RAM to disk, and another one would be "swapped in" (or "rolled in"). A swapped-out program would be current but its execution would be suspended while its RAM was in use by another program. A program might include multiple overlays that occupy the same memory at different times. Overlays are not a method of paging RAM to disk but merely of minimizing the program's use of RAM. Subsequent architectures used memory segmentation, and individual program segments became the units exchanged between disk and RAM. A segment was the program's entire code segment or data segment, or sometimes other large data structures. These segments had to be contiguous when resident in RAM, requiring additional computation and movement to remedy fragmentation. The invention of the page table let the processor present arbitrary pages anywhere in RAM as a seemingly contiguous logical address space. These pages became the units exchanged between disk and RAM. In many modern architectures, such as those based on Windows NT, there is no separate concept of "swapping" and the word is just a synonym of "paging." In systems that support memory-mapped files, "swapping" may mean moving portions of such a file between RAM and a dedicated ''swap space'' or ''swap file'' or ''scratch disk space'', independent of paging of virtual memory. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「paging」の詳細全文を読む スポンサード リンク
|