12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

412CHAPTER 20Monitoring System ResourcesFIGURE 20.3Graphical Display of System ProcessesReporting on the System ProcessorsAs explained the previous sections, the interactive top command and iostat provideinformation about the processor or processors in the system. The uptime and mpstatcommands can also be useful when analyzing the CPU.uptime is a simple program that displays the current time, system uptime, number ofusers logged on, and average CPU load for the past 1, 5, and 15 minutes:22:52:42 up 8 days, 1:04, 5 users, load average: 0.18, 0.36, 0.34Another member of the sysstat family, mpstat provides statistics about each processor inthe system as shown in Listing 20.7.LISTING 20.7Example mpstat Output12:24:49 AM CPU %user %nice %system %iowait %irq %soft %steal %idle intr/s12:24:49 AM all 3.20 0.00 0.59 0.73 0.03 0.00 0.01 95.45 1020.55Similar to iostat and sar, you can tell mpstat to run for a specific number of iterations atspecific time intervals with the format mpstat .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!