Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 02-08-2010, 12:27 AM   #1
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, 07:18 AM   #2
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Old 02-08-2010, 07:46 AM   #3
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
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.


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 08:09 AM
How to get the memory usage of myself process (GetProcessMemoryInfo() 4 linux)? faristol Programming 2 04-24-2009 08:41 AM
how to check ram usage by process christopher_c Linux - Newbie 3 04-30-2008 02:58 PM
restricting ram / memory usage arunachalam Linux - Software 2 07-23-2007 01:48 PM
how to find max memory usage for process in Linux by command line kashameni Linux - Newbie 9 06-01-2007 01:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:33 PM.

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