5.3. CPU Diagnostic Tools

Many tools provide data about currently executing processes and CPU load. Some important examples are ps, xload, and top. Glance and sar also supply CPU-related metrics. The machinfo tool (described in more detail in ”Machinfo” on page 79) provides information about the processors installed in an IPF system.

5.3.1. ps

Used for process status display, ps is perhaps the best known and most commonly used of all the performance tools. Its many options (see the man page on ps) allow for very specific display of process information. The following is an example showing output of ps -ef on a workstation. This display is limited to processes owned by UID peterw:

						UID   PID  PPID  C    STIME TTY       TIME COMMAND
						peterw 14336 14335 0 Jan ...

Get HP-UX 11i Tuning and Performance 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.