EXT4 Encryption Linux 4.18 Git

Tests for a future article on Phoronix.

HTML result view exported from: https://openbenchmarking.org/result/1806152-AR-EXT4ENCRY33&grw.

EXT4 Encryption Linux 4.18 GitProcessorMotherboardChipsetMemoryDiskGraphicsMonitorNetworkOSKernelDesktopCompilerFile-SystemScreen ResolutionNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt2 x Intel Xeon Gold 6138 @ 3.70GHz (40 Cores / 80 Threads)TYAN S7106 (V1.00 BIOS)Intel Sky Lake-E DMI3 Registers12 x 8192 MB DDR4-2666MT/s Micron 9ASF1G72PZ-2G6B1256GB Samsung SSD 850 + 2000GB Seagate ST2000DM006-2DM1 + 2 x 120GB TOSHIBA-TR150ASPEED ASPEED FamilyVE228Intel I210 Gigabit ConnectionUbuntu 18.044.17.0-999-generic (x86_64) 20180614GNOME Shell 3.28.1GCC 7.3.0ext41920x1080ext4 (ecryptfs)ext4OpenBenchmarking.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-as=/usr/bin/x86_64-linux-gnu-as --with-default-libstdcxx-abi=new --with-gcc-major-version-only --with-ld=/usr/bin/x86_64-linux-gnu-ld --with-multilib-list=m32,m64,mx32 --with-target-system-zlib --with-tune=generic --without-cuda-driver -v Disk Details- CFQ / relatime,rwProcessor Details- Scaling Governor: intel_pstate powersavePython Details- Python 2.7.15rc1 + Python 3.6.5Security Details- KPTI + __user pointer sanitization + Full generic retpoline IBPB IBRS_FW Protection

EXT4 Encryption Linux 4.18 Gitcompilebench: Initial Createfio: Rand Read - POSIX AIO - No - Yes - 4KB - Default Test Directoryfio: Rand Read - POSIX AIO - No - Yes - 4MB - Default Test Directoryfio: Rand Write - POSIX AIO - No - Yes - 4KB - Default Test Directoryfio: Rand Write - POSIX AIO - No - Yes - 4MB - Default Test Directoryfio: Seq Read - POSIX AIO - No - Yes - 4KB - Default Test Directoryfio: Seq Read - POSIX AIO - No - Yes - 4MB - Default Test Directoryfio: Seq Write - POSIX AIO - No - Yes - 4KB - Default Test Directoryfio: Seq Write - POSIX AIO - No - Yes - 4MB - Default Test Directoryfs-mark: 1000 Files, 1MB Sizefs-mark: 5000 Files, 1MB Size, 4 Threadsfs-mark: 4000 Files, 32 Sub Dirs, 1MB Sizeosbench: Create Filesbuild-gcc: Time To Compilenginx: Static Web Page Servingsqlite: Timed SQLite Insertionspgbench: Buffer Test - Normal Load - Read WriteNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt505.6531.2350710847416950611647774.1050.9344.6015.60852.3529708.9340.902382.99355.0326.70428394.703301532444798.9333262.8747.7338.7023.811029.0129783.0646.072184.25201.4750.3348.1336.3039.58964.2425722.0242.711832.18509.8521.5331057.5726386.3031061.5030260.5049.3340.6715.82854.0329831.0245.502321.62OpenBenchmarking.org

Compile Bench

Test: Initial Create

OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: Initial CreateNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt110220330440550SE +/- 6.00, N = 3SE +/- 7.52, N = 3SE +/- 0.53, N = 3SE +/- 5.44, N = 3505.65355.03201.47509.85

Flexible IO Tester

Type: Random Read - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt714212835SE +/- 0.34, N = 3SE +/- 0.00, N = 3SE +/- 0.37, N = 331.2326.7021.531. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Random Read - IO Engine: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4MB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt9001800270036004500SE +/- 0.33, N = 3SE +/- 52.26, N = 350742833101. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Random Write - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt20406080100SE +/- 2.00, N = 3SE +/- 4.82, N = 3SE +/- 1.82, N = 3108.0094.7057.571. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Random Write - IO Engine: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4MB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt100200300400500SE +/- 3.18, N = 3SE +/- 8.17, N = 3SE +/- 20.07, N = 34743302631. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Sequential Read - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt30060090012001500SE +/- 0.88, N = 3SE +/- 25.70, N = 3SE +/- 0.10, N = 3169.001532.0086.301. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Sequential Read - IO Engine: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4MB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt10002000300040005000SE +/- 10.49, N = 350644473101. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

Type: Sequential Write - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt306090120150SE +/- 4.26, N = 3SE +/- 3.58, N = 3SE +/- 0.85, N = 3116.0098.9361.501. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 3.1Type: Sequential Write - IO Engine: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4MB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt100200300400500SE +/- 4.51, N = 34773323021. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -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 SizeNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt1632486480SE +/- 23.48, N = 3SE +/- 22.67, N = 3SE +/- 13.28, N = 3SE +/- 17.26, N = 374.1062.8750.3360.501. (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 ThreadsNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt1122334455SE +/- 0.74, N = 3SE +/- 1.96, N = 3SE +/- 0.58, N = 3SE +/- 0.74, N = 350.9347.7348.1349.331. (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 SizeNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt1020304050SE +/- 3.15, N = 3SE +/- 6.90, N = 3SE +/- 1.90, N = 3SE +/- 2.57, N = 344.6038.7036.3040.671. (CC) gcc options: -static

OSBench

Test: Create Files

OpenBenchmarking.orgus Per Event, Fewer Is BetterOSBenchTest: Create FilesNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt918273645SE +/- 0.03, N = 3SE +/- 0.07, N = 3SE +/- 0.08, N = 3SE +/- 0.02, N = 315.6023.8139.5815.82-lm-lm-lm1. (CC) gcc options:

Timed GCC Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed GCC Compilation 7.2Time To CompileNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt2004006008001000SE +/- 3.59, N = 3SE +/- 1.49, N = 3SE +/- 1.72, N = 3SE +/- 1.86, N = 3852.351029.01964.24854.03

NGINX Benchmark

Static Web Page Serving

OpenBenchmarking.orgRequests Per Second, More Is BetterNGINX Benchmark 1.9.9Static Web Page ServingNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt6K12K18K24K30KSE +/- 111.01, N = 3SE +/- 78.30, N = 3SE +/- 137.57, N = 329708.9329783.0625722.0229831.021. (CC) gcc options: -lpthread -lcrypt -lcrypto -lz -O3 -march=native

SQLite

Timed SQLite Insertions

OpenBenchmarking.orgSeconds, Fewer Is BetterSQLite 3.22Timed SQLite InsertionsNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt1020304050SE +/- 1.86, N = 3SE +/- 5.24, N = 3SE +/- 1.86, N = 3SE +/- 1.92, N = 340.9046.0742.7145.501. (CC) gcc options: -O2 -lz -ldl -lpthread

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 WriteNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt5001000150020002500SE +/- 74.56, N = 3SE +/- 77.82, N = 3SE +/- 70.33, N = 3SE +/- 189.21, N = 32382.992184.251832.182321.621. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -lpgcommon -lpgport -lpq -lpthread -lrt -lcrypt -ldl -lm

PostgreSQL pgbench

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.02.821.3EXT4 fscrypt0.03.118.4eCryptfs0.02.420.4LUKS dm-crypt0.03.318.5OpenBenchmarking.orgPercent, Fewer Is BetterPostgreSQL pgbench 10.3CPU Usage (Summary) Monitor612182430

PostgreSQL pgbench

CPU Usage (Summary) Monitor

MinAvgMaxEXT4 fscrypt0.01.63.8OpenBenchmarking.orgPercent, Fewer Is BetterPostgreSQL pgbench 10.3CPU Usage (Summary) Monitor1.06032.12063.18094.24125.3015

SQLite

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.41.3EXT4 fscrypt0.00.51.3eCryptfs0.00.51.3LUKS dm-crypt0.00.51.3OpenBenchmarking.orgPercent, Fewer Is BetterSQLite 3.22CPU Usage (Summary) Monitor0.69051.3812.07152.7623.4525

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.81.3EXT4 fscrypt0.00.81.3eCryptfs0.00.91.3LUKS dm-crypt0.00.91.3OpenBenchmarking.orgPercent, Fewer Is BetterFS-Mark 3.3CPU Usage (Summary) Monitor0.6991.3982.0972.7963.495

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.01.32.4EXT4 fscrypt0.01.45.0eCryptfs0.01.75.0LUKS dm-crypt0.01.55.0OpenBenchmarking.orgPercent, Fewer Is BetterFS-Mark 3.3CPU Usage (Summary) Monitor1.753.55.2578.75

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.91.5EXT4 fscrypt0.01.01.3eCryptfs0.01.01.3LUKS dm-crypt0.01.21.4OpenBenchmarking.orgPercent, Fewer Is BetterFS-Mark 3.3CPU Usage (Summary) Monitor0.75521.51042.26563.02083.776

Compile Bench

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.92.5EXT4 fscrypt0.01.02.5eCryptfs0.01.02.5LUKS dm-crypt0.02.78.3OpenBenchmarking.orgPercent, Fewer Is BetterCompile Bench 0.6CPU Usage (Summary) Monitor3691215

Timed GCC Compilation

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.013.3100.0EXT4 fscrypt0.019.4100.0eCryptfs0.014.8100.0LUKS dm-crypt0.013.1100.0OpenBenchmarking.orgPercent, Fewer Is BetterTimed GCC Compilation 7.2CPU Usage (Summary) Monitor20406080100

NGINX Benchmark

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.02.33.6EXT4 fscrypt0.02.22.6eCryptfs0.02.22.6LUKS dm-crypt0.02.32.8OpenBenchmarking.orgPercent, Fewer Is BetterNGINX Benchmark 1.9.9CPU Usage (Summary) Monitor1.01812.03623.05434.07245.0905

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.56.7EXT4 fscrypt0.00.56.3eCryptfs0.00.76.2LUKS dm-crypt0.01.46.1OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor3691215

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.10.5EXT4 fscrypt0.01.01.5eCryptfs0.00.86.3LUKS dm-crypt0.01.41.9OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor3691215

Flexible IO Tester

Type: Random Write - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt6K12K18K24K30KSE +/- 450.92, N = 3SE +/- 1270.17, N = 3SE +/- 484.19, N = 32770024300147331. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.71.4EXT4 fscrypt0.01.02.5eCryptfs0.00.00.1LUKS dm-crypt0.00.92.4OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor1.3812.7624.1435.5246.905

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.71.5EXT4 fscrypt0.01.16.4eCryptfs0.00.10.7LUKS dm-crypt0.01.05.7OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor3691215

Flexible IO Tester

Type: Sequential Read - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt80K160K240K320K400KSE +/- 288.68, N = 3SE +/- 6557.44, N = 343400392000221001. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.81.4EXT4 fscrypt0.01.62.4eCryptfs0.00.65.1LUKS dm-crypt0.01.11.5OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor1.773.545.317.088.85

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.10.4EXT4 fscrypt0.01.26.0eCryptfs0.00.86.4LUKS dm-crypt0.01.65.8OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor3691215

Flexible IO Tester

Type: Sequential Write - IO Engine: POSIX 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: POSIX AIO - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryNo EncryptionEXT4 fscryptLUKS dm-crypt6K12K18K24K30KSE +/- 1091.38, N = 3SE +/- 953.94, N = 3SE +/- 218.58, N = 32966725400157671. (CC) gcc options: -rdynamic -std=gnu99 -ffast-math -include -O3 -U_FORTIFY_SOURCE -ll -lrt -laio -lz -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.71.4EXT4 fscrypt0.01.05.0eCryptfs0.00.00.2LUKS dm-crypt0.00.84.0OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor1.743.485.226.968.7

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.00.96.3EXT4 fscrypt0.01.06.1eCryptfs0.00.00.3LUKS dm-crypt0.00.91.2OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 3.1CPU Usage (Summary) Monitor3691215

OSBench

CPU Usage (Summary) Monitor

MinAvgMaxNo Encryption0.01.01.4EXT4 fscrypt0.01.21.4eCryptfs0.11.01.4LUKS dm-crypt0.01.21.8OpenBenchmarking.orgPercent, Fewer Is BetterOSBenchCPU Usage (Summary) Monitor1.01192.02383.03574.04765.0595

CPU Usage (Summary) Monitor

Phoronix Test Suite System Monitoring

OpenBenchmarking.orgPercentCPU Usage (Summary) MonitorPhoronix Test Suite System MonitoringNo EncryptionEXT4 fscrypteCryptfsLUKS dm-crypt20406080100Min: 0 / Avg: 6.21 / Max: 100Min: 0 / Avg: 8.72 / Max: 100Min: 0 / Avg: 7.16 / Max: 100Min: 0 / Avg: 6.17 / Max: 100


Phoronix Test Suite v10.8.5