STREAMS/UX for the HP 9000 Reference Manual
191
Debugging STREAMS/UX Modules and Drivers
Using adb
Obtaining Important Kernel Global Variables
To print out the value of a kernel global variable, simply use the symbol
name with the appropriate formatting option (see adb(1) and the ADB
Tutorial for more information). The following table lists some of the more
interesting kernel globals, with the appropriate adb format for printing them,
and brief descriptions of what they mean.
adb Command Description
msgbuf+0xc/sD
Kernel’s circular printf buffer.
freemem/D Amount of free memory, in pages. If zero or a small number,
system is out of memory.
physmem/D Size of physical memory, in pages.
maxfree/D Number of free pages soon after system boot.
desfree/D Number of free pages the system tries to keep available.
minfree/D Minimum free pages before system starts swapping processes out.
avefree/D Average number of free pages over past 5 seconds.
avefree30/D Average number of free pages over past 30 seconds.
freemem_cnt/D Number of processes currently waiting for memory. If large
number, many processes are stopped waiting for memory.
avenrun/3F System load average, for the last one minute, five minutes, and 10
minutes, in floating point notation. If large numbers, system may
be too heavily loaded.
lbolt/X Seconds since boot.
time/Y
Current time, printed out in ctime(3C) format.
_release_version/s HP-UX version string.
utsname+0x9/s System hostname
utsname+0x12/s HP-UX release number.
utsname+0x24/s System hardware model number.