Different VMSTAT output on Linux and Solaris machines | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Different VMSTAT output on Linux and Solaris machines

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-13-2013
Basant Mishra Basant Mishra is offline
Registered User
 
Join Date: Jul 2013
Last Activity: 13 July 2013, 6:21 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question Different VMSTAT output on Linux and Solaris machines

Hi,
I am porting a piece of code from Solaris to Linux. Code uses VMSTAT command.
On Solaris machine VMSTAT output is following:

Code:
uname -a:
SunOS rgsm01 5.9 Generic_118558-03 sun4u sparc SUNW,Sun-Fire-V440

vmstat:

Code:
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr m1 m2 m4 m5 in sy cs us sy id
0 0 0 29021296 3922400 177 335 27 568 380 0 3 0 0 0 0 182 293 221 32 11 57

On Linux machine VMSTAT output is following:

Code:
uname -a:
Linux GURKES060 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

vmstat

Code:
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 299732 802180 24825992 0 0 6 32 2 1 2 0 98 0 0

I want the paging information on linux.How can I get it?

Last edited by Scott; 07-13-2013 at 03:01 AM.. Reason: Code tags
Sponsored Links
    #2  
Old 07-13-2013
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 24 October 2014, 4:53 AM EDT
Location: Paris
Posts: 4,431
Thanks: 16
Thanked 474 Times in 427 Posts
The paging information is there, under the "si" and "so" columns (swapped-in/swapped-out, should better be labelled "pi" and "po" for paged-in/paged-out).
Sponsored Links
    #3  
Old 07-13-2013
Basant Mishra Basant Mishra is offline
Registered User
 
Join Date: Jul 2013
Last Activity: 13 July 2013, 6:21 AM EDT
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question

Thanx

---------- Post updated at 01:32 PM ---------- Previous update was at 01:20 PM ----------

But in man pages of VMSTAT on linux si and so are described as:


Code:
Swap
       si: Amount of memory swapped in from disk (/s).
       so: Amount of memory swapped to disk (/s).

However pi and po are following:

Code:
pi:    Pages paged in from the paging space. 
po:    Pages paged out to the paging space.


also I need following fields:

Code:
mf
de
sr


Last edited by Scott; 07-13-2013 at 03:33 AM.. Reason: Use code tags, please...
    #4  
Old 07-13-2013
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 24 October 2014, 4:53 AM EDT
Location: Paris
Posts: 4,431
Thanks: 16
Thanked 474 Times in 427 Posts
Linux documentation uses swap when it should use paginate, for historical reasons.

Use "sar -B interval" for more detailed statistics including faults and scan rate.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
vmstat output sraj142 AIX 7 04-11-2012 02:33 AM
check external hardware connected to linux/solaris machines lhareigh890 UNIX for Advanced & Expert Users 2 10-22-2010 01:25 PM
help with vmstat output jamie_collins Solaris 1 06-21-2010 03:32 AM
vmstat incomprehensible output Vit0_Corleone AIX 3 06-07-2010 03:14 AM
output of vmstat gfhgfnhhn UNIX for Advanced & Expert Users 1 09-22-2006 09:54 AM



All times are GMT -4. The time now is 06:18 AM.