From: Daniel Phillips <phillips@arcor.de>
To: Andrew Morton <akpm@zip.com.au>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 1/13] misc fixes
Date: Tue, 30 Jul 2002 12:18:33 +0200 [thread overview]
Message-ID: <E17ZU5J-0001li-00@starship> (raw)
In-Reply-To: <3D459ECE.C5BD53DE@zip.com.au>
On Monday 29 July 2002 22:00, Andrew Morton wrote:
> > For this to work, anon pages will need to have something in page->index.
> > This isn't too much of a challenge. A reasonable value to put in there is
> > the creator's virtual address, shifted right, and perhaps mangled a little to
> > reduce contention.
>
> Well you want the likely-to-be-temporally-adjacent anon pages to
> use the same lock. So maybe
>
> page->index = some_global_int++;
Actually, thinking again... the nice thing about this scheme is the
opportunity to take the lock once for a whole batch of add_rmaps while
walking through a page table, and the same for remove_rmap. So it
definitely wants to be based on the virtual address.
--
Daniel
prev parent reply other threads:[~2002-07-30 10:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-28 7:32 [patch 1/13] misc fixes Andrew Morton
2002-07-29 7:26 ` Daniel Phillips
2002-07-29 8:44 ` Rik van Riel
2002-07-29 8:40 ` David S. Miller
2002-07-29 20:00 ` Andrew Morton
2002-07-29 20:55 ` Rik van Riel
2002-07-29 22:36 ` Daniel Phillips
2002-07-29 21:51 ` Daniel Phillips
2002-07-31 22:22 ` Rmap setup/teardown suckage Daniel Phillips
2002-07-30 10:11 ` [patch 1/13] misc fixes Daniel Phillips
2002-07-30 10:18 ` Daniel Phillips [this message]
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=E17ZU5J-0001li-00@starship \
--to=phillips@arcor.de \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
/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