Ubuntu 18.04 Disk Encryption Benchmarks

Tests for a future article on Phoronix.

HTML result view exported from: https://openbenchmarking.org/result/1802099-FO-DISKENCRY99.

Ubuntu 18.04 Disk Encryption BenchmarksProcessorMotherboardChipsetMemoryDiskGraphicsAudioNetworkOSKernelDesktopDisplay DriverCompilerFile-SystemScreen ResolutionStock - No EncryptionHome EncryptionFull Disk EncryptionIntel Core i7-5600U @ 3.20GHz (2 Cores / 4 Threads)LENOVO 20BSCTO1WW (N14ET25W 1.03 BIOS)Intel Broadwell-U-OPI8192MB128GB SAMSUNG MZNTE128Intel HD 5500 (950MHz)Intel Broadwell-U AudioIntel Connection + Intel Wireless 7265Ubuntu 18.044.13.0-32-generic (x86_64)GNOME Shell 3.26.2modesetting 1.19.6GCC 7.2.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-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- Stock - No Encryption: CFQ / data=ordered,errors=remount-ro,relatime,rw- Home Encryption: CFQ / ecryptfs_cipher=aes,ecryptfs_fnek_sig=9a6afd2d89255fc9,ecryptfs_key_bytes=16,ecryptfs_sig=6effcf993faa1ca2,ecryptfs_unlink_sigs,nodev,nosuid,relatime,rw - Full Disk Encryption: CFQ / data=ordered,errors=remount-ro,relatime,rwProcessor Details- Scaling Governor: intel_pstate powersavePython Details- Python 2.7.14+ + Python 3.6.4Security Details- KPTI Protection

Ubuntu 18.04 Disk Encryption Benchmarksbuild-linux-kernel: Time To Compilecompilebench: Initial Createcompilebench: Compilefio: Rand Read - Libaio - No - Yes - 4KB - Default Test Directoryfio: Rand Write - Libaio - No - Yes - 4KB - Default Test Directoryfio: Seq Read - Libaio - No - Yes - 4KB - Default Test Directoryfio: Seq Write - Libaio - 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 Sizebork: File Encryption Timepostmark: Disk Transaction Performancesqlite: Default Test Directorypgbench: Buffer Test - Normal Load - Read Writeunpack-linux: linux-4.15.tar.xzStock - No EncryptionHome EncryptionFull Disk Encryption414.06234.80305.56362.08114.95456.22121.7539.8064.6734.5314.99532093.191578.637.81421.5183.05150.8034.4759.2334.2727.511579108.481394.609.57422.41230.87257.22360.64115.13449.21122.4136.8369.8736.0320.21514593.361552.958.41OpenBenchmarking.org

Timed Linux Kernel Compilation

Time To Compile

OpenBenchmarking.orgSeconds, Fewer Is BetterTimed Linux Kernel Compilation 4.13Time To CompileStock - No EncryptionHome EncryptionFull Disk Encryption90180270360450SE +/- 0.08, N = 3SE +/- 0.74, N = 3SE +/- 0.41, N = 3414.06421.51422.41

Timed Linux Kernel Compilation

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.096.8100.0Home Encryption0.096.2100.0Full Disk Encryption1.597.2100.0OpenBenchmarking.orgPercent, Fewer Is BetterTimed Linux Kernel Compilation 4.13CPU Usage (Summary) Monitor20406080100

Compile Bench

Test: Initial Create

OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: Initial CreateStock - No EncryptionHome EncryptionFull Disk Encryption50100150200250SE +/- 2.09, N = 3SE +/- 2.19, N = 3SE +/- 0.03, N = 3234.8083.05230.87

Compile Bench

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption1.533.265.2Home Encryption0.034.659.0Full Disk Encryption1.544.776.8OpenBenchmarking.orgPercent, Fewer Is BetterCompile Bench 0.6CPU Usage (Summary) Monitor20406080100

Compile Bench

Test: Compile

OpenBenchmarking.orgMB/s, More Is BetterCompile Bench 0.6Test: CompileStock - No EncryptionHome EncryptionFull Disk Encryption70140210280350SE +/- 0.66, N = 3SE +/- 0.44, N = 3SE +/- 16.43, N = 3305.56150.80257.22

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 2.1.13Type: Random Read - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption80160240320400SE +/- 1.84, N = 3SE +/- 0.31, N = 3362.08360.641. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 2.1.13Type: Random Read - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption20K40K60K80K100KSE +/- 461.01, N = 3SE +/- 77.95, N = 390516901571. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.012.950.3Home Encryption0.017.148.2Full Disk Encryption1.032.046.2OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 2.1.13CPU Usage (Summary) Monitor1428425670

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 2.1.13Type: Random Write - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption306090120150SE +/- 0.19, N = 3SE +/- 0.13, N = 3114.95115.131. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 2.1.13Type: Random Write - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption6K12K18K24K30KSE +/- 46.61, N = 3SE +/- 33.34, N = 328733287791. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.07.210.9Home Encryption0.00.41.5Full Disk Encryption1.021.529.4OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 2.1.13CPU Usage (Summary) Monitor918273645

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 2.1.13Type: Sequential Read - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption100200300400500SE +/- 0.10, N = 3SE +/- 0.56, N = 3456.22449.211. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 2.1.13Type: Sequential Read - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption20K40K60K80K100KSE +/- 24.83, N = 3SE +/- 138.78, N = 31140511122981. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.010.116.3Home Encryption0.00.73.5Full Disk Encryption1.036.349.0OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 2.1.13CPU Usage (Summary) Monitor1428425670

Flexible IO Tester

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

OpenBenchmarking.orgMB/s, More Is BetterFlexible IO Tester 2.1.13Type: Sequential Write - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption306090120150SE +/- 0.38, N = 3SE +/- 0.11, N = 3121.75122.411. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

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

OpenBenchmarking.orgIOPS, More Is BetterFlexible IO Tester 2.1.13Type: Sequential Write - IO Engine: Libaio - Buffered: No - Direct: Yes - Block Size: 4KB - Disk Target: Default Test DirectoryStock - No EncryptionFull Disk Encryption7K14K21K28K35KSE +/- 95.39, N = 3SE +/- 28.42, N = 330435305981. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.07.324.4Home Encryption0.01.04.5Full Disk Encryption1.020.228.7OpenBenchmarking.orgPercent, Fewer Is BetterFlexible IO Tester 2.1.13CPU Usage (Summary) Monitor918273645

FS-Mark

Test: 1000 Files, 1MB Size

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 1000 Files, 1MB SizeStock - No EncryptionHome EncryptionFull Disk Encryption918273645SE +/- 0.12, N = 3SE +/- 0.07, N = 3SE +/- 0.07, N = 339.8034.4736.831. (CC) gcc options: -static

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.521.624.5Home Encryption0.523.024.4Full Disk Encryption2.525.328.2OpenBenchmarking.orgPercent, Fewer Is BetterFS-Mark 3.3CPU Usage (Summary) Monitor918273645

FS-Mark

Test: 5000 Files, 1MB Size, 4 Threads

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 5000 Files, 1MB Size, 4 ThreadsStock - No EncryptionHome EncryptionFull Disk Encryption1632486480SE +/- 2.07, N = 3SE +/- 1.63, N = 3SE +/- 0.13, N = 364.6759.2369.871. (CC) gcc options: -static

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.025.260.2Home Encryption0.034.169.7Full Disk Encryption2.534.048.0OpenBenchmarking.orgPercent, Fewer Is BetterFS-Mark 3.3CPU Usage (Summary) Monitor20406080100

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 SizeStock - No EncryptionHome EncryptionFull Disk Encryption816243240SE +/- 1.50, N = 3SE +/- 0.07, N = 3SE +/- 0.27, N = 334.5334.2736.031. (CC) gcc options: -static

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.022.925.3Home Encryption12.023.326.1Full Disk Encryption1.525.227.1OpenBenchmarking.orgPercent, Fewer Is BetterFS-Mark 3.3CPU Usage (Summary) Monitor816243240

Bork File Encrypter

File Encryption Time

OpenBenchmarking.orgSeconds, Fewer Is BetterBork File Encrypter 1.4File Encryption TimeStock - No EncryptionHome EncryptionFull Disk Encryption612182430SE +/- 3.06, N = 3SE +/- 3.26, N = 3SE +/- 1.69, N = 314.9927.5120.21

Bork File Encrypter

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.038.373.7Home Encryption1.532.967.2Full Disk Encryption0.545.075.0OpenBenchmarking.orgPercent, Fewer Is BetterBork File Encrypter 1.4CPU Usage (Summary) Monitor20406080100

PostMark

Disk Transaction Performance

OpenBenchmarking.orgTPS, More Is BetterPostMark 1.51Disk Transaction PerformanceStock - No EncryptionHome EncryptionFull Disk Encryption11002200330044005500SE +/- 65.24, N = 3SE +/- 3.33, N = 3SE +/- 144.67, N = 35320157951451. (CC) gcc options: -O3

PostMark

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.523.526.6Home Encryption0.024.727.5Full Disk Encryption1.024.837.7OpenBenchmarking.orgPercent, Fewer Is BetterPostMark 1.51CPU Usage (Summary) Monitor1122334455

SQLite

Test Target: Default Test Directory

OpenBenchmarking.orgSeconds, Fewer Is BetterSQLite 3.8.10.2Test Target: Default Test DirectoryStock - No EncryptionHome EncryptionFull Disk Encryption20406080100SE +/- 0.35, N = 3SE +/- 0.12, N = 3SE +/- 0.43, N = 393.19108.4893.361. (CC) gcc options: -O2 -ldl -lpthread

SQLite

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.019.125.4Home Encryption0.019.124.9Full Disk Encryption1.024.226.8OpenBenchmarking.orgPercent, Fewer Is BetterSQLite 3.8.10.2CPU Usage (Summary) Monitor816243240

PostgreSQL pgbench

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

OpenBenchmarking.orgTPS, More Is BetterPostgreSQL pgbench 10.0Scaling: Buffer Test - Test: Normal Load - Mode: Read WriteStock - No EncryptionHome EncryptionFull Disk Encryption30060090012001500SE +/- 28.63, N = 3SE +/- 23.39, N = 3SE +/- 12.77, N = 31578.631394.601552.951. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -fPIC -lpgcommon -lpgport -lpthread -lrt -lcrypt -ldl -lm

PostgreSQL pgbench

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.035.158.4Home Encryption0.032.749.0Full Disk Encryption0.035.050.0OpenBenchmarking.orgPercent, Fewer Is BetterPostgreSQL pgbench 10.0CPU Usage (Summary) Monitor1632486480

Unpacking The Linux Kernel

linux-4.15.tar.xz

OpenBenchmarking.orgSeconds, Fewer Is BetterUnpacking The Linux Kernellinux-4.15.tar.xzStock - No EncryptionHome EncryptionFull Disk Encryption3691215SE +/- 0.21, N = 4SE +/- 0.81, N = 4SE +/- 0.46, N = 47.819.578.41

Unpacking The Linux Kernel

CPU Usage (Summary) Monitor

MinAvgMaxStock - No Encryption0.027.937.4Home Encryption0.042.570.5Full Disk Encryption0.530.749.8OpenBenchmarking.orgPercent, Fewer Is BetterUnpacking The Linux KernelCPU Usage (Summary) Monitor20406080100

CPU Usage (Summary) Monitor

Phoronix Test Suite System Monitoring

OpenBenchmarking.orgPercentCPU Usage (Summary) MonitorPhoronix Test Suite System MonitoringStock - No EncryptionHome EncryptionFull Disk Encryption20406080100Min: 0 / Avg: 44.72 / Max: 100Min: 0 / Avg: 45.04 / Max: 100Min: 0 / Avg: 48.96 / Max: 100


Phoronix Test Suite v10.8.4