AIX 5.3 - Discrepancies between "top" and "vmstat"


 
Thread Tools Search this Thread
Operating Systems AIX AIX 5.3 - Discrepancies between "top" and "vmstat"
# 1  
Old 11-24-2009
AIX 5.3 - Discrepancies between "top" and "vmstat"

Can someone explain the differences I'm seeing below in TOP and VMSTAT commands on my AIX 5.3 server?

Thanks!
Code:
 
CPUs:  4; load averages:  0.86,  0.97,  0.97    18:09:26
926 processes: 4 stopped, 922 running
CPU states: 78.4% idle,  8.5% user, 12.6% kernel,  0.3% wait
Memory: 23680M Total. Real: 11392M, 91M Free, 2192M Buffers. Virtual: 12288M, 10155M Free
  PID USERNAME PRI NICE   SIZE   RES STATE   TIME   WCPU    CPU COMMAND
6283440 hci        0   0   30M   31M  run    31:32  4.0/ 0.4 hciengine
 94424 root       0   0  498k  440k  run  5:18:05  2.7/ 2.0 syncd
639040 hci        0   0  185M  165M  run 20:46:07  2.4/ 7.7 java
696490 hci        0   0  550k  500k  run  1:19:43  1.3/ 0.5 lm_ip
5169156 hci        0   0   22M   21M  run    21:45  1.0/ 0.1 hciengine

Code:
 
/>date; vmstat -w 5
Tue Nov 24 18:09:16 CST 2009
System Configuration: lcpu=4 mem=11392MB
 kthr          memory                         page                       faults           cpu
------- --------------------- ------------------------------------ ------------------ -----------
  r   b        avm        fre    re    pi    po    fr     sr    cy    in     sy    cs us sy id wa
  2   1    2736375      23618     0     4     0     0      0     0    94  12101  1662 20 15 64  1
  2   0    2736420      23541     0     1     0     0      0     0   232  12652  2065 18 19 62  0
  2   0    2736516      23417     0     0     0     0      0     0   104  11967  1878 17 16 66  0
  1   1    2736758      23110     0     1     0     0      0     0   224  12186  1780 19 18 62  1
  3   1    2736257      23573     0     2     0     0      0     0    91  11672  1620 20 14 65  1
  3   0    2736497      23268     0     2     0     0      0     0   242  13758  2153 20 19 60  1

# 2  
Old 11-26-2009
Not sure which difference you mean, but generally I'd go for vmstat since it comes directly with the OS. If there is still a doubt you can also check with sar or nmon etc.
For the memory I see no difference and for the CPU part, are you sure you took the snippets while running both tools at the same time?
The memory might look "different" since vmstat shows memory in 4kb pages.

You have some counts in "pi". Not sure what you are running on this box and if you have noticable performance problems at peak times - maybe you want to tune VMM a bit.

Moving the thread to the AIX subforum.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. AIX

How to enable "TCP MD5 Signatures" and "https" on AIX?

I have searched many times but nothing found. Somebody help please :(:(:( (1 Reply)
Discussion started by: bobochacha29
1 Replies

5. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

9. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies
Login or Register to Ask a Question