From: Russell King <rmk@arm.linux.org.uk>
To: Rik van Riel <riel@redhat.com>
Cc: linux-mm@kvack.org, Arjan Van de Ven <arjanv@redhat.com>
Subject: Re: [PATCH] speed up fork performance
Date: Fri, 27 Aug 2004 15:30:07 +0100 [thread overview]
Message-ID: <20040827153007.A11943@flint.arm.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0408271006340.10272-100000@chimarrao.boston.redhat.com>; from riel@redhat.com on Fri, Aug 27, 2004 at 10:09:38AM -0400
On Fri, Aug 27, 2004 at 10:09:38AM -0400, Rik van Riel wrote:
>
> OK, this patch is _completely_ untested, but since I'm about to run
> off to a conference I guess I should get it to you anyway.
>
> Basically in 2.6 lru_cache_add_active() takes an extra reference to
> the page, but do_wp_page() and friends don't expect a private anonymous
> page to have 2 references instead of 1. This little patchlet changes
> can_share_swap_page() and exclusive_swap_page() to expect the extra
> reference.
>
> Note that we cannot test for PageLRU(page) since lru_cache_add_active()
> uses a delayed insertion onto the LRU, so the PG_lru might not get set
> for a while...
>
> Use at your own risk.
As I've just mentioned to Rik, this is probably buggy - pages which are
in the page cache and are then faulted into userspace seem to have a
page count of 2 even though they're part of a private mapping. We don't
particularly want to allow these to be written to...
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2004-08-27 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-27 14:09 Rik van Riel
2004-08-27 14:30 ` Russell King [this message]
2004-08-27 14:40 ` Mika Penttilä
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=20040827153007.A11943@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=arjanv@redhat.com \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.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