The Bard's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Alawami@lemmy.world to Linux@lemmy.ml · 2 years ago

Why btrfs gets huge perf hit with background IO work?

lemmy.world

message-square
18
link
fedilink
94

Why btrfs gets huge perf hit with background IO work?

lemmy.world

Alawami@lemmy.world to Linux@lemmy.ml · 2 years ago
message-square
18
link
fedilink
alert-triangle
You must log in or # to comment.
  • Chewy@discuss.tchncs.de
    link
    fedilink
    arrow-up
    25
    arrow-down
    1
    ·
    edit-2
    2 years ago

    The benchmark with many more metrics: https://www.phoronix.com/review/bcachefs-linux-67

    Edit: The benchmarks were done with a debug variable set, which explains the weak IO.

    https://www.phoronix.com/news/Bcachefs-Updated-Linux-6.7

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    14
    ·
    2 years ago

    “Why does btrfs get a huge perf hit with background IO work?”

  • HarriPotero@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    Seems unreasonably slow to me that xterm would take a second to start. My two computers running kernel 6.7 are slow than the machine in the test, both have BTRFS on LUKS.

    I tried a cold start of xterm on my older thinkpad with an NVMe drive at ~0.3s.

    A cold start on my desktop (also NVMe), 0.08s.

    I’m unable to reproduce. I wonder if he might’ve had a fresh install with some background operations grinding on, or some indexing going on.

    • Alawami@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      What background IO load did you run?

      • HarriPotero@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        I was torrenting porn with good speed.

        • Kusimulkku@lemm.ee
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Incidentally

        • jwt@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Thanks for sharing!

  • blitzkrieg@lemm.ee
    link
    fedilink
    arrow-up
    6
    arrow-down
    2
    ·
    2 years ago

    Hold up. I thought btrfs was better than ext4?

    • Chewy@discuss.tchncs.de
      link
      fedilink
      arrow-up
      18
      ·
      2 years ago

      Filesystems aren’t so simple. Modern advanced filesystems like btrfs, zfs and bcachefs are more than just filesystems.

      E.g. they include features like volume management, compression and sometimes encryption. Most features can also be achieved with for example ext4 + lvm + luks, but it’s nice to have all in one system with unified configuration.

      tl;dr

      Btrfs does more than ext4, which can have a negative performance impact, depending on the use case/metric. Usually the features gained by btrfs outweigh the small difference in performance imo.

    • fuckwit_mcbumcrumble@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      I’m sure this is a specific workload that BTRFS struggles with that others handle just fine.

      Other workloads BTRFS will be better, and in others it will be worse. There’s no one size fits all.

    • woelkchen@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Valve decided on Ext4 for Steam Deck and did so probably not just for shits and giggles.

  • Nine@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    I was curious about this too. Definitely making me question some of my own thoughts and assumptions about btrfs.

  • pete_the_cat@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    It probably has to do with the CoW nature of BTRFS compared to the others which don’t do CoW.

    • sarahnya@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      8
      ·
      2 years ago

      Bcachefs does use CoW iirc~

      • Miku Luna \ she/it@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        It does, it says so in the first sentence of the Wikipedia article

      • pete_the_cat@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Ah, BCacheFS is also a lot less of a clusterfuck then BTRFS is too

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 340 users / day
  • 825 users / week
  • 2.49K users / month
  • 7.28K users / 6 months
  • 2 local subscribers
  • 63.3K subscribers
  • 6.61K Posts
  • 80.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • nooter692@lemmy.ml
  • MarcellusDrum@lemmy.ml
  • Arthur Besse@lemmy.ml
  • Cyclohexane@lemmy.ml
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org