Announcement

Collapse
No announcement yet.

Fedora Cloud 35 Approved To Use Btrfs By Default

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mykolak
    replied
    Originally posted by Aryma View Post
    what different between ext4 and btrfs

    why other distro don't use it as default ?
    openSUSE uses it as default for a long time.

    Main differences:
    ext4 has much wider user base, so it's better tested.
    btrfs has more QoL features, for example: copy-on-write (CoW), subvolumes and snapshots.

    Leave a comment:


  • Zan Lynx
    replied
    Originally posted by birdie View Post
    There's a reason not to ever use btrfs: there are basically no tools to recover data from it in case it becomes broken (aside from grep'ping which won't allow you to restore anything but basic text files). Of course, if you back it up each hour - that's not a problem.
    This is not true.

    I recovered all of the data from a broken btrfs filesystem on my laptop a couple of years ago using "btrfs restore" onto an external USB drive. Then I compared the files with my last backup to see if anything had been corrupted.

    The cause of the breakage was the SSD, which lost some committed metadata writes on power loss. The laptop had turned itself on in my backpack and ran its battery down. Btrfs really, really doesn't like it when there are references to metadata sequence numbers that don't exist.

    That is the worst btrfs failure I have ever experienced since 2012, and I didn't lose any data.

    Compared to ext3 which once left half the filesystem in /lost+found? (That was in 2006 after a RAID card failure and loss of the battery-backed RAM cache) btrfs has been great.

    Leave a comment:


  • Veto
    replied
    Originally posted by Zan Lynx View Post
    And as always, don't use btrfs for inappropriate types of files and complain about it. If you want to run a database service use XFS or EXT4.
    Or just keep using BTRFS with selective NOCOW on the relevant files/folders (chattr +C).
    Do not use VM images without NOCOW...

    Leave a comment:


  • birdie
    replied
    There's a reason not to ever use btrfs: there are basically no tools to recover data from it in case it becomes broken (aside from grep'ping which won't allow you to restore anything but basic text files). Of course, if you back it up each hour - that's not a problem.

    Leave a comment:


  • Zan Lynx
    replied
    Originally posted by kloczek View Post

    Bollocks ..
    I have aboout 10k snapshots on 2TB (Intel p665) volume used in ~70% from +2 years as development platform (mostly building up to +500 rpm packages 24/7) and I don't see that.
    Sys time stays flat (I have access to CPU usage stats for all that time collected in zabbix).
    All COW file systems may be hurt only in one scenarion when storage pool is almost full (even ZFS).
    btrfs has fixed allocation unit so fragmentation has ZERO impact on non-spindle storage. Nevertjheless even on ZFS it is not an issue.
    OK so obviously it doesn't apply to you, but I know what I have seen.

    I was running Docker on btrfs on a Dell laptop with NVMe SSD in 2017, and removing a stack of snapshots (the layered Docker image) would hit 85% CPU and less than 10% IO. And it would take minutes sometimes.

    Also some of those containers were PostreSQL volumes which seemed to increase in btrfs CPU usage the longer they were in use. The filefrag command would report over 100,000 fragments after a while.

    Maybe this fix you're talking about happened after 2017. I haven't tried doing anything like that Docker work recently.

    Leave a comment:


  • rastersoft
    replied
    Originally posted by Vistaus View Post

    “Fedora disables BTRFS as the default and switches to Reiser“
    And finally Fedora will become the killer app

    Leave a comment:


  • ezst036
    replied
    Originally posted by rastersoft View Post
    Three months after: "Fedora disables BTRFS as the default and reverts to EXT4... again"

    (just a joke)
    If they did ever revert from BTRFS, I would hope they would make XFS the default across their entire stack. I'm not really sure why they didn't do that from the outset since that's the default for the enterprise products.(I think?)

    I don't know if individual users necessarily need Stratis, but I think XFS is probably better than EXT4 in most instances so there really wouldn't be any case for RH/Fedora to go all the way back to EXT4 either way.

    Leave a comment:


  • kloczek
    replied
    Originally posted by brent View Post
    How much CPU does brtfs use these days? That's a metric that is rarely benchmarked, but might be quite important. AFAIR it used to be quite bad. with btrfs.
    That depends on are you using compression and what kind of files you are storing.

    Leave a comment:


  • kloczek
    replied
    Originally posted by Zan Lynx View Post

    It is only a problem on SSD, as far as I can tell. When a file gets a lot of fragmentation due to Copy On Write then the CPU usage goes up. That also happens if a lot of snapshots are used..
    Bollocks ..
    I have aboout 10k snapshots on 2TB (Intel p665) volume used in ~70% from +2 years as development platform (mostly building up to +500 rpm packages 24/7) and I don't see that.
    Sys time stays flat (I have access to CPU usage stats for all that time collected in zabbix).
    All COW file systems may be hurt only in one scenarion when storage pool is almost full (even ZFS).
    btrfs has fixed allocation unit so fragmentation has ZERO impact on non-spindle storage. Nevertjheless even on ZFS it is not an issue.

    Leave a comment:


  • Vistaus
    replied
    Originally posted by rastersoft View Post
    Three months after: "Fedora disables BTRFS as the default and reverts to EXT4... again"

    (just a joke)
    “Fedora disables BTRFS as the default and switches to Reiser“

    Leave a comment:

Working...
X