Thanks.

 

My concern is more with whether top can accurately keep track of the actual 
memory used by my app. I read somewhere that it sometimes tracks what the 
memory manager reserves for that process instead of the actual memory used. In 
such cases, the memory used field often reflects a value higher than what is 
actually consumed by your app. Is there any truth to this?

 

From: Ray Rashif [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 7:11 PM
To: timgoh0
Cc: darren; Singapore Linux Users' Group Mailing List
Subject: Re: [Slugnet] monitoring the cpu and memory utilisation of my app

 

http://www.usenet-forums.com/linux-general/74456-logging-cpu-usage.html

Utilities already exist. Putting together a simple shell script does the 
logging part. That aside, your idea is correct.

On 15/04/2008, timgoh0 <[EMAIL PROTECTED]> wrote:

Have you considered a combination of valgrind with the Massif
tool(http://valgrind.org/docs/manual/ms-manual.html) and gprof for cpu
usage?



On Tue, 2008-04-15 at 11:54 +0800, darren wrote:
> Hi,
>
> I have written a simple app in C and am currently testing it. I would
> like
> to know how much CPU and ram it is consuming over a period of 1 or 2
> days.
>
> Currently, I am just reading this off via top and adding it to a
> logfile. Is
> this accurate, esp where memory utilisation is concerned?
>



_______________________________________________
Slugnet mailing list
[email protected]
http://wiki.lugs.org.sg/LugsMailingListFaq
http://www.lugs.org.sg/mailman/listinfo/slugnet

 

_______________________________________________
Slugnet mailing list
[email protected]
http://wiki.lugs.org.sg/LugsMailingListFaq
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to