Linux 4.20 IO Scheduler Tests

Linux 4.20 I/O scheduler tests by Michael Larabel on NVMe SSD storage for a future article on Phoronix.

HTML result view exported from: https://openbenchmarking.org/result/1812038-SK-LINUX420I24&sor.

Linux 4.20 IO Scheduler TestsProcessorMotherboardChipsetMemoryDiskGraphicsAudioMonitorNetworkOSKernelDesktopDisplay ServerOpenGLVulkanCompilerFile-SystemScreen ResolutionNoneMQ DeadlineKyberBFQ low_latencyBFQAMD Ryzen Threadripper 2990WX 32-Core @ 3.00GHz (32 Cores / 64 Threads)ASUS ROG ZENITH EXTREME (1501 BIOS)AMD Family 17h4 x 8192 MB DDR4-1600MT/s F4-3200C14-8GFXSamsung SSD 970 EVO 500GBAMD Radeon RX Vega 8GBRealtek ALC1220ASUS VP28UIntel I211 Gigabit Connection + Qualcomm Atheros QCA6174 802.11ac WirelessUbuntu 18.104.20.0-999-generic (x86_64) 20181201GNOME Shell 3.30.1X Server4.5 Mesa 18.2.2 (LLVM 7.0.0)1.1.70GCC 8.2.0ext43840x2160OpenBenchmarking.orgCompiler 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++ --enable-libmpx --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-multiarch --enable-multilib --enable-nls --enable-objc-gc=auto --enable-offload-targets=nvptx-none --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 --with-tune=generic --without-cuda-driver -v Disk Details- None: NONE / errors=remount-ro,relatime,rw- MQ Deadline: MQ-DEADLINE / errors=remount-ro,relatime,rw- Kyber: KYBER / errors=remount-ro,relatime,rw- BFQ low_latency: BFQ / errors=remount-ro,relatime,rw- BFQ: BFQ / errors=remount-ro,relatime,rwProcessor Details- Scaling Governor: acpi-cpufreq ondemandSecurity Details- __user pointer sanitization + Full AMD retpoline IBPB: conditional STIBP: disabled RSB filling + SSB disabled via prctl and seccomp

Linux 4.20 IO Scheduler Testsstartup-time: Only Seq Reads - xterm - Default Test Directorystartup-time: Seq Reads + Writes - xterm - Default Test Directorystartup-time: Only Seq Reads - GNOME Terminal - Default Test Directorystartup-time: Only Seq Reads - LibreOffice Writer - Default Test Directorystartup-time: Seq Reads + Writes - GNOME Terminal - Default Test Directorystartup-time: Seq Reads + Writes - LibreOffice Writer - Default Test Directorysqlite: Timed SQLite Insertionsfio: Rand Read - Linux AIO - No - Yes - 2MB - Default Test Directoryfio: Rand Read - Linux AIO - No - Yes - 4KB - Default Test Directoryfio: Rand Write - Linux AIO - No - Yes - 2MB - Default Test Directoryfio: Rand Write - Linux AIO - No - Yes - 4KB - Default Test Directoryfio: Seq Read - Linux AIO - No - Yes - 2MB - Default Test Directoryfio: Seq Read - Linux AIO - No - Yes - 4KB - Default Test Directoryfio: Seq Write - Linux AIO - No - Yes - 2MB - Default Test Directoryfio: Seq Write - Linux AIO - No - Yes - 4KB - Default Test Directoryfs-mark: 1000 Files, 1MB Sizefs-mark: 5000 Files, 1MB Size, 4 Threadsfs-mark: 4000 Files, 32 Sub Dirs, 1MB Sizefs-mark: 1000 Files, 1MB Size, No Sync/FSyncblogbench: Readblogbench: Writepgbench: Buffer Test - Normal Load - Read WriteNoneMQ DeadlineKyberBFQ low_latencyBFQ0.540.752.131.773.222.4935.9533226662362101110309562402102223420396.0323207266381431842850.541.122.171.734.443.4037.95336276423698861034962240093922414991.9123199290211299343810.541.062.111.794.593.5237.96336275423699441029953239494922715284.2823159292931385646090.170.180.300.250.550.3436.213342716237171210337612401712232216125.0823054883531913554770.551.122.241.784.453.1737.313368752236571010337802394721229244124.662289475934182395151OpenBenchmarking.org

Application Start-up Time

Background I/O Mix: Only Sequential Reads - Application To Start: xterm - Disk Target: Default Test Directory

OpenBenchmarking.orgsec, Fewer Is BetterApplication Start-up Time 2.4.0Background I/O Mix: Only Sequential Reads - Application To Start: xterm - Disk Target: Default Test DirectoryBFQ low_latencyNoneMQ DeadlineKyberBFQ0.12380.24760.37140.49520.619SE +/- 0.00, N = 9SE +/- 0.00, N = 3SE +/- 0.01, N = 9SE +/- 0.01, N = 3SE +/- 0.01, N = 30.170.540.540.540.55

Application Start-up Time

Background I/O Mix: Sequential Reads + Writes - Application To Start: xterm - Disk Target: Default Test Directory

OpenBenchmarking.orgsec, Fewer Is BetterApplication Start-up Time 2.4.0Background I/O Mix: Sequential Reads + Writes - Application To Start: xterm - Disk Target: Default Test DirectoryBFQ low_latencyNoneKyberMQ DeadlineBFQ0.2520.5040.7561.0081.26SE +/- 0.01, N = 9SE +/- 0.01, N = 5SE +/- 0.02, N = 3SE +/- 0.07, N = 9SE +/- 0.06, N = 60.180.751.061.121.12

Application Start-up Time

Background I/O Mix: Only Sequential Reads - Application To Start: GNOME Terminal - Disk Target: Default Test Directory

OpenBenchmarking.orgsec, Fewer Is BetterApplication Start-up Time 2.4.0Background I/O Mix: Only Sequential Reads - Application To Start: GNOME Terminal - Disk Target: Default Test DirectoryBFQ low_latencyKyberNoneMQ DeadlineBFQ0.5041.0081.5122.0162.52SE +/- 0.00, N = 3SE +/- 0.03, N = 3SE +/- 0.03, N = 9SE +/- 0.04, N = 3SE +/- 0.02, N = 30.302.112.132.172.24

Application Start-up Time

Background I/O Mix: Only Sequential Reads - Application To Start: LibreOffice Writer - Disk Target: Default Test Directory

OpenBenchmarking.orgsec, Fewer Is BetterApplication Start-up Time 2.4.0Background I/O Mix: Only Sequential Reads - Application To Start: LibreOffice Writer - Disk Target: Default Test DirectoryBFQ low_latencyMQ DeadlineNoneBFQKyber0.40280.80561.20841.61122.014SE +/- 0.00, N = 3SE +/- 0.01, N = 3SE +/- 0.01, N = 3SE +/- 0.03, N = 5SE +/- 0.00, N = 30.251.731.771.781.79

Application Start-up Time

Background I/O Mix: Sequential Reads + Writes - Application To Start: GNOME Terminal - Disk Target: Default Test Directory

OpenBenchmarking.orgsec, Fewer Is BetterApplication Start-up Time 2.4.0Background I/O Mix: Sequential Reads + Writes - Application To Start: GNOME Terminal - Disk Target: Default Test DirectoryBFQ low_latencyNoneMQ DeadlineBFQKyber1.03282.06563.09844.13125.164SE +/- 0.12, N = 9SE +/- 0.03, N = 3SE +/- 0.08, N = 3SE +/- 0.16, N = 9SE +/- 0.21, N = 90.553.224.444.454.59

Application Start-up Time

Background I/O Mix: Sequential Reads + Writes - Application To Start: LibreOffice Writer - Disk Target: Default Test Directory

OpenBenchmarking.orgsec, Fewer Is BetterApplication Start-up Time 2.4.0Background I/O Mix: Sequential Reads + Writes - Application To Start: LibreOffice Writer - Disk Target: Default Test DirectoryBFQ low_latencyNoneBFQMQ DeadlineKyber0.7921.5842.3763.1683.96SE +/- 0.02, N = 9SE +/- 0.04, N = 3SE +/- 0.09, N = 9SE +/- 0.06, N = 9SE +/- 0.14, N = 90.342.493.173.403.52

SQLite

Timed SQLite Insertions

OpenBenchmarking.orgSeconds, Fewer Is BetterSQLite 3.22Timed SQLite InsertionsNoneBFQ low_latencyBFQMQ DeadlineKyber918273645SE +/- 0.07, N = 3SE +/- 0.06, N = 3SE +/- 0.03, N = 3SE +/- 0.22, N = 3SE +/- 0.24, N = 335.9536.2137.3137.9537.961. (CC) gcc options: -O2 -lz -ldl -lpthread

Flexible IO Tester

Type: Random Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test Directory

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Random Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test DirectoryBFQKyberMQ DeadlineBFQ low_latencyNone7001400210028003500SE +/- 23.46, N = 3SE +/- 18.46, N = 3SE +/- 9.71, N = 3SE +/- 12.86, N = 3SE +/- 16.84, N = 3336833623362334233221. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Random Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryMQ DeadlineKyberBFQBFQ low_latencyNone160320480640800SE +/- 1.86, N = 3SE +/- 6.23, N = 3SE +/- 1.00, N = 3SE +/- 2.91, N = 3SE +/- 1.67, N = 37647547527166661. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.1Type: Random Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryMQ DeadlineKyberBFQBFQ low_latencyNone40K80K120K160K200KSE +/- 333.33, N = 3SE +/- 1527.53, N = 3SE +/- 333.33, N = 3SE +/- 881.92, N = 3SE +/- 333.33, N = 31956671930001926671836671703331. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Random Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test Directory

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Random Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test DirectoryBFQ low_latencyKyberMQ DeadlineBFQNone5001000150020002500SE +/- 2.85, N = 3SE +/- 2.08, N = 3SE +/- 2.08, N = 3SE +/- 2.52, N = 3237123692369236523621. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Random Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNoneKyberMQ DeadlineBFQ low_latencyBFQ2004006008001000SE +/- 16.18, N = 3SE +/- 4.04, N = 3SE +/- 7.02, N = 3SE +/- 4.73, N = 3SE +/- 3.79, N = 310119448867127101. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.1Type: Random Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNoneKyberMQ DeadlineBFQ low_latencyBFQ60K120K180K240K300KSE +/- 4163.33, N = 3SE +/- 1000.00, N = 3SE +/- 1666.67, N = 3SE +/- 1201.85, N = 3SE +/- 1201.85, N = 32590002420002266671823331816671. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Sequential Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test DirectoryMQ DeadlineBFQBFQ low_latencyNoneKyber2004006008001000SE +/- 1.00, N = 3SE +/- 0.33, N = 3SE +/- 0.33, N = 3103410331033103010291. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Sequential Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test Directory

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Sequential Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryMQ DeadlineNoneKyberBFQBFQ low_latency2004006008001000SE +/- 9.54, N = 3SE +/- 1.53, N = 3SE +/- 10.12, N = 3SE +/- 2.40, N = 3SE +/- 12.46, N = 129629569537807611. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Sequential Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test Directory

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.1Type: Sequential Read - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryMQ DeadlineNoneKyberBFQBFQ low_latency50K100K150K200K250KSE +/- 2516.61, N = 3SE +/- 333.33, N = 3SE +/- 2603.42, N = 3SE +/- 666.67, N = 3SE +/- 3254.66, N = 122460002446672436671993331947501. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Sequential Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 2MB - Disk Target: Default Test DirectoryNoneBFQ low_latencyMQ DeadlineBFQKyber5001000150020002500SE +/- 1.00, N = 3SE +/- 0.67, N = 3SE +/- 0.88, N = 3SE +/- 4.06, N = 3240224012400239423941. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Sequential Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test Directory

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Sequential Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNoneKyberMQ DeadlineBFQBFQ low_latency2004006008001000SE +/- 11.02, N = 3SE +/- 14.53, N = 3SE +/- 0.88, N = 3SE +/- 4.81, N = 3SE +/- 10.12, N = 1210229499397217121. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Sequential Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test Directory

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 3.1Type: Sequential Write - IO Engine: Linux AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNoneKyberMQ DeadlineBFQBFQ low_latency60K120K180K240K300KSE +/- 2728.45, N = 3SE +/- 3785.94, N = 3SE +/- 333.33, N = 3SE +/- 1201.85, N = 3SE +/- 2571.58, N = 122616672430002403331846671824171. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lgfapi -lglusterfs -lnuma -libverbs -lrt -laio -lz -lm -lpthread -ldl

FS-Mark

Test: 1000 Files, 1MB Size

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 1000 Files, 1MB SizeNoneBFQ low_latencyBFQKyberMQ Deadline50100150200250SE +/- 0.81, N = 3SE +/- 1.22, N = 3SE +/- 0.96, N = 3SE +/- 2.10, N = 3SE +/- 3.62, N = 32342322292272241. (CC) gcc options: -static

FS-Mark

Test: 5000 Files, 1MB Size, 4 Threads

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 5000 Files, 1MB Size, 4 ThreadsBFQBFQ low_latencyNoneKyberMQ Deadline50100150200250SE +/- 7.23, N = 12SE +/- 4.91, N = 12SE +/- 13.88, N = 11SE +/- 19.67, N = 9SE +/- 14.88, N = 62442162031521491. (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 SizeBFQ low_latencyBFQNoneMQ DeadlineKyber306090120150SE +/- 7.06, N = 12SE +/- 7.44, N = 12SE +/- 6.11, N = 12SE +/- 5.20, N = 12SE +/- 2.72, N = 12125.08124.6696.0391.9184.281. (CC) gcc options: -static

FS-Mark

Test: 1000 Files, 1MB Size, No Sync/FSync

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 1000 Files, 1MB Size, No Sync/FSyncNoneMQ DeadlineKyberBFQ low_latencyBFQ5001000150020002500SE +/- 5.99, N = 3SE +/- 6.99, N = 3SE +/- 7.14, N = 3SE +/- 9.10, N = 3SE +/- 4.67, N = 3232023192315230522891. (CC) gcc options: -static

BlogBench

Test: Read

OpenBenchmarking.orgFinal Score, More Is BetterBlogBench 1.0Test: ReadKyberMQ DeadlineNoneBFQ low_latencyBFQ200K400K600K800K1000KSE +/- 56002.71, N = 9SE +/- 55608.68, N = 9SE +/- 16687.41, N = 9SE +/- 13128.49, N = 9SE +/- 8443.11, N = 99292939290217266384883534759341. (CC) gcc options: -O2 -pthread

BlogBench

Test: Write

OpenBenchmarking.orgFinal Score, More Is BetterBlogBench 1.0Test: WriteBFQ low_latencyBFQNoneKyberMQ Deadline4K8K12K16K20KSE +/- 406.72, N = 3SE +/- 188.75, N = 3SE +/- 403.05, N = 3SE +/- 871.74, N = 3SE +/- 940.27, N = 319135182391431813856129931. (CC) gcc options: -O2 -pthread

PostgreSQL pgbench

Scaling: Buffer Test - Test: Normal Load - Mode: Read Write

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 10.3Scaling: Buffer Test - Test: Normal Load - Mode: Read WriteBFQ low_latencyBFQKyberMQ DeadlineNone12002400360048006000SE +/- 93.38, N = 3SE +/- 72.89, N = 5SE +/- 94.23, N = 12SE +/- 27.41, N = 3SE +/- 66.90, N = 12547751514609438142851. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm


Phoronix Test Suite v10.8.5