Thread (3 messages) 3 messages, 3 authors, 2002-02-06

Re: .Help with measuring working-set

From: Andi Kleen <hidden>
Date: 2002-02-06 09:03:44

On Mon, Feb 04, 2002 at 06:21:00PM -0800, Suresh Duddi wrote:
hi, I am developer of Mozilla (open source web browser from mozilla.org) 
We are trying to make footprint improvements to the browser and have 
settled on minimizing working set and max-vm-usage as our goals.

http://www.mozilla.org/projects/footprint/footprint-guide.html

One thing we are struggling with is measurement of working set of app 
during a time interval.
The only metric the kernel supports for the working set currently is a 
single RSS integer telling you have many pages are currently mapped into
a process. There may be more pages from your process unmapped in RAM, 
but being unmapped is usually the first step to swap the page out or 
throw it away. 
Any pointers ? Are the metrics the best ones to measure and optimize ?
I guess you would prefer to know which pages are mapped at a given
point. This would require some custom patching to add a trace facility
for that. Shouldn't be that hard to implement, but I don't know of a 
ready patch.

-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help