LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-30-2008, 01:10 PM   #1
christopher_c
Member
 
Registered: Sep 2007
Posts: 61

Rep: Reputation: 15
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?
 
Old 04-30-2008, 02:01 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

'top' or 'ps'

You can 'man' to get the specifics.
 
Old 04-30-2008, 02:21 PM   #3
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
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.
 
Old 04-30-2008, 02:58 PM   #4
christopher_c
Member
 
Registered: Sep 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Samotnik View Post
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
 
  


Reply



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
How to check memory usage on running process/applications rickylim Linux - General 17 05-08-2013 09:09 PM
Check process mem usage? Zeno McDohl Linux - Newbie 8 03-17-2008 04:53 PM
child process usses same amount of ram as parent process socialjazz Programming 7 10-19-2006 05:48 PM
RAM usage Deelk Linux - General 11 03-27-2006 03:03 PM
RAM usage Serena Linux - General 1 08-12-2003 10:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 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
Open Source Consulting | Domain Registration