Our bloat problem
Posted Aug 7, 2005 20:56 UTC (Sun) by
oak (guest, #2786)
In reply to:
Our bloat problem by hp
Parent article:
Our bloat problem
I don't know how to get very useful numbers out of top myself -
what one
would want for a bloat metric is "malloc'd RAM unique to this process" or
something,
Malloc => heap. If the program has written to the allocated heap page,
it's private. I don't see why program would allocate memory without
writing to it, so in practice all of heap can be considered private to the
process.
You can already see heap usage from /proc and with Valgrind you can
actually get a graph where it goes.
perhaps "plus the size of each in-use shared page divided by number
of apps currently sharing it,"
During his Guadec 2005 speech, Robert Love mentioned a kernel patch
which will produce the information about how much memory is private (dirty
= allocated heap that has been written to, shared library relocation
tables etc.) to a process. He promised to add a link to it on to the
Gnome memory reduction page.
perhaps "plus resources allocated on the X server side on behalf of
this app."
XresTop tells this. Some programs can push amazing amounts of memory
to the Xserver (the huge number number shown in 'top' for Xserver comes
from memory mapping the framebuffer though I think).
(
Log in to post comments)