From: "chen free" <dits365@gmail.com>
To: "Frederic RISS" <frederic.riss@st.com>
Cc: gdb@sources.redhat.com
Subject: Re: What exactly does "info sharedlibrary" command show?
Date: Tue, 29 Aug 2006 13:36:00 -0000 [thread overview]
Message-ID: <e55f4e5f0608290636r4aa52edbt35e17b038e5c8b0@mail.gmail.com> (raw)
In-Reply-To: <1156857555.3429.209.camel@crx549.cro.st.com>
What I'm interested in is the snap-shot of physical memory usage of
shared libraries. Yes, maybe I should try other tools.
Anyway, thanks, Fred.
Regards,
Eric
2006/8/29, Frederic RISS <frederic.riss@st.com>:
> On Tue, 2006-08-29 at 21:00 +0800, chen free wrote:
> > Yes, it a tough job, maybe I have to dump the memory image and look
> > into it. BTW, the "dump" command of GDB is also only able to dump
> > process' own virtual memory space ? Because when I try to dump
> > physical memory address range, the result is all zeros....I tried this
> > on 2.6 kernel
>
> Usually a process has only access to its virtual address space, thus
> accessing physical memory ranges might not even be possible.
> Even if you can access the physical memory, it's most of the time just
> pointless because the data is loaded in memory only on-demand (upon a
> pagefault).
> That's why I said it's a tough job. Memory usage is hard to define when
> you deal with code that is shared among processes and loaded only when
> necessary...
>
> But we're diverging from GDB. I don't know exactly what 'memory usage'
> you want to monitor, but maybe GDB isn't the right tool for what you
> want to do (debugger vs profiler?)
>
> Fred.
>
>
prev parent reply other threads:[~2006-08-29 13:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-29 12:03 chen free
2006-08-29 12:40 ` Daniel Jacobowitz
2006-08-29 19:15 ` Mark Kettenis
2006-08-29 19:28 ` Daniel Jacobowitz
2006-08-29 20:06 ` Mark Kettenis
2006-08-29 20:12 ` Daniel Jacobowitz
2006-08-29 21:05 ` Steve Eaton
2006-08-29 21:17 ` Daniel Jacobowitz
2006-08-29 21:08 ` Mark Kettenis
2006-08-29 21:24 ` Daniel Jacobowitz
2006-08-30 5:22 ` chen free
2006-08-30 12:39 ` Daniel Jacobowitz
2006-08-30 13:24 ` chen free
2006-08-29 12:47 ` Frederic RISS
2006-08-29 13:00 ` chen free
2006-08-29 13:20 ` Frederic RISS
2006-08-29 13:36 ` chen free [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=e55f4e5f0608290636r4aa52edbt35e17b038e5c8b0@mail.gmail.com \
--to=dits365@gmail.com \
--cc=frederic.riss@st.com \
--cc=gdb@sources.redhat.com \
/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