sysstat utilities such as mpstat show one extra CPU in RHEL5
Issue
- Utilities from the
sysstatpackage such asmpstatshow one more CPU than physically exists in the server. - For example, on an 8-CPU system, the number of CPU's displayed in mpstat output is 0 to 8:
# mpstat -P ALL 1
Linux 2.6.24.7-139.el5rt (itrd-3) 2010-03-26
16:49:08 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
16:49:09 all 0.00 0.00 0.12 0.12 0.00 0.00 0.00 99.75 6.00
16:49:09 0 0.00 0.00 0.00 1.00 0.00 0.00 0.00 99.00 0.00
16:49:09 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
16:49:09 2 0.00 0.00 0.00 0.00 0.99 0.00 0.00 99.01 1.00
16:49:09 3 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 1.00
16:49:09 4 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
16:49:09 5 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 2.00
16:49:09 6 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 0.00
16:49:09 7 0.00 0.00 0.99 0.00 0.00 0.00 0.00 99.01 2.00
16:49:09 8 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
mpstatshould only display CPU's 0 to 7.
Environment
- Red Hat Enterprise Linux 5
- sysstat
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
