linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Prasanta Sadhukhan <Prasanta.Sadhukhan@Sun.COM>
To: Dan Gary <funkychunkymunky@gmail.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: max heap usage of a Linux process
Date: Tue, 14 Nov 2006 11:56:39 +0530	[thread overview]
Message-ID: <4559619F.3090904@sun.com> (raw)
In-Reply-To: <1450f66c0611130739k5391a9adu26f9698f22df4c85@mail.gmail.com>

Actually, I have the process-pid(s) and I want to find out 
programmatically, what's the max heap size that had been consumed by 
that process at any given moment(based on user command) from another 
process. It seems mallinfo().uordblks will give total occupied size of 
memory not the max heap size consumed. Also, how do I use malloc_stats()?

--Prasanta
Dan Gary wrote:

> unless parent is asking about malloc'd space, then mallinfo() or
> malloc_stats() might be what they're looking for, memory profiling the
> manual way, gotta love it
>
> On 11/13/06, Markus Rechberger <mrechberger@gmail.com> wrote:
>
>> Hi,
>>
>> On 11/13/06, Prasanta Sadhukhan <Prasanta.Sadhukhan@sun.com> wrote:
>> > Hi,
>> >
>> > Can anybody please tell how can I obtain the max. heap usage of a 
>> Linux
>> > process?
>> >
>>
>> theoretically 3 GB (3/4 of 4gb - which are addressable by 32 bit) on 
>> a 32bit machine on a 64bit machine 3/4 of 16exabyte.
>>
>> cheers,
>> Markus
>> -
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-c-programming" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html




  parent reply	other threads:[~2006-11-14  6:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-13 13:31 max heap usage of a Linux process Prasanta Sadhukhan
2006-11-13 14:09 ` Markus Rechberger
2006-11-13 15:39   ` Dan Gary
2006-11-13 15:59     ` Markus Rechberger
2006-11-13 16:12       ` Christ, Bryan
2006-11-14  6:26     ` Prasanta Sadhukhan [this message]
2006-11-14 10:57       ` Glynn Clements
2006-11-14 11:30         ` Prasanta Sadhukhan
2006-11-14 14:36           ` Glynn Clements
2006-11-14 11:39         ` Al Boldi
2006-11-14 15:19         ` Christ, Bryan
2006-11-13 15:30 ` Christ, Bryan

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=4559619F.3090904@sun.com \
    --to=prasanta.sadhukhan@sun.com \
    --cc=funkychunkymunky@gmail.com \
    --cc=linux-c-programming@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).