public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Rohland <cr@sap.com>
To: Rik van Riel <riel@conectiva.com.br>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: shm swapping in 2.4 again
Date: 16 Nov 2000 20:17:02 +0100	[thread overview]
Message-ID: <qwwwve3ybf5.fsf@sap.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0011160959340.13085-100000@duckman.distro.conectiva>
In-Reply-To: Rik van Riel's message of "Thu, 16 Nov 2000 10:01:11 -0200 (BRDT)"

Hi Rik,

On Thu, 16 Nov 2000, Rik van Riel wrote:
> On 16 Nov 2000, Christoph Rohland wrote:
>> So in shm_swap_out I check if the page is already in the swap
>> cache. If not I put the page into it and note the swap entry in
>> the shadow pte of shm. Right?
> 
> Exactly. And I'll change page_launder() to:
> 1. write dirty swap cache pages to disk
> 2. do some IO clustering (maybe) or rely on luck ;)
> 
>> So does the page live all the time in the swap cache? This would
>> lead to a vastly increased swap usage since we would have to
>> preallocate the swap entries on page allocation.
> 
> If the usage count of the swap entry is 1 (all users of the
> page have swapped it in and the swap cache is the only user),
> then we can free the page from swap and the swap cache.

Great. So what do we have to do to get this done? The shm stuff sounds
pretty easy.

Greetings
		Christoph

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-11-16 19:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-15  9:19 shm swapping in 2.4 again Christoph Rohland
2000-11-15  9:21 ` Christoph Rohland
2000-11-15 15:19 ` Rik van Riel
2000-11-15 20:52   ` Christoph Rohland
2000-11-15 21:04     ` Rik van Riel
2000-11-16  8:17       ` Christoph Rohland
2000-11-16 12:01         ` Rik van Riel
2000-11-16 19:17           ` Christoph Rohland [this message]
2000-11-16 21:31             ` Christoph Rohland
2000-11-16 21:30               ` Rik van Riel
2000-11-17  8:08                 ` Christoph Rohland

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=qwwwve3ybf5.fsf@sap.com \
    --to=cr@sap.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riel@conectiva.com.br \
    /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