public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] pagemap clear_refs: modify to specify anon or mapped vma clearing
@ 2009-07-24  3:56 Moussa A. Ba
  2009-07-24  4:30 ` Matt Mackall
  0 siblings, 1 reply; 3+ messages in thread
From: Moussa A. Ba @ 2009-07-24  3:56 UTC (permalink / raw)
  To: linux-kernel
  Cc: akpm, adobriyan, mpm, mel, yinghan, npiggin, jaredeh, moussa.a.ba

This patch makes the clear_refs proc interface a bit more versatile. It 
adds support for clearing either anonymous, file mapped pages or both.

echo 1 > /proc/pid/clear_refs clears ANON pages
echo 2 > /proc/pid/clear_refs clears file mapped pages
echo 3 > /proc/pid/clear_refs clears all pages

Selectively clearing pages has a measurable impact on performance as it 
decreases the number of page walks.  We have been using this interface 
and this adds flexibility to the user space application implementing the 
reference clearing.

Moussa.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-24  5:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24  3:56 [PATCH 0/1] pagemap clear_refs: modify to specify anon or mapped vma clearing Moussa A. Ba
2009-07-24  4:30 ` Matt Mackall
2009-07-24  5:46   ` Moussa A. Ba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox