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 09:17:03 +0100 [thread overview]
Message-ID: <qww1ywcz5z4.fsf@sap.com> (raw)
In-Reply-To: <Pine.LNX.4.21.0011151854150.1111-100000@duckman.distro.conectiva>
In-Reply-To: Rik van Riel's message of "Wed, 15 Nov 2000 19:04:13 -0200 (BRDT)"
Hi Rik,
On Wed, 15 Nov 2000, Rik van Riel wrote:
> On 15 Nov 2000, Christoph Rohland wrote:
> You really want to have it in the swap cache, so we have
> a place for it allocated in cache, etc...
>
> Basically, when we unmap it in try_to_swap_out(), we
> should add the page to the swap cache, and when the
> last user stops using the page, we should push the
> page out to swap.
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?
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.
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/
next prev parent reply other threads:[~2000-11-16 8: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 [this message]
2000-11-16 12:01 ` Rik van Riel
2000-11-16 19:17 ` Christoph Rohland
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=qww1ywcz5z4.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