LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-07-2003, 06:09 PM   #1
unosoft
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
measure memory usage


How can I measure the total memory usage of a proccess.
I know that the commad "top" would give some percentages at that instant, but what I want is the peak memory usage.

Is there any function that I can use to obtain the memory usage ?
Where is the command "top" source code?

I was trying to change the kmalloc and kfree, to print the
memory usage, to get at least the peak heap usage.

Does anybody know a good way to solve this problem?


Thank you.
 
Old 10-07-2003, 06:25 PM   #2
bolinux
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1 with KDE 3.2
Posts: 257

Rep: Reputation: 30
At NTOP
there is a utility called ntop. It has source code and looks the same as the command top. Top does have a source forge page but I don't know if they have any files released. It might not be what you want but it's worth a try.

If I find anything I'll post it.

Last edited by bolinux; 10-07-2003 at 06:26 PM.
 
  


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 measure a program's peak memory consumption? hae Linux - Software 2 06-23-2005 08:39 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
need top clone- to measure CPU usage pao Linux - Software 4 10-07-2004 09:46 AM
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 11:29 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