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&grr&sor.

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 Benchmarksunpack-linux: linux-4.15.tar.xzpgbench: Buffer Test - Normal Load - Read Writesqlite: Default Test Directorypostmark: Disk Transaction Performancebork: File Encryption Timefs-mark: 4000 Files, 32 Sub Dirs, 1MB Sizefs-mark: 5000 Files, 1MB Size, 4 Threadsfs-mark: 1000 Files, 1MB Sizefio: Seq Write - Libaio - No - Yes - 4KB - Default Test Directoryfio: Seq Read - Libaio - No - Yes - 4KB - Default Test Directoryfio: Rand Write - Libaio - No - Yes - 4KB - Default Test Directoryfio: Rand Read - Libaio - No - Yes - 4KB - Default Test Directorycompilebench: Compilecompilebench: Initial Createbuild-linux-kernel: Time To CompileStock - No EncryptionHome EncryptionFull Disk Encryption7.811578.6393.19532014.9934.5364.6739.80121.75456.22114.95362.08305.56234.80414.069.571394.60108.48157927.5134.2759.2334.47150.8083.05421.518.411552.9593.36514520.2136.0369.8736.83122.41449.21115.13360.64257.22230.87422.41OpenBenchmarking.org

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

Unpacking The Linux Kernel

CPU Usage (Summary) Monitor

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

Unpacking The Linux Kernel

linux-4.15.tar.xz

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

PostgreSQL pgbench

CPU Usage (Summary) Monitor

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

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 EncryptionFull Disk EncryptionHome Encryption30060090012001500SE +/- 28.63, N = 3SE +/- 12.77, N = 3SE +/- 23.39, N = 31578.631552.951394.601. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -fPIC -lpgcommon -lpgport -lpthread -lrt -lcrypt -ldl -lm

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

SQLite

Test Target: Default Test Directory

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

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

PostMark

Disk Transaction Performance

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

Bork File Encrypter

CPU Usage (Summary) Monitor

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

Bork File Encrypter

File Encryption Time

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

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

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

FS-Mark

CPU Usage (Summary) Monitor

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

FS-Mark

Test: 5000 Files, 1MB Size, 4 Threads

OpenBenchmarking.orgFiles/s, More Is BetterFS-Mark 3.3Test: 5000 Files, 1MB Size, 4 ThreadsFull Disk EncryptionStock - No EncryptionHome Encryption1632486480SE +/- 0.13, N = 3SE +/- 2.07, N = 3SE +/- 1.63, N = 369.8764.6759.231. (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: 1000 Files, 1MB Size

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

Flexible IO Tester

CPU Usage (Summary) Monitor

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

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 DirectoryFull Disk EncryptionStock - No Encryption7K14K21K28K35KSE +/- 28.42, N = 3SE +/- 95.39, N = 330598304351. (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.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 DirectoryFull Disk EncryptionStock - No Encryption306090120150SE +/- 0.11, N = 3SE +/- 0.38, N = 3122.41121.751. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

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

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

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

CPU Usage (Summary) Monitor

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

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 DirectoryFull Disk EncryptionStock - No Encryption6K12K18K24K30KSE +/- 33.34, N = 3SE +/- 46.61, N = 328779287331. (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.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 DirectoryFull Disk EncryptionStock - No Encryption306090120150SE +/- 0.13, N = 3SE +/- 0.19, N = 3115.13114.951. (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 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

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

Compile Bench

Test: Compile

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

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: Initial Create

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

Timed Linux Kernel Compilation

CPU Usage (Summary) Monitor

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

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


Phoronix Test Suite v10.8.4