LWN.net Logo

Optimizing Linux with cheap flash drives

Optimizing Linux with cheap flash drives

Posted Feb 25, 2011 21:39 UTC (Fri) by oak (subscriber, #2786)
In reply to: Optimizing Linux with cheap flash drives by cladisch
Parent article: Optimizing Linux with cheap flash drives

> The biggest problem are shared libraries; the kernel knows who uses them, but it's not clear how their memory should be counted. (Which process gets charged for that memory?

Look at the PSS figures in /proc/PID/smaps file.

Nice tool for that could be e.g. smem: http://www.selenic.com/smem/

(You can just apt-get it and then do "smem --pie=name".)

> And when it exits, does the memory usage of the other processes suddenly increase?)

If you're looking at PSS figures, yes.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds