topas and mpstat disagree on CPU count


 
Thread Tools Search this Thread
Operating Systems AIX topas and mpstat disagree on CPU count
# 1  
Old 01-10-2012
topas and mpstat disagree on CPU count

I have a number of LPARs on one P520. All LPARs are running 5.3 and I observe the following:

On some LPARs the number of CPUs found do not match between topas and mpstat.

Server 1:
Code:
$ mpstat

System configuration: lcpu=4 ent=0.2 mode=Uncapped

cpu  min  maj  mpc  int   cs  ics   rq  mig lpa sysc us sy wt id   pc  %ec  lcs
  0 3236207143 10334920 18148 3129232930 4185678899 2113273478    1 52924493 100 367388385328 53 45  0  1 0.02  8.0 1128243307
  1 603958753 5039979 16124 1524069311 1859429164 970562064    0 41186584 100 222067273272 49 49  0  2 0.01  4.9 68661856
  2 1710507793 3119307 4364 1114068729 1623216950 830873642    3 34012743 100 206322132851 48 50  0  1 0.01  4.8 1775110222
  3 250548546 2479568 3764 1040035340 1334942079 712336992    0 23302581 100 159082003333 48 50  0  1 0.01  3.5 1588140807
  U    -    -    -    -    -    -    -    -   -    -  -  -  3 76 0.16 78.8    -
ALL 5801222235 20973774 42400 6807406310 9003267092 4627046176    4 151426401 100 954859794784 11 10  3 76 0.04 21.2 4560156192

Code:
$ topas -c 4 -i 2

Topas Monitor for host:    anker-prod           EVENTS/QUEUES    FILE/TTY
Wed Jan 11 00:07:56 2012   Interval: 2         Cswitch    1404  Readch  1191.2K
                                                Syscall   81019  Writech 1592.3K
CPU  User%  Kern%  Wait%  Idle%  Physc          Reads      7208  Rawin         0
0     71.4   27.3    0.1    1.2   0.51          Writes     9568  Ttyout      448
1     64.4   28.9    0.0    6.6   0.05          Forks         1  Igets         0
2      0.0   36.3    0.0   63.7   0.00          Execs         1  Namei       499
                                                Runqueue    0.3  Dirblk        0

Topas only shows 3 CPUs where mpstat shows 4 CPUs.


On Server2 both commands agree on the number of CPUs
Code:
$ mpstat

System configuration: lcpu=4 ent=0.2 mode=Uncapped

cpu  min  maj  mpc  int   cs  ics   rq  mig lpa sysc us sy wt id   pc  %ec  lcs
  0 9860614934 2732104 7298 6735808867 9419381532 4702171407    3 4684492 100 65615358106 32 57  0 10 0.01  3.0 418549046
  1 1973963245 223280 2636 859857037 781266777 458989902    0 12072469 100 21592902586 34 44  0 22 0.00  0.4 1140935784
  2 67906433 112022 2726 251438391 16705237 8752709    0 124434 100 498800985 17 39  0 44 0.00  0.0 253852298
  3 2206185 58927 2548 246896346 5519713 2819540    0 183719 100 23307562  4 36  0 60 0.00  0.0 247932362
  U    -    -    -    -    -    -    -    -   -    -  -  -  0 96 0.19 96.5    -
ALL 11904690797 3126333 15208 8094000641 10222873259 5172733558    3 17065114 100 87730369239  1  2  0 97 0.01  3.5 2061269490

Code:
$ topas -c 4 -i 2
Topas Monitor for host:    kamstra-test         EVENTS/QUEUES    FILE/TTY
Wed Jan 11 00:11:15 2012   Interval:  2         Cswitch     211  Readch   223.7K
                                                Syscall    1226  Writech    3298
CPU  User%  Kern%  Wait%  Idle%  Physc          Reads       109  Rawin         1
0     12.4   74.1    0.1   13.4   0.01          Writes        9  Ttyout     1207
1      0.0   34.1    0.0   65.9   0.00          Forks         1  Igets         0
2      0.0   43.0    0.0   57.0   0.00          Execs         1  Namei       263
3      0.0   43.5    0.0   56.5   0.00          Runqueue    1.5  Dirblk        0

Both LPARs are configured on the same P520.

I hope someone can explain to me why the commands do not match up on some LPARs.

Greetings,
Peter
# 2  
Old 01-11-2012
Just guessing now, could this be caused by dynamic CPU folding?
In this case the effect would not be visible all the time and more likely
occur on LPARs with low or volatile load...

Greetings,
Greg
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Topas - CPU count inconsistent across LPARs

seeing weirdness across some 7.1.5.1 LPARs - they all have 2 vCPUs allocated shared. With prtconf they show 2 CPUs, 'lsdev -c processor' concurs, and 'lsattr -El procX' shows that SMT is enabled and there are 2 SMT threads (power5, sorry). Yet running topas on them shows 2 CPUs on some and 4 on... (3 Replies)
Discussion started by: maraixadm
3 Replies

2. AIX

To get only the cpu info from the topas command terminal

To get only the cpu info from the topas command terminal. CPU User% Kern% Wait% Idle% Physc Entc ALL 2.3 4.4 0.0 93.3 0.07 7.7 I tried some thing like this but did not work topas << done grep "ALL" q done Can someone help me in this. (5 Replies)
Discussion started by: rpm120
5 Replies

3. Shell Programming and Scripting

Mpstat script output

I have a script which runs the mpstat and prints the output in a file. In order capture highest cpu ususage from the generated output file, have to manually tail the output file and need to grab which cpu has highest value (which is very annoying) Is there a way we can automate that process of... (3 Replies)
Discussion started by: Optimus81
3 Replies

4. Shell Programming and Scripting

Mpstat and sar

HI I ma using mpstat and sar commands to check the cpu utilisation but the results are not matching .I dont understand why thisis happening? $ sar -u 12 5 Linux 2.6.9-89.35.1.ELhugemem (abcd.efgh.com) 03/07/2013 02:43:16 AM CPU %user %nice %system %iowait %idle... (1 Reply)
Discussion started by: ptappeta
1 Replies

5. Red Hat

finding CPU count - reading sysinfo output

Hello, sysinfo throws out below 3 CPU counts. Can anyone help me understand what each of these means? CPU Count Socketed is 2 CPU Count Physical is 8 CPU Count Virtual is 16 First one seems obvious. However, I wonder how there can be 8 Physical CPUs, if... (2 Replies)
Discussion started by: hnhegde
2 Replies

6. Red Hat

CPU Count

Hi, I am observing high load average on RHEL5 server and need to check the number of core processors available on the box to give me a bigger picture on whether or not I should be worried. I have always checked the physical count quite simply..... # grep 'physical id' /proc/cpuinfo |... (10 Replies)
Discussion started by: Duffs22
10 Replies

7. UNIX for Dummies Questions & Answers

virtualization (VCPU count according to CPU)

We have purchased four intels xeon processors Intel® Xeon® Processor E7530 (12M Cache, 1.86 GHz, 5.86 GT/s Intel® QPI) with SPEC Code(s) SLBRJ As per the specification each cpu has 6 cores therefore we have 24 cores (considering 4 cpus). Now how would i calculate the number of vcpus that can... (1 Reply)
Discussion started by: pinga123
1 Replies

8. Solaris

mpstat command

Hi, I would like to clearly understand the output of the mpstat command. What is the mutex spins and also context switches? What if we saw that the number of mutex spins is high. Basically, what to look for in the output of the mpstat command? What is wrong and what is ok. what is the value... (3 Replies)
Discussion started by: Pouchie1
3 Replies

9. UNIX for Advanced & Expert Users

mpstat command

I gave mpstat command in my system.. the o/p is like below CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 199 3 198 112 5 78 95 124 55 0 9 25 14 7 54 1 186 2 97 92 1 45 94 121 41 0 220 27 14 5 54 ... (2 Replies)
Discussion started by: shahnazurs
2 Replies

10. UNIX for Dummies Questions & Answers

CPU count

Is there an easy way in Solaris to count the number of processors? (2 Replies)
Discussion started by: hshapiro
2 Replies
Login or Register to Ask a Question