Tracking Swap in the Kernel Structures

In Figure 7-7, we see the relationship between the various kernel-resident data structures required to manage the swap space.

Figure 7-7. Swap Kernel Structures

As we see in the diagram, the hambone is connected to the knee bone. Swap management starts with entries in the swap device table, swdevt, and the file system device table, fswdevt. Pointers from the two priority arrays are used to order the searching of the swap devices. A swap device is broken down into individual swap chunks. The kernel tunable maxswapchunks sets the systemwide number and determines the size of the swap table. Each swap chunk is ...

Get HP-UX 11i Internals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.