Simple question about vmstat


 
Thread Tools Search this Thread
Operating Systems Solaris Simple question about vmstat
# 1  
Old 07-26-2011
Simple question about vmstat

Hi friends,

I have confusion about VMSTAT command.

1. When I execute "vmstat" command without any interval then I got something like following output.

Code:
vmstat
 procs     memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m1 m1 m1 m3   in   sy   cs us sy id
 2 573 0 5494680 6128480 2534 2256 18013 5 4 0 0 1 0 4 1 595 3713 1125 55 12 33

It indicates around 6GB free memory.

2. When I execute "vmstat 5 10" command (with intervals) then I am getting following

Code:
procs     memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m1 m1 m1 m3   in   sy   cs us sy id
 1 539 0 5355432 5939368 2503 2212 17903 5 4 0 0 1 0 5 1 632 1089 668 54 12 34
 0 858993236 0 1420912 1440816 157 6020 268 26 26 0 0 0 0 3 0 872 23166 5697 39 11 51

It indicates around 1.2 GB free memory.

Why this is happening. What is the different between those 2 commands. What is actual free memory?

Thanks and regards,
Rahul

Last edited by pludi; 07-26-2011 at 12:01 PM..
# 2  
Old 07-26-2011
the first line is always the average value for the whole uptime of the machine. so all other lines are the current values...
# 3  
Old 07-26-2011
Code:
procs     memory            page            disk          faults      cpu
 r b w   swap  free  re  mf pi po fr de sr m1 m1 m1 m3   in   sy   cs us sy id
 1 539 0 5355432 5939368 2503 2212 17903 5 4 0 0 1 0 5 1 632 1089 668 54 12 34
 0 858993236 0 1420912 1440816 157 6020 268 26 26 0 0 0 0 3 0 872 23166 5697 39 11 51

858 millions threads hanging in the blocked queue is quite impressive ...
This User Gave Thanks to jlliagre For This Post:
# 4  
Old 07-26-2011
wow... didn't even take a look at the output... that's realy impressive! maybe a fork bomb Smilie
This User Gave Thanks to DukeNuke2 For This Post:
# 5  
Old 07-27-2011
858 millions threads hanging in the blocked queue is quite impressive ...
didn't even take a look at the output... that's realy impressive! maybe a fork bomb

What you mean? Kindly explain me to understand. Does it something wrong? Please advice.
# 6  
Old 07-27-2011
Well, my first guess is that value is bogus.

What says
Code:
prstat -a 1 1 | tail -1

?

Last edited by jlliagre; 07-27-2011 at 01:54 PM.. Reason: Bogus command
# 7  
Old 07-27-2011
and a longer vmstat output (more lines) might also be usefull...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Question on r-queue from vmstat out

On our prod system we found sometime runqueue goes back to 0 as below. Whereas on test server even with very very less work the r-queue never dropped to 0. Under what conditions r-queue drops to 0? Does it mean something unusual? EG: kthr memory page faults ... (1 Reply)
Discussion started by: aixusrsys
1 Replies

2. Red Hat

Syslog.conf: looking for a simple answer on a simple question

Cheers! In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not? To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies

3. UNIX for Dummies Questions & Answers

Red Hat Linux question on top and vmstat outputs

RHEL 5.4 Our Linux machine seemed to be running slow. So, I ran the top and vmstat commands. Question1. I can see the process 11517 consuming 100% CPU . But that just means that this process totally utilizes one of the cores in a mult-core CPU. Right ? This machine apparently has two... (2 Replies)
Discussion started by: kraljic
2 Replies

4. Shell Programming and Scripting

Very simple question 2

Hey , another question is below: Administrator@fe038390aa60482 ~/Frank/20130509 $ c=`ls -ls` Administrator@fe038390aa60482 ~/Frank/20130509 $ echo $c Total 4 1 -rwxr--r-- 1 Administrator None 482 May 9 11:07 do_increment 1 -rwxr --r-- 1 Administrator None 272 May 9 11:32 do_square 1... (2 Replies)
Discussion started by: franksunnn
2 Replies

5. Shell Programming and Scripting

Very simple question

Hi, guys, I'm a new comer here. I'm studying Unix Shell and I met a problem confusing me a lot. Here it is : script 1: #!/bin/sh # scriptname : do_increment increment(){ sum=`expr $1 + 1` return $sum # Return the value of sum to the script. } echo -n "The sum is " increment $1 # Call... (2 Replies)
Discussion started by: franksunnn
2 Replies

6. HP-UX

vmstat question

if I have a two CPU when I run vmstat command to check cpu usage it only one row procs memory page faults cpu r b w avm free re at pi po fr de sr in sy cs us sy id 1 ... (1 Reply)
Discussion started by: alert0919
1 Replies

7. Shell Programming and Scripting

Simple ls question

i am doing ls -la in the out put , first line is as total 41621 What is this total? (2 Replies)
Discussion started by: Saurabh78
2 Replies

8. Programming

Simple C question... Hopefully it's simple

Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies

9. UNIX for Dummies Questions & Answers

Ok simple question for simple knowledge...

Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies

10. UNIX for Dummies Questions & Answers

vmstat question

Hello all, I have the folowing question: I have an E450 with Solaris 2.6 running in a cluster environment. The primary node runs Oracle 8.1.5. My problem is: every time the Oracle Database is shutdown, the "w"colum in vmstat command jumps to "30". In man page for vmstat command, the "w" colum... (1 Reply)
Discussion started by: htsubamoto
1 Replies
Login or Register to Ask a Question

Featured Tech Videos