Announcement

Collapse
No announcement yet.

Facebook Has Been Baking A New Space Cache System For Btrfs

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

  • Facebook Has Been Baking A New Space Cache System For Btrfs

    Phoronix: Facebook Has Been Baking A New Space Cache System For Btrfs

    The Btrfs file-system updates were mailed in Sunday evening for the Linux 4.5 kernel. There is one big but experimental feature with this pull...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    So what is the impact for somebody who uses Btrfs for normal day-to-day file system things? Speed improvements?

    Comment


    • #3
      Originally posted by wodencafe View Post
      So what is the impact for somebody who uses Btrfs for normal day-to-day file system things? Speed improvements?
      According to the article you will see speed improvements for 30+ TB volumes. Arguably not a common day-to-day scenario, then.

      Comment


      • #4
        Originally posted by wodencafe View Post
        So what is the impact for somebody who uses Btrfs for normal day-to-day file system things? Speed improvements?
        It depends on the implementation, normally it means slower code for very small sizes.
        From my experience the point where trees become faster than linear searches in practice are 2^10..2^16 items depending on the implementation. Of course I have no idea what is actually in the tree or how often it is accessed and/or updated(linear updates take considerably more and the number is in double digits instead of 4/5).
        If someone really cares enough to read the code. he can write a minimal test and benchmark it for everyone.
        Last edited by FastCode; 18 January 2016, 07:47 AM. Reason: typo, I'm like really tired, excuse the grammar

        Comment


        • #5
          were reported for file-systems of around 30+ Terabytes.
          Nice to see they're flying high and testing at scale

          Comment


          • #6
            I'm not normally one for reactivating 3 month old threads, but this update to the btrfs space_cache has made a noticeable improvement on my modest setup.

            I have a NAS running Debian Testing (Stretch) that's recently just received the 4.5 kernel so I thought I'd give it a shot. The NAS has 2xWD Red Pro 4TB hard drives in RAID1 using btrfs, accessed by a couple of Windows 10 PC on the same gigabit LAN via Samba. However when copying large (500MB-2TB) files to the NAS there's always been a few seconds of disk thrashing before the transfer starts (5-10 secs). I've played around with various Samba settings but it's always been there, even on an Arch setup previously with the same hardware.

            Switching to space_cache=v2 instantly improves this with no noticeable disk thrashing or delay at the start of the file transfer so it's possibly not necessary to have a 30TB storage system to potentially see the benefit of the new space_cache setting. And as the space_cache can safely be rebuilt it's a relatively safe direction to move in.

            Comment

            Working...
            X