HP-UX Internals introduces readers to the "under the hood" aspects of the HP-UX operating system. The book illustrates the kernel data structures and algorithms used to provide process/thread scheduling, I/O control and system resource management. Both hardware dependent and hardware independent data structures are examined and explained. The topics covered help readers approach system administration, tuning and troubleshooting from a more informed perspective, and challenge them to make more effective use of their HP-UX systems. The material is focused on the HP-UX 11i (version 1.0) release of the HP-UX operating system, but includes some historic aspects of its development to establish and understanding of its current incarnation.
List of Figures.
List of Tables.
List of Listings.
1. PA-RISC 2.0 Architecture.
RISC Architecture. Hardware Modules. Registers. Virtual Memory Support. Address Translation. Interruptions. Summary.
Register Usage. PA-RISC Instructions. Procedure Call Model. Procedure Return Model. Stack Usage. Summary.
A Generic Overview. All I/O Is File I/O. Abstraction Layers. Some Generic Kernel Techniques. The HP-UX Kernel Overview. Fundamental Kernel Data Structures: A First Pass. Kernel Process Tables. The Kernel File System Tables. The Kernel Input/Output Tables. Drivers and Switch Tables. Summary.
The Players. A Process and Its Threads. Threading Models and HP-UX. The System Call Interface. Summary.
A Process and Its Resources. The proc Table. The kthread Table. The Process's Logical View. Memory Windows. Building the Logical map. Process/Thread Scheduling. Run Queues. Summary.
Types of Memory. The System's Virtual Address Space. Virtual-to-Physical Page Tables. The Kernel View: The Hashtable. Shared Objects. The b-tree. broot, bnodes, and chunks. Page Lists. Connecting the Kernel View to the Process View. Keeping Track of Free Physical Page Frames. Variable Page Size. Physical Memory Allocator at HP-UX 11.0. Summary.
Pages on Demand. Monitoring Free Memory. A Thief in the Night: vhand. Reservation Versus Allocation. Pseudo-Swap. Device Swap. File System Swap. Swap Priority. Tracking swap in the Kernel Structures. Summary.
File System Concepts. The New and Improved UNIX File System. The Kernel View of File Systems. Summary.
The Birth of a Process. A Historic Look at the fork() Call. The fork1() Kernel Routine. Process and Thread States: Idle Hands. Process Identity Crisis: The exec() System Call. Shared Memory Objects Revisited. The exit() System Call Mechanics. Summary.
PA-RISC I/O Architecture. I/O Framework. I/O Odds and Ends. Summary.
LVM Design Concept. Disk-Resident Data Structures. LVM: The Kernel View. Summary.
Hardware Overview. Multiprocessing Data Structures. Synchronization. Summary.
The Callout Table. Kernel Memory Allocation. Summary.
Signal Data Structures. Signal Anticipation. Signal Delivery. Signal Recognition. Signal Handler Launch. Summary.
ISL: The Initial System Loader. HPUXBOOT: The Secondary Loader. Real-Mode Initialization. Virtual Mode Initialization. Summary.
adb. q4. Summary.