From: Andrea Arcangeli <andrea@suse.de>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: Rik van Riel <riel@nl.linux.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
ak@muc.de, ebiederm+eric@ccr.net, linux-kernel@vger.rutgers.edu,
linux-mm@kvack.org
Subject: Re: Q: PAGE_CACHE_SIZE?
Date: Mon, 31 May 1999 01:12:43 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.05.9905310111460.7712-100000@laser.random> (raw)
In-Reply-To: <14159.18916.728327.550606@dukat.scot.redhat.com>
On Sat, 29 May 1999, Stephen C. Tweedie wrote:
>It should be cheap, yes, but it will require a fundamental change in the
>VM: currently, all swap cache is readonly. No exceptions. To keep the
>allocation persistent, even over write()s to otherwise unshared pages
>(and we need to do to sustain good performance), we need to allow dirty
>pages in the swap cache. The current PG_Dirty work impacts on this.
I am just rewriting swapped-in pages to their previous location on swap to
avoid swap fragmentation. No need to have dirty pages into the swap cache
to handle that. We just have the information cached in the
page-map->offset field. We only need to know when it make sense to know if
we should use it or not. To handle that I simply added a PG_swap_entry
bitflag set at swapin time and cleared after swapout to the old entry or
at free_page_and_swap_cache() time. The thing runs like a charm (the
swapin performances definitely improves a lot).
ftp://e-mind.com/pub/andrea/kernel/2.3.3_andrea9.bz2
Andrea Arcangeli
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next prev parent reply other threads:[~1999-05-30 23:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-18 14:03 Eric W. Biederman
1999-05-18 15:04 ` Andi Kleen
1999-05-19 23:29 ` Chris Wedgwood
1999-05-20 17:12 ` Andrea Arcangeli
1999-05-25 16:29 ` Alan Cox
1999-05-25 20:16 ` Rik van Riel
1999-05-25 22:17 ` Matti Aarnio
1999-05-27 22:06 ` Alan Cox
1999-05-28 20:46 ` Stephen C. Tweedie
1999-05-28 21:33 ` Rik van Riel
1999-05-29 1:59 ` Stephen C. Tweedie
1999-05-30 23:12 ` Andrea Arcangeli [this message]
1999-06-01 0:01 ` Stephen C. Tweedie
1999-06-01 14:23 ` Andrea Arcangeli
1999-05-29 15:07 ` Ralf Baechle
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=Pine.LNX.4.05.9905310111460.7712-100000@laser.random \
--to=andrea@suse.de \
--cc=ak@muc.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=ebiederm+eric@ccr.net \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.org \
--cc=riel@nl.linux.org \
--cc=sct@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