Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-07-2003, 06:09 PM   #1
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
Registered: Oct 2003
Distribution: Fedora Core 1 with KDE 3.2
Posts: 257

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


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 AM.

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
Open Source Consulting | Domain Registration