All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: David Schwartz <davids@webmaster.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Swap on Fuse deadlocks?
Date: Tue, 26 Sep 2006 14:13:20 +0200	[thread overview]
Message-ID: <20060926121319.GA2367@elf.ucw.cz> (raw)
In-Reply-To: <MDEHLPKNGKAHNMBLJOLKMEIEOKAB.davids@webmaster.com>

On Mon 2006-09-25 17:08:13, David Schwartz wrote:
> 
> > Swap on disk I don't get.  A little slow perhaps due to the LZO or zlib
> > compression in the middle (lzolayer lets you pick either); but a total
> > freeze?  What's wrong here, is lzo_fs data getting swapped out and then
> > not swapped in because it's needed to decompress itself?
> 
> The filesystem would have to make sure to lock in memory itself and any code it might need. Obviously, if the filesystem code itself gets swapped out, you cannot swap it back in again ever. Any user-space filesystem that expects to handle swap had better call 'mlock'.
> 

mlock is certainly neccessary, but I am not sure it is enough. Linux
VM was not designed with "swap over userspace" in mind.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

      reply	other threads:[~2006-09-26 12:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-25 21:43 Swap on Fuse deadlocks? John Richard Moser
2006-09-25 22:04 ` Pavel Machek
2006-09-26 17:54   ` Miklos Szeredi
2006-09-26  0:08 ` David Schwartz
2006-09-26 12:13   ` Pavel Machek [this message]

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=20060926121319.GA2367@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=davids@webmaster.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.