Trying Out & Benchmarking Bcachefs On Linux 6.7

Written by Michael Larabel in Software on 3 November 2023 at 10:59 AM EDT. Page 2 of 4. 87 Comments.
Flexible IO Tester benchmark with settings of Type: Random Write, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 4KB, Job Count: 1, Disk Target: Default Test Directory. XFS was the fastest.
Flexible IO Tester benchmark with settings of Type: Random Write, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 4KB, Job Count: 8, Disk Target: Default Test Directory. XFS was the fastest.

When kicking things off with FIO and performing some 4K random writes, Bcachefs out-of-the-box was much slower than the other tested Linux file-systems at their defaults including other CoW file-systems like Btrfs.

Flexible IO Tester benchmark with settings of Type: Random Read, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 4KB, Job Count: 1, Disk Target: Default Test Directory. F2FS was the fastest.
Flexible IO Tester benchmark with settings of Type: Random Read, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 4KB, Job Count: 8, Disk Target: Default Test Directory. EXT4 was the fastest.

4K random reads were much slower on Bcachefs.

Flexible IO Tester benchmark with settings of Type: Sequential Read, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 2MB, Job Count: 1, Disk Target: Default Test Directory. F2FS was the fastest.

The sequential read performance meanwhile wasn't quite as bad with Bcachefs but still trailing the other more mature file-system options form this Solidigm PCIe 4.0 NVMe SSD.

Flexible IO Tester benchmark with settings of Type: Sequential Write, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 2MB, Job Count: 1, Disk Target: Default Test Directory. F2FS was the fastest.
Flexible IO Tester benchmark with settings of Type: Sequential Write, Engine: IO_uring, Buffered: No, Direct: Yes, Block Size: 2MB, Job Count: 8, Disk Target: Default Test Directory. EXT4 was the fastest.

Bcachefs sequential write performance in this out-of-the-box comparison was coming in at around half the speed of Btrfs while XFS, F2FS, and EXT4 were the fastest.


Related Articles