Re: btrfs and swap files on SSD's ?

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

 



On Sat, 2009-01-17 at 11:10 +1100, Chris Samuel wrote:
> Hi folks,
> 
> Someone on the OpenMoko community list commented recently about having created 
> a swap file on the SD card of their OpenMoko Neo phone and said that they'd 
> been lazy as they'd not made a swap partition.
> 
> My thought was that with an SSD aware filesystem like btrfs a swapfile would 
> actually be a smarter move than a swap partition because it lets the 
> filesystem try and even the wear generated by access to it which a swap 
> partition will not have the freedom to do.

It has actually been a while since I read through the swap-on-file code,
but setup_swap_extents() makes me think it is making its own map of the
blocks in use by the FS.

This doesn't quite play nicely with btrfs and should lead to all kinds
of problems....I'm looking into how to disable swapfiles completely.

> 
> To me that makes logical sense but given the complexity of the kernel and 
> btrfs is it a fair comment to make and, also, would that be the case with 
> btrfs at present ?

In general, the btrfs cow will be more wear leveling friendly but this
is the kind of thing that I'd expect the ssd to do for us ;)

<insert David Woodhouse's long standing debate with me about where wear
leveling should live here>

-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