LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to check ram usage by process (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-ram-usage-by-process-638936/)

christopher_c 04-30-2008 01:10 PM

how to check ram usage by process
 
Hey guys

I was wondering if there was a command that would be able to show me the amount of ram that each process is consuming. Also, after using the command cat /proc/meminfo, I get the following:

MemTotal: 262316 kB
MemFree: 3176 kB

Im assuming 3000kB is VERY low right?

onebuck 04-30-2008 02:01 PM

Hi,

'top' or 'ps'

You can 'man' to get the specifics.

Samotnik 04-30-2008 02:21 PM

MemFree shows you takes into account all disk caches and buffers together with actual programms memory. To count memory occupied by programs you should subtract MemFree Buffers and Cached from MemTotal.

christopher_c 04-30-2008 02:58 PM

Quote:

Originally Posted by Samotnik (Post 3138019)
MemFree shows you takes into account all disk caches and buffers together with actual programms memory. To count memory occupied by programs you should subtract MemFree Buffers and Cached from MemTotal.

Ahh, so, it is :
262315 - (48648+3176) ?

MemTotal: 262316 kB
MemFree: 3176 kB
Buffers: 664 kB
Cached: 48648 kB
SwapCached: 42216 kB
Active: 216100 kB
Inactive: 20556 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 262316 kB
LowFree: 3176 kB
SwapTotal: 1048568 kB
SwapFree: 824592 kB
Dirty: 184 kB
Writeback: 0 kB
Mapped: 212720 kB
Slab: 10636 kB
CommitLimit: 1179724 kB
Committed_AS: 594600 kB
PageTables: 2768 kB
VmallocTotal: 696312 kB
VmallocUsed: 1168 kB
VmallocChunk: 694724 kB


also, thanks onebuck, will look into it


All times are GMT -5. The time now is 10:54 PM.