Sponsored Content
Full Discussion: mpstat command
Operating Systems Solaris mpstat command Post 302416187 by Pouchie1 on Sunday 25th of April 2010 11:45:31 AM
Old 04-25-2010
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 under the smtx will reveal us. Please see below an example output



Code:
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0  254   0  189   311  202  357   29   52 17402    0  1465    1  39   0  59
  1  184   0   66    55    9  379   43   67 22769    0  1360    1  51   0  48
  2  300   0  165    40    5  422   36   88 20983    0  1266    1  46   0  52
  3  384   0  374    80   38  407   42   78 20168    0  1775    2  41   0  57
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0   60   0  239   321  203  195   76   40 41660    0  1068    1  99   0   0
  1   66   0  115    81    9  413   63   70 33658    0   776    1  84   0  15
  2    2   0   33    98    8  393   80   59 40319    0   671    1  91   0   9
  3  150   0  377   120   36  392   79   72 40218    0   854    2  85   0  13
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt idl
  0   70   0  187   312  203  393   26   62 13326    0  1560    1  33   0  66
  1  260   0  139    49   10  525   36  109 14185    0  1982    2  35   0  63
  2  303   0  277    46   13  462   33  103 16067    0  1672    1  42   1  56
  3  387   0  377   118   89  506   28  110 6790    0  1904    1  23   0  76


Last edited by pludi; 04-25-2010 at 12:46 PM.. Reason: code tags, please...
 

10 More Discussions You Might Find Interesting

1. 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

2. Solaris

Describe the parameters of iostat,vmstat and mpstat

Hi, I am trying to take the Statistics of the machine during load.Can someone explian the parameters of iostat: tty sd1 sd2 sd3 sd4 cpu tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id vmstat: kthr ... (1 Reply)
Discussion started by: grrajeish
1 Replies

3. Solaris

VMSTAT and MPSTAT anomalies

All: I have a V445 server with four IIIi CPUs and 8 GB RAM running Solaris 10 and an Oracle database along with some app server components and we have had some performance issues - so I collected some VMSTAT and MPSTAT data over the course of three days with a 15-minute polling interval. I... (1 Reply)
Discussion started by: jeffd4d
1 Replies

4. AIX

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: $ mpstat System configuration: lcpu=4 ent=0.2 mode=Uncapped cpu min maj mpc int cs ics rq ... (1 Reply)
Discussion started by: petervg
1 Replies

5. Linux

Execution problem wid mpstat command

mpstat -P ALL 1 10 it results.. 08:05:54 PM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s 08:05:55 PM all 0.00 0.00 0.49 0.00 0.49 0.00 0.00 99.02 1024.75 08:05:55 PM 0 0.00 0.00 0.00 0.00 0.99 0.00 0.00 ... (1 Reply)
Discussion started by: pritesh_patil
1 Replies

6. 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

7. Shell Programming and Scripting

One script for Linux Monitoring-free, sar, vmstat, mpstat

HI , I am wrirting a script for checking the performance monitoring on Linux System when my application is running. I have to run a test for 30 minutes on some server and while the test is running i have to capture the perfromance metrics of Linux through vmstat , sar, mpstat, free. here is the... (3 Replies)
Discussion started by: Anamica
3 Replies

8. UNIX and Linux Applications

Graphical Representation of mpstat.out file

hi everyone, We've generated mpstat.out file monitoring cpu utilization and the file is ready now.Wanted to generate graphical charts for the same output data. Can anyone pleas suggest tool for the same.? (1 Reply)
Discussion started by: Kathraji
1 Replies

9. 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

10. Shell Programming and Scripting

Need to get average idle time using mpstat

I want to get average idle time of the server using mpstat. The problem I am having is %idle is not in same columns in all the versions of linux. example 1: example 2: I tried below command as generalized solution but as Average as one less column output is not proper. I am... (1 Reply)
Discussion started by: kumarjohn
1 Replies
mDestroy(3)							   util/ulocks.h						       mDestroy(3)

NAME
mDestroy - destroy a mutex. SYNOPSIS
#include <util/ulocks.h> void mDestroy(pthread_mutex_t *mutex); ARGUMENTS
mutex - mutex to destroy. DESCRIPTION
Destroys the mutex <mutex> that was initialized by mCreate(). MT-Level: Safe for unique <mutex>. RETURN VALUE
None. SEE ALSO
mCreate(3), fCreate(3), mUnlock(3), fUnlock(3), cBroadcast(3), cSignal(3), fFind(3), cDestroy(3), cCreate(3), mDestroy(3), cWait(3), fLock(3), fDestroy(3), mLock ClearSilver 12 July 2007 mDestroy(3)
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy