"Universal" sar option to check for paging issues?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers "Universal" sar option to check for paging issues?
# 1  
Old 03-29-2012
"Universal" sar option to check for paging issues?

Hi,

Can anyone please advise a universal command option for using sar to check for paging/memory issues.

For Linux, I used sar -B and check on the majflt/s column and a high number is supposed to indicate paging issues, is that correct?

Unfortunately, on a Solaris server, sar -B does not work. From Googling, it says use sar -g on Solaris.


Code:
SunOS prod001 5.9 Generic_122300-52 sun4u    03/29/2012

00:00:00  pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf
01:00:00     0.10     0.10     0.10     0.00     0.00
02:00:00     0.08     0.09     0.09     0.00     0.00
03:00:00     0.11     0.12     0.10     0.00     0.00
04:00:01     0.12     0.14     0.13     0.00     0.00
05:00:00     0.08     0.09     0.09     0.00     0.00
06:00:01     0.11     0.15     0.14     0.00     0.00
07:00:00     0.16     0.20     0.18     0.00     0.00
08:00:00     0.19     0.24     0.20     0.00     0.00
08:20:00     0.21     0.25     0.21     0.00     0.00
08:40:00     0.20     0.24     0.19     0.00     0.00
09:00:00     0.21     0.25     0.19     0.00     0.00
09:20:00     0.22     0.27     0.22     0.00     0.00
09:40:01     0.19     0.21     0.18     0.00     0.00
10:00:00     0.18     0.19     0.16     0.00     0.00
10:20:00     0.20     0.23     0.19     0.00     0.00
10:40:00     0.17     0.18     0.15     0.00     0.00
11:00:00     0.21     0.22     0.17     0.00     0.00
11:20:00     0.21     0.24     0.19     0.00     0.00
11:40:00     0.18     0.19     0.15     0.00     0.00
12:00:00     0.19     0.20     0.16     0.00     0.00
12:20:00     0.16     0.18     0.15     0.00     0.00
12:40:01     0.18     0.19     0.16     0.00     0.00
13:00:00     0.18     0.19     0.15     0.00     0.00
13:20:00     0.19     0.19     0.15     0.00     0.00

But I don't understand what exactly am I supposed to be looking for to check for paging to determine whether I am having memory issues or not?

Anyone know of a link that has some detailed explanation of how to check whether the system is swapping and hence I need more memory?

Is there a sar -g equivalent in Linux or a sar -B equivalent in Solaris?Smilie

Thanks in advance.
# 2  
Old 03-29-2012
I don't have Solaris at hand, but from the manuals it seems you might want to use vmstat -S and check the pi and po columns. I didn't check it for sar, but the output of sar you posted, doesn't show how much memory have been swapped/paged. Though I guess you got the idea.
There isn't that often a switch for many tools that works on every distro or derivate of Unix/Linux.
A good practice might be to check the type of OS 1st and then decide which tool and switch/option to use.

Here is a link to the documentation I checked:
Displaying Virtual Memory Statistics (vmstat) - System Administration Guide: Advanced Administration

Last edited by zaxxon; 03-29-2012 at 07:53 AM.. Reason: added info
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What is the meaning of "-s" option in "if" statement?

Hi Guys, I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below: opath=/home/output for i in N1 N2 N3 N4 do echo $i if then grep $i $opath/N5_CRAI > $opath/N5_$i.crai chmod 777 $opath/N5_$i.crai ... (7 Replies)
Discussion started by: rymnd_12345
7 Replies

2. Shell Programming and Scripting

Use "less" for paging in Bash's file completion

I've got $PAGER set to "less". Less is used instead of More everywhere except for when I type a double-tab for filename completion at the Bash command line. Is there any way to get Less to be used when files are listed for filename completion? (0 Replies)
Discussion started by: StarNixGeezer
0 Replies

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

4. Solaris

How to check "faulty" or "stalled" print queues - SAP systems?

Hi all, First off, sorry for a long post but I think I have no other option if I need to explain properly what I need help for. I need some advise on how best to check for "faulty" or "stalled/jammed' print queues. At the moment, I have three (3) application servers which also acts as print... (0 Replies)
Discussion started by: newbie_01
0 Replies

5. AIX

Why using "%" of Paging size increases & how to decrease this percentage?

Hi I have found a problem on my AIX 5.1 server. day by day the paging size is increasing,what is the reason behind it and if percentage is at 100 what will happen. Oracle 9i is running on my server. PAGING SPACE size,mb 5632 % used 14.6 % free 85.3 How can i decrease the using... (6 Replies)
Discussion started by: dearsumon
6 Replies

6. Shell Programming and Scripting

read -p "prompt text" foo say "read: bad option(s)" in Bourne-Shell

Hallo, i need a Prompting read in my script: read -p "Enter your command: " command But i always get this Error: -p: is not an identifier When I run these in c-shell i get this error /usr/bin/read: read: bad option(s) How can I use a Prompt in the read command? (9 Replies)
Discussion started by: wiseguy
9 Replies

7. Shell Programming and Scripting

check input = "empty" and "numeric"

Hi how to check input is "empty" and "numeric" in ksh? e.g: ./myscript.ksh k output show: invalid number input ./myscript.ksh output show: no input ./myscript.ksh 10 output show: input is numeric (6 Replies)
Discussion started by: geoffry
6 Replies

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

9. Shell Programming and Scripting

Making your script "universal"

I'm currently using Sun Solaris Unix. How can you make your unix bash or C script usable in all directories and subdirectories and not just the dir the script is located in? Essentially, to make it a command script as universal as a basic unix command like ls or cd. Thanks for the help! (4 Replies)
Discussion started by: axeldrummer
4 Replies

10. UNIX for Advanced & Expert Users

Commands on Digital Unix equivalent to for "top" and "sar" on other Unix flavour

Hi, We have a DEC Alpha 4100 Server with OSF1 Digital Unix 4.0. Can any one tell me, if there are any commands on this Unix which are equivalent to "top" and "sar" on HP-UX or Sun Solaris ? I am particularly interested in knowing the CPU Load, what process is running on which CPU, etc. ... (1 Reply)
Discussion started by: sameerdes
1 Replies
Login or Register to Ask a Question