Sponsored Content
Operating Systems AIX Vmstat fault section all values are 0 Post 302770523 by bakunin on Saturday 16th of February 2013 10:21:20 PM
Old 02-16-2013
OK, let us go over your provided outputs.

Quote:
Originally Posted by Arief Winanto
Code:
$ vmstat 5

System configuration: lcpu=12 mem=53248MB

kthr    memory              page              faults        cpu
----- ----------- ------------------------ ------------ -----------
r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa
1  0 5370602 22908   0   0   0   0    0   0   0    0   0  0  0 99  0
1  0 5370600 22910   0   0   0   0    0   0   0    0   0  3  0 97  0
1  0 5370594 22916   0   0   0   0    0   0   0    0   0  1  0 99  0
1  0 5370598 22911   0   0   0   0    0   0   0    0   0  0  0 99  0
1  0 5370596 22912   0   0   0   0    0   0   0    0   0  3  0 97  0
0  0 5370596 22912   0   0   0   0    0   0   0    0   0  0  0 99  0
0  0 5370593 22915   0   0   0   0    0   0   0    0   0  0  0 99  0
0  1 5370582 22926   0   0   0   0    0   0   0    0   0  3  1 95  1
0  0 5370589 22919   0   0   0   0    0   0   0    0   0  1  0 98  0
1  0 5370587 22921   0   0   0   0    0   0   0    0   0  2  0 98  0
1  0 5370586 22922   0   0   0   0    0   0   0    0   0  3  0 97  0
0  1 5370578 22298   0   0   0   0    0   0   0    0   0  1  0 97  2
0  0 5370579 22297   0   0   0   0    0   0   0    0   0  0  0 99  0
2  0 5370576 22299   0   0   0   0    0   0   0    0   0  3  0 97  0
1  0 5370573 22288   0   0   0   0    0   0   0    0   0  0  0 99  0
1  0 5370569 22150   0   0   0   0    0   0   0    0   0  1  0 98  1
1  0 5370570 22149   0   0   0   0    0   0   0    0   0  1  0 99  0
1  0 5370568 22151   0   0   0   0    0   0   0    0   0  2  0 98  0
0  0 5370536 22183   0   0   0   0    0   0   0    0   0  0  0 99  0

First: all the paging-related columns (re, pi, po, fr, sr, cy, in, sy) being 0 means that the machine has very much memory compared o what it needs. Its kernel doesn't even bother to look for pages it could steal, so the machine really must have plenty. Not even the file-cache seems to reach its saturation. Post the output of svmon -G and we could perhaps show you how much the machine needs and hw much it really has in comparison.

Second: if you look at the columns with the run- and blocked-queue (leftmost, "r" and "b") you see occasional 1s in the blocked-column. This is not a problem in and of itself, but one starts to wonder where it comes from. Nonzero entries in "b" mean that there is a process ready to run, which can't because of some outside factor prohibiting it. Usually this is a side effect of paging (the process waits until its memory is paged in again), but this is not the case here.

Third: now we inspect the rightmost part of the output, which shows how the processor(s) is used. "us" (process spends time in user space) and "sy" (process spends time in system space) are near 0, so the system does next to nothing. But "wa" (wait) is non-zero and this corresponds to the blocked-entries. It means that a process, otherwise ready to run, is waiting for I/O. So it looks like the machine is slightly I/O-bound. This could come from:

- disks (or SAN, whatever) pose a bottleneck
- network over which data are transferred is slow
- another I/O-path - serial line, whatever - is the culprit

Now to the Zombie-problem: when a process ends, it sets an exit code. If you run a system command at the shell level and query the errorlevel you query in fact the exit code of the program. When a program now calls another program (a "fork") it usually does so in a way that it gets this exit code upon termination of the child process. As long as the exit code is not queried by the parent process the entry in the process table remains.

Now it happens sometimes that a parent process terminates (voluntarily or involuntarily) before it can reap its children. These children processes become zombies, because nobody will ever query their exit code. The programs themselves are long gone from memory but the entry in the process table still exists and will do so sometimes until next reboot. It is difficult to remove them.

If your program creates such zombies on a regular basis then this is a case of very sloppy programming. I suggest beating your programmer with the print version of the AIX Programmers Reference on the head until he understands basic UNIX programming concepts.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

reset values for vmstat

How do you reset the values that vmstat displays? Vmstat displays a running average from the last the system was restarted on the first line, how do you reset these values without restarting the system? (Solaris 8) (3 Replies)
Discussion started by: kuczerp
3 Replies

2. UNIX for Dummies Questions & Answers

vmstat

When I exeute vmstat (e.g. vmstat 30 2), in some machines I get some wierd result as the first line. like: -117% or 208% for CPU idle percentage. But the second line is alright. Could someone explain this please. Thanks ! Chaadana (4 Replies)
Discussion started by: chaandana
4 Replies

3. UNIX for Dummies Questions & Answers

vmstat

Hi I wanted to collect data by using vmstat -I 60 >xxxx.txt & using my own account It was stopped by it self after 2 hours try again same result We want to collect day date by succession how to collect data using vmstat for day Thank you (2 Replies)
Discussion started by: Syed_45
2 Replies

4. Linux

vmstat help

Hi everyone, I need to see some VM manager performance/behavior information on some Linux boxes regarding pages scanned/activation of the paging algorithm in order to get an idea if a given server needs more memory and is actually paging. In Aix servers, by using the vmstat cmd you... (1 Reply)
Discussion started by: jcpetela
1 Replies

5. Shell Programming and Scripting

Extract section of file based on word in section

I have a list of Servers in no particular order as follows: virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection). 9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
Discussion started by: jelloir
2 Replies

6. AIX

fr and sr (from vmstat output) values are very high

Hi AIX Expert, the fr (page freed/page replacement) and sr (pages scanned by page-replacement algorithm) values from the vmstat output (see below please) are very high. I usually see this high value during the oracle database backup. In addition, the page scan/page steal/ page faults values... (7 Replies)
Discussion started by: Beginer0705
7 Replies

7. Shell Programming and Scripting

Prepend first line of section to each line until the next section header

I have searched in a variety of ways in a variety of places but have come up empty. I would like to prepend a portion of a section header to each following line until the next section header. I have been using sed for most things up until now but I'd go for a solution in just about anything--... (7 Replies)
Discussion started by: pagrus
7 Replies

8. Programming

Using gdb, ignore beginning segmentation fault until reproduce environment segmentation fault

I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this : i wrote script for watchdog my app (polo) and check every second if it's not running then start it , the problem is , if my app , remain in state of segmentation fault for a while (ie 15 ... (6 Replies)
Discussion started by: pooyair
6 Replies

9. Linux

Vmstat

I m checking idle time using vmstat, below are the results var=$(ssh wmtmgr@$hostname vmstat | tail -1 | awk '{print $15}') 89 and now im subtracting 89 with 100 & im getting expected results expr 100 - $var 11 Now How can I get the result 11 in one line code? (4 Replies)
Discussion started by: sam@sam
4 Replies

10. Programming

C. To segmentation fault or not to segmentation fault, that is the question.

Oddities with gcc, 2.95.3 for the AMIGA and 4.2.1 for MY current OSX 10.14.1... I am creating a basic calculator for the AMIGA ADE *NIX emulator in C as it does not have one. Below are two very condensed snippets of which I have added the results inside the each code section. IMPORTANT!... (11 Replies)
Discussion started by: wisecracker
11 Replies
All times are GMT -4. The time now is 06:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy