Status: New
Owner: ----
New issue 182 by petef4: pprof results are low compared with top
http://code.google.com/p/google-perftools/issues/detail?id=182
What steps will reproduce the problem?
1. Profile a program (with HEAP_PROFILE_MMAP=true)
2. Compare results with /usr/bin/top
3.
What is the expected output? What do you see instead?
The inuse space reported using pprof is about half of that in the DATA
reported by top.
What version of the product are you using? On what operating system?
1.3 and 1.4.
2.6.24-etchnhalf.1-amd64 #1 SMP Sat Aug 15 20:38:41 UTC 2009 x86_64 GNU/
Linux
export CFLAGS="-m32 -g"
export CXXFLAGS="-m32 -g"
configure --enable-static --enable-frame-pointers --host=i686
Please provide any additional information below.
Top was configured to show extra columns for SWAP, CODE and DATA. Added
columns with f p r s <enter> and then W to write to .toprc.
Some disparity is expected.
1. TCmalloc does not report usage by stack, initialized data and BSS.
2. TCMalloc has overheads of a few MB
3. TCMalloc reports bytes allocated, top will see these rounded up to
pages
4. TCMalloc does not return freed memory
I'm requesting an enhancement. Add counters for low level calls from
TCMalloc to sbrk, mmap, etc. which can then be reported along with the
program totals. These new counter results should tally better with top
and provide more confidence that TCMalloc is logging all program usage.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings