linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Manomugdha Biswas <MBiswas@ixiacom.com>
To: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: /proc/pid/maps
Date: Tue, 3 Sep 2013 12:19:16 +0000	[thread overview]
Message-ID: <8F59616961A3BD458BB4F59E7102BA0467BEE307@CH1PRD0611MB444.namprd06.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5391 bytes --]

Hi,
I am running an application and observing a memory leak. I took two snapshots of "maps". One is before starting the action which is causing memory leak and another is after memory leak.

Following are the snapshots:

Before:
=======
# cat /proc/481/maps
0fba9000-0fcdf000 r-xp 00000000 00:0a 371        /lib/libc-2.3.3.so
0fcdf000-0fce9000 ---p 00136000 00:0a 371        /lib/libc-2.3.3.so
0fce9000-0fcf3000 rwxp 00130000 00:0a 371        /lib/libc-2.3.3.so
0fcf3000-0fcf6000 rwxp 0fcf3000 00:00 0
0fd06000-0fd19000 r-xp 00000000 00:0a 466        /lib/libgcc_s.so.1
0fd19000-0fd26000 ---p 00013000 00:0a 466        /lib/libgcc_s.so.1
0fd26000-0fd2a000 rwxp 00010000 00:0a 466        /lib/libgcc_s.so.1
0fd3a000-0fdad000 r-xp 00000000 00:0a 455        /lib/libm-2.3.3.so
0fdad000-0fdba000 ---p 00073000 00:0a 455        /lib/libm-2.3.3.so
0fdba000-0fdc0000 rwxp 00070000 00:0a 455        /lib/libm-2.3.3.so
0fdd0000-0fec6000 r-xp 00000000 00:0a 459        /lib/libstdc++.so.6.0.9
0fec6000-0fed0000 ---p 000f6000 00:0a 459        /lib/libstdc++.so.6.0.9
0fed0000-0fedb000 rwxp 000f0000 00:0a 459        /lib/libstdc++.so.6.0.9
0fedb000-0fee2000 rwxp 0fedb000 00:00 0
0fef2000-0fefe000 r-xp 00000000 00:0a 514        /usr/lib/libixml.so
0fefe000-0ff02000 ---p 0000c000 00:0a 514        /usr/lib/libixml.so
0ff02000-0ff0e000 rwxp 00000000 00:0a 514        /usr/lib/libixml.so
0ff0e000-0ff0f000 rwxp 0ff0e000 00:00 0
0ff1f000-0ff2d000 r-xp 00000000 00:0a 361        /lib/libpthread-0.10.so
0ff2d000-0ff2f000 ---p 0000e000 00:0a 361        /lib/libpthread-0.10.so
0ff2f000-0ff3e000 rwxp 00000000 00:0a 361        /lib/libpthread-0.10.so
0ff3e000-0ff80000 rwxp 0ff3e000 00:00 0
0ff90000-0ff95000 r-xp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so
0ff95000-0ffa0000 ---p 00005000 00:0a 368        /lib/libcrypt-2.3.3.so
0ffa0000-0ffa5000 rwxp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so
0ffa5000-0ffcc000 rwxp 0ffa5000 00:00 0
0ffdc000-0ffe0000 r-xp 00000000 00:0a 510        /usr/lib/liberrhand.so
0ffe0000-0ffec000 ---p 00004000 00:0a 510        /usr/lib/liberrhand.so
0ffec000-0fff0000 rwxp 00000000 00:0a 510        /usr/lib/liberrhand.so
10000000-101b2000 r-xp 00000000 00:0a 1685       /opt/bgpd/bin/bgpd
101c2000-101d1000 rwxp 001b2000 00:0a 1685       /opt/bgpd/bin/bgpd
101d1000-157cc000 rwxp 101d1000 00:00 0
30000000-30016000 r-xp 00000000 00:0a 357        /lib/ld-2.3.3.so
30016000-30019000 rw-p 30016000 00:00 0
30019000-30022000 rw-s 00000000 00:06 0          /SYSV024f823f (deleted)
30022000-30023000 rw-s 00000000 00:06 163845     /SYSV0001ed23 (deleted)
30026000-30027000 rwxp 00016000 00:0a 357        /lib/ld-2.3.3.so
7feff000-80000000 rwxp 7feff000 00:00 0

After:
=====
# cat /proc/481/maps
0fba9000-0fcdf000 r-xp 00000000 00:0a 371        /lib/libc-2.3.3.so
0fcdf000-0fce9000 ---p 00136000 00:0a 371        /lib/libc-2.3.3.so
0fce9000-0fcf3000 rwxp 00130000 00:0a 371        /lib/libc-2.3.3.so
0fcf3000-0fcf6000 rwxp 0fcf3000 00:00 0
0fd06000-0fd19000 r-xp 00000000 00:0a 466        /lib/libgcc_s.so.1
0fd19000-0fd26000 ---p 00013000 00:0a 466        /lib/libgcc_s.so.1
0fd26000-0fd2a000 rwxp 00010000 00:0a 466        /lib/libgcc_s.so.1
0fd3a000-0fdad000 r-xp 00000000 00:0a 455        /lib/libm-2.3.3.so
0fdad000-0fdba000 ---p 00073000 00:0a 455        /lib/libm-2.3.3.so
0fdba000-0fdc0000 rwxp 00070000 00:0a 455        /lib/libm-2.3.3.so
0fdd0000-0fec6000 r-xp 00000000 00:0a 459        /lib/libstdc++.so.6.0.9
0fec6000-0fed0000 ---p 000f6000 00:0a 459        /lib/libstdc++.so.6.0.9
0fed0000-0fedb000 rwxp 000f0000 00:0a 459        /lib/libstdc++.so.6.0.9
0fedb000-0fee2000 rwxp 0fedb000 00:00 0
0fef2000-0fefe000 r-xp 00000000 00:0a 514        /usr/lib/libixml.so
0fefe000-0ff02000 ---p 0000c000 00:0a 514        /usr/lib/libixml.so
0ff02000-0ff0e000 rwxp 00000000 00:0a 514        /usr/lib/libixml.so
0ff0e000-0ff0f000 rwxp 0ff0e000 00:00 0
0ff1f000-0ff2d000 r-xp 00000000 00:0a 361        /lib/libpthread-0.10.so
0ff2d000-0ff2f000 ---p 0000e000 00:0a 361        /lib/libpthread-0.10.so
0ff2f000-0ff3e000 rwxp 00000000 00:0a 361        /lib/libpthread-0.10.so
0ff3e000-0ff80000 rwxp 0ff3e000 00:00 0
0ff90000-0ff95000 r-xp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so
0ff95000-0ffa0000 ---p 00005000 00:0a 368        /lib/libcrypt-2.3.3.so
0ffa0000-0ffa5000 rwxp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so
0ffa5000-0ffcc000 rwxp 0ffa5000 00:00 0
0ffdc000-0ffe0000 r-xp 00000000 00:0a 510        /usr/lib/liberrhand.so
0ffe0000-0ffec000 ---p 00004000 00:0a 510        /usr/lib/liberrhand.so
0ffec000-0fff0000 rwxp 00000000 00:0a 510        /usr/lib/liberrhand.so
10000000-101b2000 r-xp 00000000 00:0a 1685       /opt/bgpd/bin/bgpd
101c2000-101d1000 rwxp 001b2000 00:0a 1685       /opt/bgpd/bin/bgpd
101d1000-17a25000 rwxp 101d1000 00:00 0
30000000-30016000 r-xp 00000000 00:0a 357        /lib/ld-2.3.3.so
30016000-30019000 rw-p 30016000 00:00 0
30019000-30022000 rw-s 00000000 00:06 0          /SYSV024f823f (deleted)
30022000-30023000 rw-s 00000000 00:06 163845     /SYSV0001ed23 (deleted)
30026000-30027000 rwxp 00016000 00:0a 357        /lib/ld-2.3.3.so
7feff000-80000000 rwxp 7feff000 00:00 0

My applications name is "/opt/bgpd/bin/bgpd".

It is seen that the red marked section is consuming the memory. Who is consuming this memory?

Regards,
Mano

[-- Attachment #2: Type: text/html, Size: 12707 bytes --]

             reply	other threads:[~2013-09-03 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 12:19 Manomugdha Biswas [this message]
2013-09-04  4:03 /proc/pid/maps Manomugdha Biswas

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=8F59616961A3BD458BB4F59E7102BA0467BEE307@CH1PRD0611MB444.namprd06.prod.outlook.com \
    --to=mbiswas@ixiacom.com \
    --cc=linux-mm@kvack.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