Re: btrfs and swap files on SSD's ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-01-21 at 00:51 +1100, Dmitri Nikulin wrote:
> On Wed, Jan 21, 2009 at 12:02 AM, Chris Mason <chris.mason@xxxxxxxxxx> wrote:
> > There are patches to support swap over NFS that might make it safe to
> > use on btrfs. At any rate, it is a fixable problem.
> 
> FreeBSD has been able to run swap over NFS for as long as I can
> remember, what is different in Linux that makes it especially
> difficult?

There are two sides to this.  First is the part where writing to NFS can
cause memory allocations which can cause problems when you're trying to
swap so you can do memory allocations.  The swap over NFS patches add
code to deal with that.

The second is an implementation detail of the linux swap file code.  It
expects filesystems don't move blocks around, and takes a mapping of the
blocks in the FS once.

This doesn't work with btrfs because we do move blocks around all the
time.

-chris


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux