public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Hugh Dickins <hugh@veritas.com>
Cc: Linus Torvalds <torvalds@transmeta.com>,
	Andrea Arcangeli <andrea@suse.de>,
	Andrew Morton <akpm@zip.com.au>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 5/18] mark swapout pages PageWriteback()
Date: Wed, 5 Jun 2002 13:22:55 +0200	[thread overview]
Message-ID: <20020605112254.GA1567@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.33.0205311559330.13043-100000@penguin.transmeta.com> <Pine.LNX.4.21.0206010649080.1316-100000@localhost.localdomain>

Hi!

> > > In short the same way MAP_ANON must pageout correctly, also MAP_SHARED
> > > must swapout correctly with very vm intensive conditions.
> 
> I strongly agree with Andrea on that.  Swap fault without page lock
> was a step forward, reinstating it in the light of observed degradation
> in one workload was right decision for that particular tail of release,
> but it's a shame to have stayed that way.
> 
> > That is true, but it is ignoring the fact that there _are_ real technical 
> > differences between swap cache mappings and regular shared mappings.
> > 
> > One major difference is the approach to the last user: a last use of a 
> > shared mapping still needs to write out dirty state, while the last use of 
> > a swap page is better off noticing that it should just optimize away the 
> > write, and we can just turn the page back into a dirty anonymous page.
> 
> Poor example: isn't last use of swap page just like last use of
> shared mapping of an _unlinked_ file?

Eh? Suppose I have two different shared mappings of (unlinked:3). It
may be last use of swap page in first mapping, but what prevents me
from seeking and trying to read what I wrote?
									Pavel

-- 
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa

      reply	other threads:[~2002-06-05 20:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-26 20:40 [patch 5/18] mark swapout pages PageWriteback() Andrew Morton
2002-05-27  0:57 ` Linus Torvalds
2002-05-27  2:19   ` Andrew Morton
2002-05-27  3:38     ` Linus Torvalds
2002-05-31 20:58       ` Andrea Arcangeli
2002-05-31 23:02         ` Linus Torvalds
2002-06-01  6:17           ` Hugh Dickins
2002-06-05 11:22             ` Pavel Machek [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=20020605112254.GA1567@elf.ucw.cz \
    --to=pavel@suse.cz \
    --cc=akpm@zip.com.au \
    --cc=andrea@suse.de \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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