This chapter describes the tools and facilities Unix offers for monitoring and managing the system’s CPU, memory, disk and network resources, including some of the limitations inherent in the Unix approach. The first part of the chapter provides an overview of system performance considerations and then discusses Unix processes. The chapter then goes on to consider managing the various sytem resources—CPU, memory, local and network I/O, disk space—in detail.
A large part of managing any system resource is knowing how to measure and interpret its current state, and so we’ll spend some time looking at ways to monitor resources and to track their use over time.
This chapter provides a detailed introduction to performance monitoring and tuning. For more detailed information about tuning Unix systems, I recommend these books:
System Performance Tuning by Gian-Paolo D. Musameci and Mike Loukides (O’Reilly). This work focuses on Solaris and Linux systems.
AIX Performance Tuning by Frank Waters (Prentice Hall).
HP-UX Tuning and Performance by Robert F. Sauers and Peter S. Weygant (Hewlett-Packard Professional Books).
Solaris Internals by Jim Mauro and Richard McDougall (Prentice Hall).
NFS and NIS by Hal Stern, Mike Eisler, and Ricardo Labiaga (O’Reilly).