From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: jlnance@intrex.net
Cc: ebiederm@xmission.com (Eric W. Biederman), linux-kernel@vger.kernel.org
Subject: Re: RFC: Remove swap file support
Date: Sat, 14 Jul 2001 17:12:24 +0100 (BST) [thread overview]
Message-ID: <E15LS1o-0001OU-00@the-village.bc.nu> (raw)
In-Reply-To: <20010714104447.A1327@bessie.localdomain> from "jlnance@intrex.net" at Jul 14, 2001 10:44:47 AM
> The case of swap files with holes would be a nice thing to have.
> It would effectivly give us a way to say "use the extra space on this
> file system for swap" and at the same time the ability to set a limit
> on how much space could be taken up by swap. For example you could
> create a totally sparse 1G file at bootup, and use it as a swap file.
> If the system needed swap it could grow the file, but you would know
> that it would never grow beyond 1G.
Growing a swap file gets complex and complex where complexity is bad and
resources are constrained due to memory pressure.
We do need to sort this out for 2.5, for one the way that swap is 'different'
to the rest of the backing store is ugly in itself and causes a lot of
duplication and overcomplex code.
Really there should be no pages going to some anonymous magic 'swap' object.
Instead each virtual memory area should be backed by a file system object,
including a 'swapfs' - which might be the existing style of swap, might be
something stacked onto an existing fs that allocates and manages free space
or might be completely bizarre (eg a high speed SAN network swap protocol)
next prev parent reply other threads:[~2001-07-14 16:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-07 15:34 Jeff Garzik
2001-07-07 17:15 ` arjan
2001-07-12 7:27 ` Fabbione
2001-07-12 13:54 ` Jeff Garzik
2001-07-17 5:36 ` Val Henson
2001-07-14 6:07 ` Eric W. Biederman
2001-07-14 14:44 ` jlnance
2001-07-14 16:12 ` Alan Cox [this message]
2001-07-14 17:28 ` Eric W. Biederman
2001-07-14 15:25 ` Chris Wedgwood
2001-07-14 17:35 ` Eric W. Biederman
2001-07-15 3:42 ` Chris Wedgwood
2001-07-17 11:59 ` Chris Wedgwood
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=E15LS1o-0001OU-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=ebiederm@xmission.com \
--cc=jlnance@intrex.net \
--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®