mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: try_to_swap_out() deactivating pages w. count > 2
Date: 21 Apr 2001 10:42:57 -0700	[thread overview]
Message-ID: <9bsgr1$hcd$1@penguin.transmeta.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0104211741020.346-100000@mikeg.weiden.de> <Pine.LNX.4.21.0104211336390.1685-100000@imladris.rielhome.conectiva>

In article <Pine.LNX.4.21.0104211336390.1685-100000@imladris.rielhome.conectiva>,
Rik van Riel  <riel@conectiva.com.br> wrote:
>
>What I _am_ worried about is the fact that we do this to pages with
>a really high page age. These things are in active use and cannot
>be swapped out any time soon, yet we do claim swap space for it ...

Ehh... And if we didn't do that, then how could they every become less
active?

We should _absolutely_ do the swap space reclaiming without looking at
the page count. If we don't, you will never free those pages, and I have
a trivial exploit for you that will basically mlock all pages in memory.

try_to_swap_out() _absolutely_ does the right thing.  Also note how it
will need to allocate the swap space backing store only once. 

		Linus

  reply	other threads:[~2001-04-21 17:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-21 15:48 Mike Galbraith
2001-04-21 16:08 ` Mike Galbraith
2001-04-21 16:42 ` Rik van Riel
2001-04-21 17:42   ` Linus Torvalds [this message]
2001-04-21 17:48   ` Mike Galbraith
     [not found] <200104211742.KAA17813@penguin.transmeta.com>
2001-04-21 17:51 ` Rik van Riel
2001-04-21 17:55   ` Rik van Riel
2001-04-21 18:03   ` Linus Torvalds

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='9bsgr1$hcd$1@penguin.transmeta.com' \
    --to=torvalds@transmeta.com \
    --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

all inboxes | Powered by JetHome®