"virt-top -1" doesn't report a correct value for each CPU
Issue
- "virt-top -1" reports the same value for each CPU.
virt-top 13:20:50 - x86_64 8/8CPU 2493MHz 11913MB 5 domains, 4 active, 4 running, 0 sleeping, 0 paused, 1 inactive D:0 O:0 X:0 CPU: 15.2% Mem: 3584 MB (3584 MB by guests) PHYCPU %CPU KT-TEST2 RHEL60-SS13 KT-RHEL5 KT-TEST1 0 11.0 0.5= 10.1= 0.4= 0.0=# 1 11.0 0.5= 10.1= 0.4= 0.0= 2 11.0 0.5= 10.1= 0.4=# 0.0= 3 11.0 0.5=# 10.1= 0.4= 0.0= 4 11.0 0.5= 10.1=# 0.4= 0.0= 5 11.0 0.5= 10.1= 0.4= 0.0= 6 11.0 0.5= 10.1= 0.4= 0.0= 7 11.0 0.5= 10.1= 0.4= 0.0= - A values of %CPU is all 11.0 for each CPU[0-7].
- %guest reported by mpstat indicates a stats of virtualized domains as to physical CPU.
- Let's see a mpstat's report.
# mpstat -u -P ALL 1 100 Linux 2.6.32-70.el6.x86_64 (shiro-kumarl) 09/10/10 _x86_64_ (8 CPU) ... 14:02:49 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle 14:02:50 all 6.53 0.00 10.47 0.49 0.00 0.12 0.00 10.22 72.17 14:02:50 0 8.74 0.00 13.59 0.97 0.00 0.00 0.00 6.80 69.90 14:02:50 1 6.00 0.00 4.00 1.00 0.00 0.00 0.00 3.00 86.00 14:02:50 2 9.71 0.00 11.65 0.00 0.00 0.00 0.00 13.59 65.05 14:02:50 3 7.92 0.00 6.93 0.00 0.00 0.99 0.00 7.92 76.24 14:02:50 4 3.85 0.00 15.38 0.00 0.00 0.00 0.00 18.27 62.50 14:02:50 5 4.95 0.00 13.86 0.99 0.00 0.00 0.00 17.82 62.38 14:02:50 6 5.83 0.00 10.68 0.97 0.00 0.00 0.00 7.77 74.76 14:02:50 7 5.26 0.00 6.32 0.00 0.00 0.00 0.00 6.32 82.11 ... - virt-top says that each CPU is being used quite evenly, but mpstat doesn't.
Environment
- Red Hat Enterprise Linux 6
- virt-top-1.0.4-3.1.el6.x86_64
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.
