What's the current recommendation of file system?
ext4, btrfs, ZFS?
Is there one better suited for a laptop/desktop and a server?
Is one better for RAID? Is one better for speed? Is one better for resiliency?
What's the current recommendation of file system?
ext4, btrfs, ZFS?
Is there one better suited for a laptop/desktop and a server?
Is one better for RAID? Is one better for speed? Is one better for resiliency?
The presentation "ZFS: The Last Word in File Systems" from its debut in 2008 is a good introduction. Part 1 (of 3) probably best explains how different it is from just about anything else out there (even now, in 2019):
* https://www.youtube.com/watch?v=NRoUC9P1PmA
Part 2 show some extra niceties / features, and Part 3 is a demo and Q&A. Watching Part 1 at least is worth it for anyone curious; 2 and 3 are optional.
It's possibly better for performance, depending on use case. If you're dealing with easily compressible data, then you can enable compression, which can speed up your reads/writes since you're reading or writing less data. You shouldn't get a performance hit on non-compressible data, since it will adjust its compression when it gets non-compressible data.
I really like ZFS, and it's definitely more robust than most other filesystems, but there are multiple solutions "if you care about your data".
https://btrfs.wiki.kernel.org/index.php/RAID56 in the begining of 2019 this page had a big fat warning: The parity RAID code has '''multiple serious data-loss bugs''' in it. It should '''not''' be used for anything other than testing purposes.
Someone watered it down in march, but it still doesn't look much better.
Not all databases do buffering: Postgresql does not, and is generally built around an OS's normal I/O buffering.
2017 sub-thread on this topic: