LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-08-2008, 07:52 PM   #1
disordr
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Monitoring Memory, VSZ or RSS


Hello,

I'm setting up Nagios as my monitoring/alerting system and want to monitor the memory usage of a few specific processes.
I've read the ps man page as well as lots of online docs about the differences between virtual and resident memory.
I'm still unsure about which metric I should use to monitor though.
VSZ obviously includes RSS along with other shared things (libraries, devices, etc) so it seems that if I monitor VSZ, I'll find out quickly enough if any processes leak memory.

Does this sound reasonable, or should I only really be concerned with the Resident memory usage?

I'm running a Linux Debian Etch system.

Thanks for the suggestions.
 
Old 09-08-2008, 09:51 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,138

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
There is no good memory usage metric in Linux. Out of those two, RSS would be your best bet, but includes (in storage) pages for shared libraries.
Recently a new metric PSS was added to smaps to apportion the shared pages more "fairly" - FSVO fairly. If you have access to that, use it instead. Merely makes the numbers less "rubbery", not correct.
 
  


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
Why is VSZ more than RSS in ps aux even if I'm not using any swap? weijie90 Linux - Hardware 4 08-20-2008 06:02 PM
Monitoring free memory with enterprise monitoring application Steelb Linux - Enterprise 2 02-13-2008 10:10 AM
memory monitoring in-process mmeijer Programming 2 07-14-2006 11:00 AM
memory types - what's what: vm resident shared rss X's jonaskoelker Linux - Software 2 05-26-2005 04:59 AM


All times are GMT -5. The time now is 11:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration