From: Bernhard Graf <list-supervision@augensalat.de>
To: supervision@list.skarnet.org
Subject: Re: Q: Determine memory consumption
Date: Wed, 7 May 2008 21:04:56 +0200 [thread overview]
Message-ID: <200805072104.56067.list-supervision@augensalat.de> (raw)
In-Reply-To: <200805060849.16523.rwoodrum@avvo.com>
On Tuesday 06 Mai 2008, Ryan Woodrum wrote:
> On Tuesday 06 May 2008 08:37:36 am Bernhard Graf wrote:
> > With softlimit (and ulimit) one can set several memory limits, most
> > interesting data and stack segment.
> >
> > How do I determine the actual memory consumption for data and stack
> > of a process?
> > With tools like ps and top I only get code + data + stack summed
> > up.
>
> Something like pmap?
>
> rwoodrum@frums:~$ pmap -d 888
> 888: /bin/bash
> Address Kbytes Mode Offset Device Mapping
> 08048000 664 r-x-- 0000000000000000 008:00001 bash
> 080ee000 20 rw--- 00000000000a6000 008:00001 bash
> 080f3000 2572 rw--- 00000000080f3000 000:00000 [ anon ]
> b7c67000 28 r--s- 0000000000000000 008:00005 gconv-modules.cache
> b7c6e000 212 r--s- 0000000000000000 008:00006 passwd
> b7ca3000 1256 r---- 0000000000000000 008:00005 locale-archive
> b7ddd000 4 rw--- 00000000b7ddd000 000:00000 [ anon ]
> b7dde000 1312 r-x-- 0000000000000000 008:00001 libc-2.7.so
> b7f26000 4 r---- 0000000000148000 008:00001 libc-2.7.so
> b7f27000 8 rw--- 0000000000149000 008:00001 libc-2.7.so
> b7f29000 16 rw--- 00000000b7f29000 000:00000 [ anon ]
> b7f2d000 8 r-x-- 0000000000000000 008:00001 libdl-2.7.so
> b7f2f000 8 rw--- 0000000000001000 008:00001 libdl-2.7.so
> b7f31000 184 r-x-- 0000000000000000 008:00001 libncurses.so.5.6
> b7f5f000 12 rw--- 000000000002d000 008:00001 libncurses.so.5.6
> b7f77000 8 rw--- 00000000b7f77000 000:00000 [ anon ]
> b7f79000 104 r-x-- 0000000000000000 008:00001 ld-2.7.so
> b7f93000 8 rw--- 0000000000019000 008:00001 ld-2.7.so
> bfd11000 84 rw--- 00000000bffeb000 000:00000 [ stack ]
> ffffe000 4 r-x-- 0000000000000000 000:00000 [ anon ]
> mapped: 6516K writeable/private: 2740K shared: 240K
Which one is the data section?
--
Bernhard Graf
next prev parent reply other threads:[~2008-05-07 19:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-06 15:37 Bernhard Graf
2008-05-06 15:49 ` Ryan Woodrum
2008-05-07 19:04 ` Bernhard Graf [this message]
2008-05-08 5:53 ` Ryan Woodrum
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=200805072104.56067.list-supervision@augensalat.de \
--to=list-supervision@augensalat.de \
--cc=supervision@list.skarnet.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).