public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Moussa A. Ba" <moussa.a.ba@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, adobriyan@gmail.com, mpm@selenic.com,
	mel@csn.ul.ie, yinghan@google.com, npiggin@suse.de,
	jaredeh@gmail.com, moussa.a.ba@gmail.com
Subject: [PATCH 0/1] pagemap clear_refs: modify to specify anon or mapped vma clearing
Date: Thu, 23 Jul 2009 20:56:37 -0700	[thread overview]
Message-ID: <4A6930F5.3090008@gmail.com> (raw)

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.

             reply	other threads:[~2009-07-24  4:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24  3:56 Moussa A. Ba [this message]
2009-07-24  4:30 ` [PATCH 0/1] pagemap clear_refs: modify to specify anon or mapped vma clearing Matt Mackall
2009-07-24  5:46   ` Moussa A. Ba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A6930F5.3090008@gmail.com \
    --to=moussa.a.ba@gmail.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jaredeh@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mel@csn.ul.ie \
    --cc=mpm@selenic.com \
    --cc=npiggin@suse.de \
    --cc=yinghan@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox