5 ms·
> native ZFS support is FreeBSD's killer feature Why? I never cared about my filesystem. Does it make a difference what filesystem am I using?
by enriquto 6y ago
> native ZFS support is FreeBSD's killer feature
Why? I never cared about my filesystem. Does it make a difference what filesystem am I using?
- nix23 6y agoSince you don't know ZFS...you should educate yourself on that one especially as a c system dev (bectl).
- enriquto 6y agoYes, I agree, and sorry for the ignorant question. Yet a lone "educate yourself" may be a bit harsh on a site where informal technical conversation happens. Care to share a couple of "killer" features of ZFS for somebody who has never cared about the FS their files are stored in?
- nix23 6y agoToo much to write and too many features, that's what i meant with educate yourself: https://en.wikipedia.org/wiki/ZFS https://en.wikipedia.org/wiki/ZFS
- srer 6y agoI can't speak for your computing experience, but for mine: There are significant differences in performance, admittedly SSDs temper these differences but there are plenty of systems with large HDDs. This isn't an abstract performance benchmark thing, I feel it when doing operations on large numbers of small files. There are significant differences in features that impact how you use the system. For instance, sometimes I like to backup a directory I'm working in (typically before some funky git operation), normally that can be done with cp or tar, but that's slow. Much faster is a manual filesystem(/volume manager) snapshot. But I have to remember to do that. Much more convenient would be if I didn't have to explicitly create a snapshot, which HAMMER would offer me. All non-temporary HAMMER filesystems in DragonFly by default automatically maintain 60 days worth of 1-day snapshots and 1-day worth of fine-grained (30-second) snapshots. - https://www.dragonflybsd.org/features/#index3h2 https://www.dragonflybsd.org/features/#index3h2
- bluGill 6y agoDepends. In a perfect world it doesn't matter. However in this imperfect world it is nice to know that there is an automatic backup of your files from a few days ago, and if a hard drive crashes you just replace it (requires paying for redundant hard drives!). The ability to add more space to an existing filesystem is nice just in case. There are a lot of other features that might or might not matter to you. If the above don't it is because you haven't been burned yet in life. (Or you use one of several other filesystems that support those features)
- sirn 6y agoI hosted my coding environment on a VPS running FreeBSD and happen to jump between VPS provider quite a bit due to location and pricing. My migration method was simply: $ zfs snapshot zroot/home@migrate $ zfs send -R zroot/home@migrate | ssh newhost zfs recv zroot/home ZFS automatic snapshots (via zfstools[1]) can also saved hours of headaches trying to recover an older version of a file. Since snapshot appears as a regular mount (ZFS even automatically expose them under /path/to/mount/.zfs/snapshot), all existing tooling just works (cp, cat, running diff against snapshot, etc.). My Linux machine these days also runs ZFS, but the level of integration with the system is still far from that of FreeBSD's. That can range from something as simple as ZFS ARC stats in top, to native support for ZFS Boot Environment allowing the system to boot directly from snapshots or do an offline upgrade of a clone of a live system[2]. (On Linux side of things there's zfsbootmenu[3] which provides something similar but the project is still quite new.) The filesystem may not matter that much, and I'm sure many these features can be replicated with LVM, but having a unified tooling and community around it really makes quite a difference in quality of life as an end-user. [1]: https://github.com/bdrewery/zfstools https://github.com/bdrewery/zfstools [2]: https://vermaden.wordpress.com/2021/02/23/upgrade-freebsd-with-zfs-boot-environments/ https://vermaden.wordpress.com/2021/02/23/upgrade-freebsd-wi... [3]: https://zfsbootmenu.org/ https://zfsbootmenu.org/
- danuker 6y agoDo you use Linux as a daily driver?
- sirn 6y agoI used Linux as a daily driver until the end of 2020 (Void Linux + ZFS + ZBM), but now running M1 Mac as a primary machine. I'm still using Linux regularly though (gaming via Proton, which is why I'm not running FreeBSD on a desktop yet).
- Rompect 6y agoHow do ZFS snapshots compare to LVM snapshots? Question not specifically for, but anyone who might know something about this.
- gigatexal 6y agoIt sure does. Compression and encryption and snapshotting and bit rot protection all native to the file system and the tools around it instead of having to cobble together lvm and mdraid and such. Snapshotting imo is one of the best things. Copy on write file systems really are awesome. And FreeBSD adopting ZFS so early was a huge win imo.
- bashinator 6y agoShort answer - automatically cache frequently-accessed files on expensive but small NVMe drives while using bigger cheaper slower drives for mass storage.