|
Our measurement problemOur measurement problemPosted Aug 4, 2005 14:59 UTC (Thu) by Yorick (subscriber, #19241)In reply to: Our measurement problem by MathFox Parent article: Our bloat problem
It is not possible from /proc/$pid/maps to find out how many pages of a mapped file have been
It is also not possible to find the set of actually shared pages from a mapped file - just because
We definitely need better memory usage metrics from the kernel, or bloat like this will be difficult
(Log in to post comments)
Our measurement problem Posted Aug 6, 2005 14:00 UTC (Sat) by sandmann (subscriber, #473) [Link] The kernel actually has a system call - mincore - that tells you which pages of a mapped file are in memory. I wrote a small program a long time ago that uses it to print more details about memory usage:
http://www.daimi.au.dk/~sandmann/freon.c
You have to be root to run it.
Unfortunately a similar thing can't be done for malloc()d memory because mincore doesn't work for anonymous pages.
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.