[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060926121319.GA2367@elf.ucw.cz>
Date: Tue, 26 Sep 2006 14:13:20 +0200
From: Pavel Machek <pavel@....cz>
To: David Schwartz <davids@...master.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Swap on Fuse deadlocks?
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists