I'm having trouble understanding all the benefits of BTRFS and how they'll apply to me.

Copy on Write and auto-compression seem like they will free up a bit of space.

What other practical benefits will I see from using BTRFS? Are there any noticeable performance benefits?

I use my computer to dual-boot. I don't need snapshots because I have a custom script for a fresh install. I use my PC for gaming and work. I've got an NVMe, two SSD's and one HDD.

Thanks in advance!

    • Zozano@aussie.zone
      hexagon
      ·
      1 year ago

      I know it's all in my head, but there's something about a fresh install that gives me comfort.

      I do a fresh install every few months when something starts behaving funky and it's normally faster than figuring out what's wrong.

      Snapshots just don't have the same appeal to me lol

        • Zozano@aussie.zone
          hexagon
          ·
          1 year ago

          Damn bro, start learning about data recovery. I would be investing all my time into it.

      • lemmy_user_838586@lemmy.ml
        ·
        edit-2
        1 year ago

        You do a fresh install every couple months? Damn. I'm using the same install from like... 7 years ago? Which was also 3 laptops ago. I just keep copying the install partitions from one laptop drive to the next.

        There is definitely something rewarding to figuring out an issue and fixing it, vs starting from scratch every time. Also, you realistically shouldn't be having serious issues every few months, unless you're running a rolling distro like arch and there's issues with packages. I do think a bit of that might be in your head,or you're experiencing some weird hardware issues/failure.

  • BCsven@lemmy.ca
    ·
    1 year ago

    If you don't think you want snapshotting then dont worry too much about it and use whatever fs you like. if you want a nice btrfs experience try tumbleweed or leap, it is already fully integrated with system and grub , and maintenance with cleanup etc. cobbling together btrfs on your own is fine too but if you miss sometging and mess things up it is usually user error not btrfs error. .

  • I love btrfs. Mostly, because I had a couple of instances of data loss with ext4, and because it's far more user friendly than xfs. Btrfs has sane defaults, and when you do want to use the tooling, there's a lot of good documentation, and it's mostly straightforward.

    That said, unless you have some reason to be mucking around with the fs or want to play with snapshots or such, then I'd say just use your OS defaults.

  • donut4ever@lemm.ee
    ·
    1 year ago

    I've had a major issue with btrfs and nvme. Not sure if you have a laptop or a desktop, but it works fine on my desktop and shit on the laptop. Snapshots still didn't save my system the other day when the system broke in the middle of a kernel upgrade. I even had snapshots in grub. I still had to reinstall to be able to access the system. I was also told that xfs is much better. Haven't tried it yet. I personally don't care for btrfs, and I'm using the tried and true ext4 and it's been serving me very well. I have the root and home partitions separated in case shit goes haywire.

        • BCsven@lemmy.ca
          ·
          1 year ago

          Yeah, I assumed something similar. Arch (may be endeavor also) is very much a la carte build your own system, so coyld be some tweaks needed. I found Leap and Tumbleweed have no issues with btrfs because its integral to the whole distro. My NVME use on desktop and laptop have been going steady for 7 years.

          • donut4ever@lemm.ee
            ·
            1 year ago

            I've always wanted to try opensuse. I have, but I was confused with their package manager. I was too lazy to figure it all out. I may give it a try. Also, I hated their installed for manual partitioning. It was overly complicated for me. I'll mess with it in a VM to learn more about how to manually partition and also mess with their package manager more.

  • studcavity@discuss.tchncs.de
    ·
    1 year ago

    Copy on write is likely to introduce significant performance decreases in cases where large or medium size files have a couple bytes changed. It’s usually recommended to turn CoW off on those files; I found it to be more hassle than it’s worth for a root filesystem. It is still a reasonable file system for file storage that looks more like archival - files land there and seldomly or never change. If you don’t have a specific need in mind though, I wouldn’t bother - in my opinion, it’s not great as a general purpose filesystem.

    • Yote.zip@pawb.social
      ·
      1 year ago

      Copy on write is likely to introduce significant performance decreases in cases where large or medium size files have a couple bytes changed. It’s usually recommended to turn CoW off on those files

      Do you happen to have a source or benchmark for this? My understanding of CoW is that the size of the file does not matter, as BTRFS works with blocks and not files. When a block is changed, it's written to a new location. All the old blocks that are not changed are not written again - this wouldn't even make sense in the context of how BTRFS deduplicates blocks anyway.

      So:

      • 10 kB base file

      • modify 1kB of the content

      • == 11kB total "used" space, and 1kB of new written blocks.

      that old 1kB that is no longer part of the file will eventually be cleaned up if needed, but there's no reason to delete it early.

    • Zozano@aussie.zone
      hexagon
      ·
      1 year ago

      Thanks for the advice!

      How do you define medium or large files? What examples of these exist on root?

  • wolf@lemmy.zip
    ·
    1 year ago

    For me, BTRFS is worth it for the transparent compression and file integrity checks alone.

    I am not sure what Fedora does for virtual machines via boxes (like transparently disabling COW), but one caveat with BTRFS is that you have to be aware that COW is a problem for usage patterns of virtual machines on their images. Just for this one example alone BTRFS is probably not a good fit for the average user.

    Another thing which I just learned very recently, is to mount BTRFS volumes with the noatime option significantly speeds up a lot of workloads on my machine (machine has a decent SSD). Again, using the noatime option might create some problems in corner cases, so one should be aware what one is doing.

  • cmnybo@discuss.tchncs.de
    ·
    1 year ago

    Yes, snapshots nice to have and compression reduces the disk usage for the operating system and software quite a bit.

  • tiny@midwest.social
    ·
    1 year ago

    It you have a functioning dual boot don't worry about it. Next install it's worth looking in into and pretty easy to setup. It has trim support for ssds and is way easier to resize on a live system than lvm with another filesystem

  • ruination@discuss.tchncs.de
    ·
    1 year ago

    I use ZFS, not BTRFS, but both have snapshots, and if you're someone who likes to tinker with their system like me, it lets you do so without worrying that it will break.

  • GadgeteerZA@lemmy.ml
    ·
    1 year ago

    Yes and no. It is good and I did one restore of some files that worked fine, but in my case it was noticeably affecting my boot up times, and I reverted to ext4 (boot ups were fast again to less than one minute). For some reason, BTRFS was resulting in quick login, but about 18 mins before my actual desktop was responsive after login. I spend many days trying to troubleshoot that. Maybe you won't have this problem. I had my SSD system drive on ext4 with Timeshift backups, and my /home partition on BTRFS.

    So I'm back on my ext4 doing a daily automated backup to a second drive with rsync (LuckyBackup app). I think there are further kernel improvements coming to BTRFS later in this year. But I'll probably only retry it again end of 2023 or in2024. So if you decide to move, just benchmark your boot times, so you can judge if it affects them badly or not.

    That said, BTRFS has some great features, lost no data for me, and I think has a great future.