On Sunday, 7 de August de 2011 15:06:57 Sven Burmeister wrote: > So what tool/data is accepted to prove that a process does actually consume > y MB of memory? What about /proc/<PID>/smaps? > > I found a script that summarises the data to something like this: > > perl smem.pl 2400 > > VMSIZE: 746104 kb > RSS: 421044 kb total > 5044 kb shared > 4 kb private clean > 415996 kb private dirty
I was improving my own script a few nights ago. Testing on the same application as you tested: $ rssanalyse.pl `pidof akonadi_mixedmaildir_resource` Total mapped memory: 78208 kB of which swapped out: 2440 kB of which likely stack: 136 kB mapped, 28 kB resident (28 kB main, 0 kB aux threads) of which are resident: 19432 kB, 6806 kB proportionally shared total anonymous: 6384 kB (32.9%) Shared: 13044 kB total (67.1% of RSS) Breakdown: 13044 kB clean (100.0%), 0 kB dirty (0.0%) 12732 kB code (97.6%), 292 kB RO data (2.2%), 20 kB RW data (0.2%) 0 kB heap (0.0%), 0 kB stack (0.0%), 0 kB other (0.0%) Private: 6388 kB total (32.9% of RSS) Breakdown: 4 kB clean (0.1%), 6384 kB dirty (99.9%) 4 kB code (0.1%), 160 kB RO data (2.5%), 256 kB RW data (4.0%) 5940 kB heap (93.0%), 28 kB stack (0.4%), 0 kB other (0.0%) (sorry, it requires more than 76 columns) Script attached. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
rssanalyse.pl
Description: Perl program
signature.asc
Description: This is a digitally signed message part.
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<