From: Hugo Ferreira <hmf@inescporto.pt>
To: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Tracking memory usage: GC output not same order as unix top command
Date: Mon, 30 Aug 2010 11:33:48 +0100 [thread overview]
Message-ID: <4C7B890C.7090704@inescporto.pt> (raw)
In-Reply-To: <20100830100648.GB7715@annexia.org>
Hi,
Richard Jones wrote:
> On Mon, Aug 30, 2010 at 11:02:52AM +0100, Richard Jones wrote:
>> On Mon, Aug 30, 2010 at 10:43:42AM +0100, Hugo Ferreira wrote:
>>> The output
>>> shows memory usage below the 100M mark, however the unix command
>>> "top" shows usage in the order of Gigabytes (at least 4.8). This
>>> memory consumption grows gradually.
>> The output of top isn't a reliable way to measure memory usage.
>>
>> Really you should be looking at /proc/<pid>/maps. That will show you
>> if, for example, the heap is becoming fragmented or if there's some
>> memory leak.
No looking for exact or detailed data. Just trying to identify which
function is the culprit. An order of magnitude in difference makes me
think I am doing something wrong.
>> There is a nice utility for examining maps files and
>> system memory usage, but the name of it escapes me at the moment.
>
> I might have been thinking of this one:
>
> http://lwn.net/Articles/329458/
>
I looked at this tool. Going to ask the admin if he can install
this because I cannot interpret the output from the "/proc/<pid>/maps".
Thanks for the pointer,
Hugo F.
> Rich.
>
next prev parent reply other threads:[~2010-08-30 10:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 9:43 Hugo Ferreira
2010-08-30 10:02 ` [Caml-list] " Richard Jones
2010-08-30 10:06 ` Richard Jones
2010-08-30 10:33 ` Hugo Ferreira [this message]
2010-08-30 13:53 ` Richard Jones
2010-08-30 14:12 ` Pietro Abate
2010-08-30 14:17 ` Hugo Ferreira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C7B890C.7090704@inescporto.pt \
--to=hmf@inescporto.pt \
--cc=caml-list@inria.fr \
--cc=rich@annexia.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox