LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-08-2010, 01:27 AM   #1
rangrej25
LQ Newbie
 
Registered: Feb 2010
Posts: 1

Rep: Reputation: 0
How to get the each process actual RAM memory usage in linux 2.6.21 or higher version


I woukld like to know the kernel command or linux kernel file name where i can get the process actual physical RAM usage in linux version 2.6.21 or hiher version.
 
Old 02-08-2010, 08:18 AM   #2
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
'top'
 
Old 02-08-2010, 08:46 AM   #3
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,125

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
Quote:
Originally Posted by rangrej25 View Post
process actual physical RAM usage
That isn't a well defined quantity. For any useful definition, it isn't easily measured.

The RES column in top (and available many other places) is probably the best easy to get approximation of the each process's physical ram use.

Some physical ram will be counted multiple times if you add up the RES columns. So RES is usually a slight over estimate of physical ram use.

Some pages may be frequently soft faulted between a process and the page cache (so part of a meaningful physical ram use of that process, but not included in RES). So RES could be an under estimate of physical ram use. Most of cache memory is effectively free. But some of it is actively soft faulted. I don't think there is a decent way to measure what fraction of cache should be interpreted as free.
 
  


Reply

Tags
memory, process, size


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding linux actual memory usage wmasry Linux - General 1 12-16-2009 09:09 AM
How to get the memory usage of myself process (GetProcessMemoryInfo() 4 linux)? faristol Programming 2 04-24-2009 09:41 AM
how to check ram usage by process christopher_c Linux - Newbie 3 04-30-2008 03:58 PM
restricting ram / memory usage arunachalam Linux - Software 2 07-23-2007 02:48 PM
how to find max memory usage for process in Linux by command line kashameni Linux - Newbie 9 06-01-2007 02:39 AM


All times are GMT -5. The time now is 12:28 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