Sponsored Content
Top Forums UNIX for Dummies Questions & Answers "Universal" sar option to check for paging issues? Post 302614855 by newbie_01 on Thursday 29th of March 2012 02:20:03 AM
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.
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
sar(1M) 						  System Administration Commands						   sar(1M)

NAME
sar, sa1, sa2, sadc - system activity report package SYNOPSIS
/usr/lib/sa/sadc [ t n] [ofile] /usr/lib/sa/sa1 [ t n] /usr/lib/sa/sa2 [-aAbcdgkmpqruvwy] [-e time] [-f filename] [-i sec] [-s time] DESCRIPTION
System activity data can be accessed at the special request of a user (see sar(1)) and automatically, on a routine basis, as described here. The operating system contains several counters that are incremented as various system actions occur. These include counters for CPU utilization, buffer usage, disk and tape I/O activity, TTY device activity, switching and system-call activity, file-access, queue activ- ity, inter-process communications, and paging. For more general system statistics, use iostat(1M), sar(1), or vmstat(1M). sadc and two shell procedures, sa1 and sa2, are used to sample, save, and process this data. sadc, the data collector, samples system data n times, with an interval of t seconds between samples, and writes in binary format to ofile or to standard output. The sampling interval t should be greater than 5 seconds; otherwise, the activity of sadc itself may affect the sam- ple. If t and n are omitted, a special record is written. This facility can be used at system boot time, when booting to a multi-user state, to mark the time at which the counters restart from zero. For example, when accounting is enabled, the svc:/sys- tem/sar:default service writes the restart mark to the daily data file using the command entry: su sys -c "/usr/lib/sa/sadc /var/adm/sa/sa'date +%d'" The shell script sa1, a variant of sadc, is used to collect and store data in the binary file /var/adm/sa/sadd, where dd is the current day. The arguments t and n cause records to be written n times at an interval of t seconds, or once if omitted. The following entries in /var/spool/cron/crontabs/sys will produce records every 20 minutes during working hours and hourly otherwise: 0 * * * 0-6 /usr/lib/sa/sa1 20,40 8-17 * * 1-5 /usr/lib/sa/sa1 See crontab(1) for details. The shell script sa2, a variant of sar, writes a daily report in the file /var/adm/sa/sardd. See the OPTIONS section in sar(1) for an explanation of the various options. The following entry in /var/spool/cron/crontabs/sys will report important activities hourly during the working day: 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A FILES
/tmp/sa.adrfl address file /var/adm/sa/sadd Daily data file /var/adm/sa/sardd Daily report file /var/spool/cron/crontabs/sys ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWaccu | +-----------------------------+-----------------------------+ SEE ALSO
crontab(1), sag(1), sar(1), svcs(1), timex(1), iostat(1M), svcadm(1M), vmstat(1M), attributes(5), smf(5) System Administration Guide: Basic Administration NOTES
The sar service is managed by the service management facility, smf(5), under the service identifier: svc:/system/sar Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser- vice's status can be queried using the svcs(1) command. SunOS 5.10 20 Aug 2004 sar(1M)
All times are GMT -4. The time now is 04:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy