Re: Extreme memory usage for gnome-panel related apps
- From: Mark <markg85 gmail com>
- To: "Ross Burton" <ross burtonini com>
- Cc: GNOME Desktop Devel List <desktop-devel-list gnome org>
- Subject: Re: Extreme memory usage for gnome-panel related apps
- Date: Fri, 30 Nov 2007 10:51:52 +0100
2007/11/30, Ross Burton <ross burtonini com>:
> On Fri, 2007-11-30 at 10:29 +0100, Mark wrote:
> > Oke the first valgrind results of nm-applet. it has leaks.
> >
> > ==5832== ERROR SUMMARY: 10 errors from 2 contexts (suppressed: 123 from 2)
> > ==5832== malloc/free: in use at exit: 517,672 bytes in 7,809 blocks.
> > ==5832== malloc/free: 27,957 allocs, 20,148 frees, 7,621,756 bytes allocated.
> > ==5832== For counts of detected errors, rerun with: -v
> > ==5832== searching for pointers to 7,809 not-freed blocks.
> > ==5832== checked 1,407,576 bytes.
> > ==5832==
> > ==5832== LEAK SUMMARY:
> > ==5832== definitely lost: 2,770 bytes in 56 blocks.
> > ==5832== possibly lost: 92,192 bytes in 125 blocks.
> > ==5832== still reachable: 422,710 bytes in 7,628 blocks.
> > ==5832== suppressed: 0 bytes in 0 blocks.
>
> It's only leaked 2000 bytes, you'll need to do more research on the
> 422000 bytes which are still reachable.
how do i do that? (gonna read the "MemoryReduction" docs soon)
>
> > But how do i do the "massif skin" and at mmaped files..
>
> $ valgrind --tool=massif
>
> > what is in the
> > actual memory usage? you have:
> > VM Size
> > Private Clean
> > Private Dirty
> > Shared Clean
> > Shared Dirty
>
> "Actual" memory usage doesn't exist. The "Memory" column tries to
> represent the cost, by counting private memory and its share of the
> shared memory.
>
> > And how do i see which files are open?
>
> ls /proc/[pid]/fd/
>
> http://live.gnome.org/MemoryReduction is full of useful information,
> tips, and identified problems.
>
> Ross
Nice docs!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]