public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* smap output - unnamed entries and heap
@ 2011-03-15  9:01 Aneesh Bhasin
  2011-03-15 16:14 ` Randy Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Aneesh Bhasin @ 2011-03-15  9:01 UTC (permalink / raw)
  To: linux-newbie, linux-kernel

Hi All,

My apologies if this is not the right place for these type of
questions - I do not know of a better place to ask this.

I am trying to take out some memory figures from the /proc/<pid>/smaps
interface (linux v2.6.35). However, I could not find what do the
entries that have no name associated to them (no library path or
binary path with these entries) mean. So, I wrote a test C program
that allocates 100MB of memory (using malloc) and then writes to it in
chunks of 10MB. I could see that the 'Size' and 'RSS' of one of the
unnamed entries was increasing in accordance with the code, but there
were several other such unnamed sections too - is there a way to know
what and where do they come from.

Also, I could see that for some process the smap interface was showing
a '[heap]' entry but not for all - e.g. for my above test case, there
was no '[heap]' entry, although I assumed the malloc should have
reflected in the [heap]. Can someone please tell me (or point me in
the right direction) why is heap entry there only for some processes ?

Thanks in advance for any help..

Regards,
Aneesh Bhasin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-17 22:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15  9:01 smap output - unnamed entries and heap Aneesh Bhasin
2011-03-15 16:14 ` Randy Dunlap
2011-03-16  5:19   ` Aneesh Bhasin
2011-03-16 14:09     ` Pádraig Brady
2011-03-17 11:46       ` Aneesh Bhasin
2011-03-17 22:22         ` Jérôme Pouiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox