kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Kernel module to dump Used heap/stack of a user process
Date: Tue, 15 May 2012 23:47:39 +0700	[thread overview]
Message-ID: <CAGdaadbKe9rqz80Fx28yP4W+UG93msc6ev_rFSWmRkMa30sf7g@mail.gmail.com> (raw)
In-Reply-To: <CABFWu7YypgPC=PjJfvheWUFMMH2HNr=+VJNEvo4HkMYzf9jsRQ@mail.gmail.com>

Hi...

On Tue, May 15, 2012 at 10:30 AM, Dhyan <linuxdhyan@gmail.com> wrote:

> But my problem as like mentioned is to find out the exact used heap size of
> the user process instead of total allocated space.

try to check how /proc/<pid>/smaps calculate RSS fields....

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

      reply	other threads:[~2012-05-15 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14  9:56 Kernel module to dump Used heap/stack of a user process Dhyan
2012-05-14 10:14 ` 王哲
2012-05-15  3:30   ` Dhyan
2012-05-15 16:47     ` Mulyadi Santosa [this message]

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=CAGdaadbKe9rqz80Fx28yP4W+UG93msc6ev_rFSWmRkMa30sf7g@mail.gmail.com \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).