Linux 5.14 SSD File-System Benchmarks

Linux 5.14 kernel SSD file-system benchmarks on WD_BLACK SN850 NVMe solid-state drive. Benchmarks by Michael Larabel for a future article.

HTML result view exported from: https://openbenchmarking.org/result/2108260-PTS-SSDS978300&grr&sor.

Linux 5.14 SSD File-System BenchmarksProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerOpenGLVulkanCompilerFile-SystemScreen ResolutionF2FSBtrfsEXT4XFSAMD Ryzen 9 5900X 12-Core @ 3.70GHz (12 Cores / 24 Threads)ASUS ROG CROSSHAIR VIII HERO (3501 BIOS)AMD Starship/Matisse16GB1000GB Western Digital WD_BLACK SN850 1TB + 1000GB Western Digital WDS100T1X0E-00AFY0AMD DIMGREY_CAVEFISH 8GB (2900/1000MHz)AMD Device ab28ASUS VP28URealtek RTL8125 2.5GbE + Intel I211Ubuntu 20.045.14.0-051400rc7-generic (x86_64) 20210822GNOME Shell 3.36.9X Server 1.20.114.6 Mesa 21.3.0-devel (git-2b4b310 2021-08-21 focal-oibaf-ppa) (LLVM 12.0.1)1.2.185GCC 9.3.0f2fs3840x2160btrfsext4xfsOpenBenchmarking.orgKernel Details- Transparent Huge Pages: madviseCompiler Details- --build=x86_64-linux-gnu --disable-vtable-verify --disable-werror --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-gnu-unique-object --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-multilib --enable-nls --enable-objc-gc=auto --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --enable-plugin --enable-shared --enable-threads=posix --host=x86_64-linux-gnu --program-prefix=x86_64-linux-gnu- --target=x86_64-linux-gnu --with-abi=m64 --with-arch-32=i686 --with-default-libstdcxx-abi=new --with-gcc-major-version-only --with-multilib-list=m32,m64,mx32 --with-target-system-zlib=auto --with-tune=generic --without-cuda-driver -v Disk Details- F2FS: NONE / acl,active_logs=6,alloc_mode=default,background_gc=on,checkpoint_merge,discard,extent_cache,flush_merge,fsync_mode=posix,inline_data,inline_dentry,inline_xattr,lazytime,mode=adaptive,no_heap,relatime,rw,user_xattr / Block Size: 4096 - Btrfs: NONE / relatime,rw,space_cache,ssd,subvol=/,subvolid=5 / Block Size: 4096- EXT4: NONE / relatime,rw / Block Size: 4096- XFS: NONE / attr2,inode64,logbsize=32k,logbufs=8,noquota,relatime,rw / Block Size: 4096Processor Details- Scaling Governor: acpi-cpufreq ondemand (Boost: Enabled) - CPU Microcode: 0xa201009Security Details- itlb_multihit: Not affected + l1tf: Not affected + mds: Not affected + meltdown: Not affected + spec_store_bypass: Mitigation of SSB disabled via prctl and seccomp + spectre_v1: Mitigation of usercopy/swapgs barriers and __user pointer sanitization + spectre_v2: Mitigation of Full AMD retpoline IBPB: conditional IBRS_FW STIBP: always-on RSB filling + srbds: Not affected + tsx_async_abort: Not affected

Linux 5.14 SSD File-System Benchmarksdbench: 6pgbench: 1000 - 50 - Read Write - Average Latencypgbench: 1000 - 50 - Read Writemysqlslap: 256pgbench: 1000 - 50 - Read Only - Average Latencypgbench: 1000 - 50 - Read Onlymysqlslap: 512mysqlslap: 128pgbench: 100 - 50 - Read Write - Average Latencypgbench: 100 - 50 - Read Writesqlite: 8fio: Rand Read - IO_uring - No - Yes - 4KB - Default Test Directoryfio: Seq Read - IO_uring - No - Yes - 2MB - Default Test Directoryfio: Seq Write - IO_uring - No - Yes - 2MB - Default Test Directoryfio: Rand Write - IO_uring - No - Yes - 4KB - Default Test Directorysqlite: 1ior: 16MB - Default Test Directoryfs-mark: 5000 Files, 1MB Size, 4 Threadsfs-mark: 4000 Files, 32 Sub Dirs, 1MB Sizefs-mark: 1000 Files, 1MB SizeF2FSBtrfsEXT4XFS3234.571.452344398410.17229101177910811.2174108318.172753667359116352850009.1272291.222491.71193.51190.52005.652.456203617250.1613113797068562.0532435624.3455543333253163314333313.3852291.051841.0859.2872.22474.151.760294557910.14833859974810371.2144120028.778760000359116347120007.2212091.141798.9838.5843.01751.811.350370597990.14734008375110251.2014164638.910755667359316357156678.2742445.031774.5829.4827.2OpenBenchmarking.org

Dbench

Client Count: 6

OpenBenchmarking.orgMB/s, More Is BetterDbench 4.0Client Count: 6F2FSEXT4BtrfsXFS7001400210028003500SE +/- 92.55, N = 9SE +/- 1.03, N = 3SE +/- 3.25, N = 3SE +/- 0.28, N = 33234.572474.152005.651751.811. (CC) gcc options: -lpopt -O2

PostgreSQL pgbench

Scaling Factor: 1000 - Clients: 50 - Mode: Read Write - Average Latency

OpenBenchmarking.orgms, Fewer Is BetterPostgreSQL pgbench 13.0Scaling Factor: 1000 - Clients: 50 - Mode: Read Write - Average LatencyXFSF2FSEXT4Btrfs0.55261.10521.65782.21042.763SE +/- 0.010, N = 11SE +/- 0.003, N = 3SE +/- 0.123, N = 9SE +/- 0.012, N = 31.3501.4521.7602.4561. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -ldl -lm

PostgreSQL pgbench

Scaling Factor: 1000 - Clients: 50 - Mode: Read Write

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 13.0Scaling Factor: 1000 - Clients: 50 - Mode: Read WriteXFSF2FSEXT4Btrfs8K16K24K32K40KSE +/- 270.24, N = 11SE +/- 78.62, N = 3SE +/- 1887.77, N = 9SE +/- 101.55, N = 3370593443929455203611. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -ldl -lm

MariaDB

Clients: 256

OpenBenchmarking.orgQueries Per Second, More Is BetterMariaDB 10.6.4Clients: 256F2FSXFSEXT4Btrfs2004006008001000SE +/- 6.13, N = 3SE +/- 10.40, N = 3SE +/- 9.68, N = 4SE +/- 3.04, N = 38417997917251. (CXX) g++ options: -pie -fPIC -fstack-protector -O3 -pthread -lbz2 -lnuma -lpcre2-8 -lcrypt -laio -lz -lm -lssl -lcrypto -lpthread -ldl

PostgreSQL pgbench

Scaling Factor: 1000 - Clients: 50 - Mode: Read Only - Average Latency

OpenBenchmarking.orgms, Fewer Is BetterPostgreSQL pgbench 13.0Scaling Factor: 1000 - Clients: 50 - Mode: Read Only - Average LatencyXFSEXT4BtrfsF2FS0.03870.07740.11610.15480.1935SE +/- 0.001, N = 3SE +/- 0.000, N = 3SE +/- 0.002, N = 3SE +/- 0.002, N = 120.1470.1480.1610.1721. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -ldl -lm

PostgreSQL pgbench

Scaling Factor: 1000 - Clients: 50 - Mode: Read Only

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 13.0Scaling Factor: 1000 - Clients: 50 - Mode: Read OnlyXFSEXT4BtrfsF2FS70K140K210K280K350KSE +/- 1110.10, N = 3SE +/- 802.68, N = 3SE +/- 2881.18, N = 3SE +/- 3123.24, N = 123400833385993113792910111. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -ldl -lm

MariaDB

Clients: 512

OpenBenchmarking.orgQueries Per Second, More Is BetterMariaDB 10.6.4Clients: 512F2FSXFSEXT4Btrfs2004006008001000SE +/- 0.53, N = 3SE +/- 0.19, N = 3SE +/- 3.11, N = 3SE +/- 1.20, N = 37797517487061. (CXX) g++ options: -pie -fPIC -fstack-protector -O3 -pthread -lbz2 -lnuma -lpcre2-8 -lcrypt -laio -lz -lm -lssl -lcrypto -lpthread -ldl

MariaDB

Clients: 128

OpenBenchmarking.orgQueries Per Second, More Is BetterMariaDB 10.6.4Clients: 128F2FSEXT4XFSBtrfs2004006008001000SE +/- 6.47, N = 3SE +/- 3.45, N = 3SE +/- 0.70, N = 3SE +/- 2.40, N = 31081103710258561. (CXX) g++ options: -pie -fPIC -fstack-protector -O3 -pthread -lbz2 -lnuma -lpcre2-8 -lcrypt -laio -lz -lm -lssl -lcrypto -lpthread -ldl

PostgreSQL pgbench

Scaling Factor: 100 - Clients: 50 - Mode: Read Write - Average Latency

OpenBenchmarking.orgms, Fewer Is BetterPostgreSQL pgbench 13.0Scaling Factor: 100 - Clients: 50 - Mode: Read Write - Average LatencyXFSEXT4F2FSBtrfs0.46190.92381.38571.84762.3095SE +/- 0.000, N = 3SE +/- 0.007, N = 3SE +/- 0.001, N = 3SE +/- 0.009, N = 31.2011.2141.2172.0531. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -ldl -lm

PostgreSQL pgbench

Scaling Factor: 100 - Clients: 50 - Mode: Read Write

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 13.0Scaling Factor: 100 - Clients: 50 - Mode: Read WriteXFSEXT4F2FSBtrfs9K18K27K36K45KSE +/- 17.09, N = 3SE +/- 236.30, N = 3SE +/- 18.55, N = 3SE +/- 104.55, N = 3416464120041083243561. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -ldl -lm

SQLite

Threads / Copies: 8

OpenBenchmarking.orgSeconds, Fewer Is BetterSQLite 3.30.1Threads / Copies: 8F2FSBtrfsEXT4XFS918273645SE +/- 0.11, N = 3SE +/- 0.31, N = 15SE +/- 0.01, N = 3SE +/- 0.13, N = 318.1724.3528.7838.911. (CC) gcc options: -O2 -lz -lm -ldl -lpthread

Flexible IO Tester

Type: Random Read - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test Directory

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.25Type: Random Read - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryEXT4XFSF2FSBtrfs160K320K480K640K800KSE +/- 4725.82, N = 3SE +/- 3756.48, N = 3SE +/- 9333.33, N = 3SE +/- 2905.93, N = 37600007556677536675543331. (CC) gcc options: -rdynamic -ll -lnuma -lrt -lz -lpthread -lm -ldl -laio -lcurl -lssl -lcrypto -std=gnu99 -ffast-math -include -O3 -fcommon -U_FORTIFY_SOURCE -march=native

Flexible IO Tester

Type: Sequential Read - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test Directory

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.25Type: Sequential Read - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test DirectoryXFSEXT4F2FSBtrfs8001600240032004000SE +/- 0.88, N = 3SE +/- 39.61, N = 335933591359132531. (CC) gcc options: -rdynamic -ll -lnuma -lrt -lz -lpthread -lm -ldl -laio -lcurl -lssl -lcrypto -std=gnu99 -ffast-math -include -O3 -fcommon -U_FORTIFY_SOURCE -march=native

Flexible IO Tester

Type: Sequential Write - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test Directory

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.25Type: Sequential Write - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test DirectoryXFSF2FSEXT4Btrfs400800120016002000SE +/- 1.20, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3SE +/- 0.58, N = 316351635163416331. (CC) gcc options: -rdynamic -ll -lnuma -lrt -lz -lpthread -lm -ldl -laio -lcurl -lssl -lcrypto -std=gnu99 -ffast-math -include -O3 -fcommon -U_FORTIFY_SOURCE -march=native

Flexible IO Tester

Type: Random Write - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test Directory

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.25Type: Random Write - Engine: IO_uring - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryXFSEXT4F2FSBtrfs150K300K450K600K750KSE +/- 2027.59, N = 3SE +/- 1527.53, N = 3SE +/- 1527.53, N = 3SE +/- 1201.85, N = 37156677120002850001433331. (CC) gcc options: -rdynamic -ll -lnuma -lrt -lz -lpthread -lm -ldl -laio -lcurl -lssl -lcrypto -std=gnu99 -ffast-math -include -O3 -fcommon -U_FORTIFY_SOURCE -march=native

SQLite

Threads / Copies: 1

OpenBenchmarking.orgSeconds, Fewer Is BetterSQLite 3.30.1Threads / Copies: 1EXT4XFSF2FSBtrfs3691215SE +/- 0.021, N = 3SE +/- 0.005, N = 3SE +/- 0.025, N = 3SE +/- 0.287, N = 157.2218.2749.12713.3851. (CC) gcc options: -O2 -lz -lm -ldl -lpthread

IOR

Block Size: 16MB - Disk Target: Default Test Directory

OpenBenchmarking.orgMB/s, More Is BetterIOR 3.3.0Block Size: 16MB - Disk Target: Default Test DirectoryXFSF2FSBtrfsEXT45001000150020002500SE +/- 32.57, N = 3SE +/- 9.96, N = 3SE +/- 10.10, N = 3SE +/- 6.33, N = 32445.032291.222291.052091.14MIN: 1622.8 / MAX: 2902.79MIN: 113.76 / MAX: 2903.3MIN: 1995.52 / MAX: 2735.91MIN: 1556.91 / MAX: 2551.171. (CC) gcc options: -O2 -lm -pthread -lmpi

FS-Mark

Test: 5000 Files, 1MB Size, 4 Threads

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 5000 Files, 1MB Size, 4 ThreadsF2FSBtrfsEXT4XFS5001000150020002500SE +/- 5.37, N = 3SE +/- 21.56, N = 3SE +/- 1.24, N = 3SE +/- 6.06, N = 32491.71841.01798.91774.51. (CC) gcc options: -static

FS-Mark

Test: 4000 Files, 32 Sub Dirs, 1MB Size

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 4000 Files, 32 Sub Dirs, 1MB SizeF2FSBtrfsEXT4XFS30060090012001500SE +/- 3.23, N = 3SE +/- 2.65, N = 3SE +/- 2.67, N = 3SE +/- 3.22, N = 31193.5859.2838.5829.41. (CC) gcc options: -static

FS-Mark

Test: 1000 Files, 1MB Size

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 1000 Files, 1MB SizeF2FSBtrfsEXT4XFS30060090012001500SE +/- 3.32, N = 3SE +/- 3.88, N = 3SE +/- 1.01, N = 3SE +/- 3.19, N = 31190.5872.2843.0827.21. (CC) gcc options: -static


Phoronix Test Suite v10.8.5