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&sro.

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 MonitoringFull Disk EncryptionHome EncryptionStock - No Encryption20406080100Min: 0 / Avg: 48.96 / Max: 100Min: 0 / Avg: 45.04 / Max: 100Min: 0 / Avg: 44.72 / Max: 100

Unpacking The Linux Kernel

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption0.530.749.8Home Encryption0.042.570.5Stock - No Encryption0.027.937.4OpenBenchmarking.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.xzFull Disk EncryptionHome EncryptionStock - No Encryption3691215SE +/- 0.46, N = 4SE +/- 0.81, N = 4SE +/- 0.21, N = 48.419.577.81

PostgreSQL pgbench

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption0.035.050.0Home Encryption0.032.749.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 WriteFull Disk EncryptionHome EncryptionStock - No Encryption30060090012001500SE +/- 12.77, N = 3SE +/- 23.39, N = 3SE +/- 28.63, N = 31552.951394.601578.631. (CC) gcc options: -fno-strict-aliasing -fwrapv -O2 -fPIC -lpgcommon -lpgport -lpthread -lrt -lcrypt -ldl -lm

SQLite

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption1.024.226.8Home Encryption0.019.124.9Stock - No Encryption0.019.125.4OpenBenchmarking.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 DirectoryFull Disk EncryptionHome EncryptionStock - No Encryption20406080100SE +/- 0.43, N = 3SE +/- 0.12, N = 3SE +/- 0.35, N = 393.36108.4893.191. (CC) gcc options: -O2 -ldl -lpthread

PostMark

CPU Usage (Summary) Monitor

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

PostMark

Disk Transaction Performance

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

Bork File Encrypter

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption0.545.075.0Home Encryption1.532.967.2Stock - No Encryption0.038.373.7OpenBenchmarking.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 TimeFull Disk EncryptionHome EncryptionStock - No Encryption612182430SE +/- 1.69, N = 3SE +/- 3.26, N = 3SE +/- 3.06, N = 320.2127.5114.99

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption1.525.227.1Home Encryption12.023.326.1Stock - No Encryption0.022.925.3OpenBenchmarking.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 EncryptionHome EncryptionStock - No Encryption816243240SE +/- 0.27, N = 3SE +/- 0.07, N = 3SE +/- 1.50, N = 336.0334.2734.531. (CC) gcc options: -static

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption2.534.048.0Home Encryption0.034.169.7Stock - No Encryption0.025.260.2OpenBenchmarking.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 EncryptionHome EncryptionStock - No Encryption1632486480SE +/- 0.13, N = 3SE +/- 1.63, N = 3SE +/- 2.07, N = 369.8759.2364.671. (CC) gcc options: -static

FS-Mark

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption2.525.328.2Home Encryption0.523.024.4Stock - No Encryption0.521.624.5OpenBenchmarking.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 SizeFull Disk EncryptionHome EncryptionStock - No Encryption918273645SE +/- 0.07, N = 3SE +/- 0.07, N = 3SE +/- 0.12, N = 336.8334.4739.801. (CC) gcc options: -static

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption1.020.228.7Home Encryption0.01.04.5Stock - No Encryption0.07.324.4OpenBenchmarking.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

MinAvgMaxFull Disk Encryption1.036.349.0Home Encryption0.00.73.5Stock - No Encryption0.010.116.3OpenBenchmarking.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 DirectoryFull Disk EncryptionStock - No Encryption20K40K60K80K100KSE +/- 138.78, N = 3SE +/- 24.83, N = 31122981140511. (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 DirectoryFull Disk EncryptionStock - No Encryption100200300400500SE +/- 0.56, N = 3SE +/- 0.10, N = 3449.21456.221. (CC) gcc options: -rdynamic -std=gnu99 -O3 -ffast-math -include -lrt -laio -lm -lpthread -ldl

Flexible IO Tester

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption1.021.529.4Home Encryption0.00.41.5Stock - No Encryption0.07.210.9OpenBenchmarking.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

MinAvgMaxFull Disk Encryption1.032.046.2Home Encryption0.017.148.2Stock - No Encryption0.012.950.3OpenBenchmarking.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 DirectoryFull Disk EncryptionStock - No Encryption20K40K60K80K100KSE +/- 77.95, N = 3SE +/- 461.01, N = 390157905161. (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 DirectoryFull Disk EncryptionStock - No Encryption80160240320400SE +/- 0.31, N = 3SE +/- 1.84, N = 3360.64362.081. (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: CompileFull Disk EncryptionHome EncryptionStock - No Encryption70140210280350SE +/- 16.43, N = 3SE +/- 0.44, N = 3SE +/- 0.66, N = 3257.22150.80305.56

Compile Bench

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption1.544.776.8Home Encryption0.034.659.0Stock - No Encryption1.533.265.2OpenBenchmarking.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 CreateFull Disk EncryptionHome EncryptionStock - No Encryption50100150200250SE +/- 0.03, N = 3SE +/- 2.19, N = 3SE +/- 2.09, N = 3230.8783.05234.80

Timed Linux Kernel Compilation

CPU Usage (Summary) Monitor

MinAvgMaxFull Disk Encryption1.597.2100.0Home Encryption0.096.2100.0Stock - No Encryption0.096.8100.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 CompileFull Disk EncryptionHome EncryptionStock - No Encryption90180270360450SE +/- 0.41, N = 3SE +/- 0.74, N = 3SE +/- 0.08, N = 3422.41421.51414.06


Phoronix Test Suite v10.8.4