public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <andrea@suse.de>
To: Dave McCracken <dmccr@us.ibm.com>
Cc: "Martin J. Bligh" <mbligh@aracnet.com>, linux-kernel@vger.kernel.org
Subject: Re: 230-objrmap fixes for 2.6.3-mjb2
Date: Wed, 3 Mar 2004 19:51:22 +0100	[thread overview]
Message-ID: <20040303185122.GV4922@dualathlon.random> (raw)
In-Reply-To: <14140000.1078339447@[10.1.1.4]>

On Wed, Mar 03, 2004 at 12:44:07PM -0600, Dave McCracken wrote:
> 
> --On Wednesday, March 03, 2004 19:39:01 +0100 Andrea Arcangeli
> <andrea@suse.de> wrote:
> 
> >> What we've actually discussed before was more along the lines of
> >> PG_locked to match VM_LOCKED, but the main idea was to be able to skip
> >> over ineligible pages without having ot look up their mappings during
> >> pageout.
> > 
> > I'm not very excited using PG_locked for that, that doesn't only mean
> > "unswappable", it means also that the page is under I/O (or uner some
> > other operation that needs serialization like unmapping the page) which
> > is quite a different concept from VM_LOCKED. a wait_on_page would
> > deadlock on such a PG_locked page, while wait_on_page on a page of a
> > mlocked vma doesn't normally deadlock.
> > 
> > But I see what you want to do here, and PG_reserved would be too much
> > for that since it changes the semantics for cow and free_pages, but
> > PG_locked doesn't look good enough either, the VM_LOCKED and PG_locked
> > concept is quite different, PG_reserved and VM_RESERVED is quite close
> > instead (except for the page->count accounting).
> 
> Sorry, I misspoke.  I didn't mean the current PG_locked.  I meant a new
> flag, or more probably a counter, that represents all the VM_LOCKED regions
> a page is in.

ok, you used PG_locked that already exists for another purpose so it was
not clear, another bitflag would be ok.

the main remaining issue to solve (and run at runtime) is the logic is
to keep this flag consistent with all vmas pointing to the page having
VM_LOCKED set. I'm not sure if it's worth it.

what we do in 2.4 and that works pretty well, that is simply to refile
pages into the active list if they're mlocked, so we don't waste too
much cpu on them since we don't analyze them too often. this should work
pretty well for everybody, or peraphs google may prefer to have a fully
consistent PG_mlocked.

  reply	other threads:[~2004-03-03 18:50 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03  7:09 230-objrmap fixes for 2.6.3-mjb2 Andrea Arcangeli
2004-03-03 10:58 ` Andrew Morton
2004-03-03 15:46   ` Martin J. Bligh
2004-03-03 15:58     ` Dave McCracken
2004-03-03 16:08       ` Christoph Hellwig
2004-03-03 19:04         ` Mike Kravetz
2004-03-04 15:41         ` Rik van Riel
2004-03-04 15:47           ` Christoph Hellwig
2004-03-04 16:21             ` Rik van Riel
2004-03-04 17:03           ` Matt Mackall
2004-03-03 16:57     ` Andrea Arcangeli
2004-03-03 17:07       ` Dave McCracken
2004-03-03 18:39         ` Andrea Arcangeli
2004-03-03 18:44           ` Dave McCracken
2004-03-03 18:51             ` Andrea Arcangeli [this message]
2004-03-03 19:01               ` Dave McCracken
2004-03-03 21:05                 ` Andrea Arcangeli
2004-03-03 21:39               ` Martin J. Bligh
2004-03-03 23:16                 ` Andrea Arcangeli
2004-03-03 17:06   ` Andrea Arcangeli
2004-03-03 15:54 ` Martin J. Bligh
2004-03-03 16:14   ` Andrea Arcangeli
2004-03-25 21:45 ` Andrea Arcangeli
2004-03-26 11:57   ` Hugh Dickins
2004-03-26 18:02     ` Andrea Arcangeli
2004-03-26 23:25       ` Andrew Morton
2004-03-27 14:24         ` Andrea Arcangeli
2004-03-27 15:29         ` Dave McCracken

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=20040303185122.GV4922@dualathlon.random \
    --to=andrea@suse.de \
    --cc=dmccr@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.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