OpenVMS Alpha Internals and Data Structures: Memory Management is an updateto selected parts of the book OpenVMS AXP Internals and Data Structures Version 1. 5 (Digital Press, 1994). This book covers the extensions to the memory management subsystem of OpenVMS Alpha to allow the operating system and applications to access 64 bits of address space. It emphasizes system data structures and their manipulation by paging and swapping routines and related system services. It also describes management of dynamic memory, such as nonpaged pool, and support for nonuniform memory access (NUMA) platforms. This book is intended for systems programmers, technical consultants, application designers, and other computer progressions interested in learning the details of the OpenVMS executive. Teachers and students of graduate and advanced undergraduate courses in operating systems will find this book a valuable study in how theory and practice are resolved in a complex commercialoperating system. THE definitive reference describing how the OpenVMS kernel worksWritten by a top authority on OpenVMS systemsCovers the latest version of OpenVMS
Inhaltsverzeichnis
1;Front Cover;1 2;OpenVMS Alpha Internals and Data Structures;4 3;Copyright Page;5 4;Table of Contents;8 5;Preface;24 6;Chapter 1. Fundamentals And Overview;30 6.1;1.1 Overview;30 6.2;1.2 Physical Memory Configurations;31 6.3;1.3 Virtual Memory Concepts;33 6.4;1.4 Virtual and Physical Pages;36 6.5;1.5 Virtual Addresses and Page Tables;37 6.6;1.6 Virtual Address Space;40 6.7;1.7 Virtual Addressing on a NUMA System;48 6.8;1.8 PTE Contents;48 6.9;1.9 Translation Buffer;50 6.10;1.10 Virtual Address Translation;51 6.11;1.11 Translation Buffer Features;55 6.12;1.12 Virtual Memory;58 6.13;1.13 Physical Memory;61 6.14;1.14 Software Memory Management Mechanisms;65 6.15;1.15 Further Information;70 7;Chapter 2. Memory Management Data Structures;72 7.1;2.1 Process Data Structures;72 7.2;2.2 System Header and System PCB;88 7.3;2.3 Page Tables;89 7.4;2.4 Granularity Hint Regions and Huge Pages;102 7.5;2.5 Data Structures Describing Physical Memory;106 7.6;2.6 Buffer Objects;128 7.7;2.7 Data Structures for Global Pages;130 7.8;2.8 Data Structures for Swapping;139 7.9;2.9 Data Structures Describing the Page and Swap Files;141 7.10;2.10 Swapper and Modified Page Writer Page Table Arrays;147 7.11;2.11 Relevant Source Modules;150 8;Chapter 3. Memory Management System Services;152 8.1;3.1 Common Characteristics of Memory Management System Services;153 8.2;3.2 Virtual Address Region Creation;158 8.3;3.3 Process-Private Virtual Address Space Creation;160 8.4;3.4 Demand Zero Virtual Address Space Creation;161 8.5;3.5 Process and Global Sections;170 8.6;3.6 Process-Private Sections;172 8.7;3.7 Global Section Creation and Mapping;186 8.8;3.8 Mapping a Global Section;209 8.9;3.9 Global Section Deletion;217 8.10;3.10 Virtual Address Space Deletion;223 8.11;3.11 Virtual Address Region Deletion;234 8.12;3.12 Buffer Object Creation and Deletion;235 8.13;3.13 Services That Return Information;243 8.14;3.14 $SETSWM System Service;248 8.15;3.15 Set Page Protection System Services;248 8.16;3.16 Set F
ault System Services;252 8.17;3.17 $COPY_FOR_PAGE System Service;253 8.18;3.18 Relevant Source Modules;255 9;Chapter 4. Paging Dynamics ;256 9.1;4.1 Overview;256 9.2;4.2 Page Fault Handling;258 9.3;4.3 Page Transitions for Process Pages;265 9.4;4.4 Page Transitions for Process-Private Page Table and PHD Pages;279 9.5;4.5 Page Transitions for Global Pages;285 9.6;4.6 Page Transitions for System Pages;295 9.7;4.7 Page Transitions for Global Page Table Pages;296 9.8;4.8 Page Fault Support Routines;297 9.9;4.9 $FAULT_PAGE System Service;299 9.10;4.10 Page Read Clustering;300 9.11;4.11 Page Read Completion;303 9.12;4.12 Modified Page Writing;305 9.13;4.13 Update Section File on Disk System Services;318 9.14;4.14 Input and Output That Support Paging;321 9.15;4.15 Reference Counts;324 9.16;4.16 Use of Page Files;330 9.17;4.17 Paging and Scheduling;331 9.18;4.18 Relevant Source Modules;334 10;Chapter 5. Working Set List Dynamics;336 10.1;5.1 Overview;336 10.2;5.2 The Working Set List;337 10.3;5.3 Working Set Replacement;349 10.4;5.4 Working Set Limit Adjustment;359 10.5;5.5 Proactive Memory Reclamation from Periodically Waking Processes;366 10.6;5.6 Lock Pages in Working Set System Services;367 10.7;5.7 Lock Pages in Memory System Services;371 10.8;5.8 Unlock Pages System Services;372 10.9;5.9 Purge Working Set System Services;373 10.10;5.10 Keeping a Page in the Working Set List;375 10.11;5.11 Relevant Source Modules;381 11;Chapter 6. The Swapper;382 11.1;6.1 Overview;382 11.2;6.2 Swapper Use of Memory Management Data Structures;385 11.3;6.3 Swapper Main Loop;390 11.4;6.4 Selection of Shrink and Outswap Processes;397 11.5;6.5 Outswap Operation;406 11.6;6.6 Inswap Operation;418 11.7;6.7 Relevant Source Modules;428 12;Chapter 7. Pool Management;430 12.1;7.1 Summary of Pool Areas;430 12.2;7.2 Dynamic Data Structures;434 12.3;7.3 Variable-Length Pools;440 12.4;7.4 Fixed-Length Lists;446 12.5;7.5 Nonpaged Pool;455 12.6;7.6 Per-RAD Pool;469 12.7;7.7 Bus-Addressable Pool;472 12.8
;7.8 Lock Management Lookaside List;475 12.9;7.9 Extended File Cache Lookaside Lists;476 12.10;7.10 Paged Pool;477 12.11;7.11 Process Allocation Region;479 12.12;7.12 KRP Lookaside List;481 12.13;7.13 Alternative Versions of Modules and Images;481 12.14;7.14 Collecting Pool Allocation Statistics;482 12.15;7.15 Detecting Pool Corruption;484 12.16;7.16 Relevant Source Modules;491 13;Appendix A: Selected Acronyms;492 14;Index;496