LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-21-2009, 11:40 PM   #1
msmeenamani
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Question CPU and memory usage??


Can any one suggest a profiler or a command to get the exact cpu and memory usage of the system?? Some suggest valgrind, but i need the output in text format whereas valgrind displays it in graphical mode..
 
Old 02-21-2009, 11:45 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,274

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Define "exact"
 
Old 02-22-2009, 12:54 AM   #3
msmeenamani
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Question

exact in the sense that ps command will only get the amount of memory pages allocated by that process,does not reflect the actual amount of memory used by the application. I need something tat gives the actual memory used by the process.
 
Old 02-22-2009, 01:49 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,274

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Meaning what ??? Way too nebulous.
Have a look at pmap, /proc/<pid>/maps and probably most useful /proc/<pid>/smaps

But the way shared libraries are (not) accounted for in Linux, all the numbers you can come up with will be fuzzy. Exact ain't a description I'd be using in any sense of the word.
 
  


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
How to get usage of CPU, Memory ? dangdtvn Programming 10 01-13-2009 08:49 PM
cpu and memory usage graziano1968 Linux - General 1 04-21-2007 06:49 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM


All times are GMT -5. The time now is 03:09 AM.

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