LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2012, 07:46 PM   #1
L1nuxn00b703
Member
 
Registered: Sep 2009
Posts: 115

Rep: Reputation: 15
Reading sar


Hi all,
Im running sar on this machine and I get the following:

Code:
# sar -r
Linux 2.4.18 (testbox)        03/15/2012

12:00:00 AM kbmemfree kbmemused  %memused kbmemshrd kbbuffers  kbcached kbswpfree kbswpused  %swpused
12:01:00 AM     56736   2004384     97.25         0      6404     70208   1413476    647952     31.43
12:02:01 AM     10704   2050416     99.48         0      6408     69352   1412324    649104     31.49
12:03:00 AM     10676   2050444     99.48         0      4264     63220   1376776    684652     33.21
12:04:00 AM     10228   2050892     99.50         0      4192     62440   1340936    720492     34.95
12:05:00 AM     10500   2050620     99.49         0      4464     62236   1312264    749164     36.34
12:06:01 AM      8080   2053040     99.61         0      4440     64740   1263880    797548     38.69
12:07:00 AM      8916   2052204     99.57         0      3264     44420   1236588    824840     40.01
12:08:00 AM      8828   2052292     99.57         0      3060     40836   1200496    860932     41.76
12:09:01 AM      8816   2052304     99.57         0      3052     40840   1166324    895104     43.42
12:10:01 AM      9452   2051668     99.54         0      3240     40960   1136884    924544     44.85
12:11:00 AM      9720   2051400     99.53         0      3208     40848   1102244    959184     46.53
12:12:01 AM     11500   2049620     99.44         0      3384     41060   1056372   1005056     48.76
12:13:00 AM     10560   2050560     99.49         0      3712     42048   1020748   1040680     50.48
12:14:00 AM     10340   2050780     99.50         0      3584     41340    995384   1066044     51.71
12:15:01 AM     10180   2050940     99.51         0      3580     40996    964312   1097116     53.22
What are the important fields to know/look for on this RAM output of sar? Thanks.
 
Old 03-16-2012, 12:13 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Of particular interest in that output is %swpused. The fact that you're using so much swap likely means your system is overworked.

Check top(1) output and sort by the VIRT column to start tracking down what's eating up memory.
 
Old 03-16-2012, 02:18 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
It depends on your requirement what information you want to look into according to your problem. By the way all fields are important.
 
Old 03-16-2012, 11:16 AM   #4
premkumar.st
LQ Newbie
 
Registered: Jul 2011
Location: India
Posts: 13

Rep: Reputation: Disabled
The best way is top command in linux from this you can track the swap usage and you can identify which user & process occupies more swap usage on server.

Something like below

top - 11:14:35 up 110 days, 23:38, 0 users, load average: 0.08, 0.15, 0.12
Tasks: 425 total, 1 running, 422 sleeping, 0 stopped, 2 zombie
Cpu(s): 0.8% user, 6.3% system, 0.0% nice, 92.9% idle
Mem: 4069916k total, 3843228k used, 226688k free, 413348k buffers
Swap: 2097136k total, 0k used, 2097136k free, 2642968k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP COMMAND
1121 root 15 0 1364 916 652 S 0.0 0.0 0:18.77 448 cmastdeqd

# ps -eaf | grep 1121
root 1121 1 0 2011 ? 00:00:18 cmastdeqd -p 30
root 1124 1121 0 2011 ? 00:00:00 cmastdeqd -p 30


Thanks
Prem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sar manoj.linux AIX 1 01-03-2008 08:52 AM
About sar satimis Linux - Software 2 06-14-2006 05:35 AM
Sar -b DotHQ Linux - General 0 05-04-2006 08:44 AM
i cannot get the sar reading for 00:00:00 spyghost Solaris / OpenSolaris 1 04-06-2006 09:58 AM
Sar sathish80 Linux - Newbie 1 01-16-2006 07:57 AM


All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration