Re: btrfs doesn't support filesystem swap

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

 



On Wed, Mar 16, 2016 at 11:20 AM, Neal Becker <ndbecker2@xxxxxxxxx> wrote:
> If I had known that, I might not have chosen btrfs for my filesystems.  Came
> as a rude surprise when I suddenly needed more swap space, and couldn't do
> it.

You might check the FAQ and also the Gotchas list to make sure you're
not missing something else.
https://btrfs.wiki.kernel.org/index.php/FAQ
https://btrfs.wiki.kernel.org/index.php/Gotchas

Swap expects to get a contiguous set of sectors, whether it's on a
partition or a filesystem. But Btrfs doesn't work this way at all, all
metadata and data extents are logical addresses internally, those get
translated by a chunk tree to reference device(s) and sector the data
is located on. The way balancing and allocation work, those chunks can
be moved at anytime to any device or even across multiple devices.
Getting swapfiles support means work for swap as well as Btrfs.
https://btrfs.wiki.kernel.org/index.php/Project_ideas#Swap_file_support
https://lwn.net/Articles/625412/

But it's an open question what limitations this will have for a
snapshottable cow file system even if it gets finished. I'm kinda
thinking maybe the file would need to go in its own subvolume that
gets some kind of nosnapshot attribute? I'm not really sure but
snapshotting swap seems like a bad idea.

-- 
Chris Murphy
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux