mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: jlnance@intrex.net
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: RFC: Remove swap file support
Date: Sat, 14 Jul 2001 10:44:47 -0400	[thread overview]
Message-ID: <20010714104447.A1327@bessie.localdomain> (raw)
In-Reply-To: <3B472C06.78A9530C@mandrakesoft.com> <m1elrk3uxh.fsf@frodo.biederman.org>
In-Reply-To: <m1elrk3uxh.fsf@frodo.biederman.org>; from ebiederm@xmission.com on Sat, Jul 14, 2001 at 12:07:38AM -0600

On Sat, Jul 14, 2001 at 12:07:38AM -0600, Eric W. Biederman wrote:
> 
> The case to watch out for are deadlocks doing things like using
> swapfiles on an NFS mount.  As you point out we can already do this
> with the loop back devices so it isn't really a special case.  The
> only new case I can see working are swapfiles with holes in them, or
> swapfiles that do automatic compression.  I doubt those cases are
> significant improvements but it looks like they will fall out
> naturally. 

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.

I dont know if the kernel should punch holes back into the swap file when
it no longer needed the space.  That would be nice, but it might be a lot
of work as I am not sure the VFS supports that.  You could accomplish the
same thing by having a daemon that added a new swap file every hour and
did a swapoff & rm of the old file.

Thanks,

Jim

  reply	other threads:[~2001-07-14 14:39 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 [this message]
2001-07-14 16:12     ` Alan Cox
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=20010714104447.A1327@bessie.localdomain \
    --to=jlnance@intrex.net \
    --cc=ebiederm@xmission.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®