AES-NI Performance: eCryptfs vs. dmcrypt Ubuntu 11.10 benchmarking of Intel AES-NI performance of the encrypted home feature (using eCryptfs) against the encrypted LVM (using dmcrypt) feature. Testing for Canonical and a future Phoronix.com article by Michael Larabel. Encrypted Home (eCryptfs): Stock: Processor: Intel Core i5-2520M @ 2.50GHz (4 Cores), Motherboard: HP 161C, Chipset: Intel 2nd Generation Core Family, Memory: 4096MB, Disk: 160GB INTEL SSDSA2M160, Graphics: Intel 2nd Generation Core Family IGP, Audio: IDT 92HD81B1X5, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205 OS: Ubuntu 11.10, Kernel: 3.0.0-12-generic (x86_64), Desktop: Unity 4.22.0, Display Server: X Server 1.10.4, Display Driver: intel 2.15.901, Compiler: GCC 4.6.1, File-System: ext4, Screen Resolution: 1600x900 Encrypted Home (eCryptfs): AES-NI Intel: Processor: Intel Core i5-2520M @ 2.50GHz (4 Cores), Motherboard: HP 161C, Chipset: Intel 2nd Generation Core Family, Memory: 4096MB, Disk: 160GB INTEL SSDSA2M160, Graphics: Intel 2nd Generation Core Family IGP, Audio: IDT 92HD81B1X5, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205 OS: Ubuntu 11.10, Kernel: 3.0.0-12-generic (x86_64), Desktop: Unity 4.22.0, Display Server: X Server 1.10.4, Display Driver: intel 2.15.901, Compiler: GCC 4.6.1, File-System: ext4, Screen Resolution: 1600x900 Encrypted LVM (dmcrypt): Stock: Processor: Intel Core i5-2520M @ 2.50GHz (4 Cores), Motherboard: HP 161C, Chipset: Intel 2nd Generation Core Family, Memory: 4096MB, Disk: 160GB INTEL SSDSA2M160, Graphics: Intel 2nd Generation Core Family IGP, Audio: IDT 92HD81B1X5, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205 OS: Ubuntu 11.10, Kernel: 3.0.0-12-generic (x86_64), Desktop: Unity 4.22.0, Display Server: X Server 1.10.4, Display Driver: intel 2.15.901, Compiler: GCC 4.6.1, File-System: ext4, Screen Resolution: 1600x900 Encrypted LVM (dmcrypt): AES-NI Intel: Processor: Intel Core i5-2520M @ 2.50GHz (4 Cores), Motherboard: HP 161C, Chipset: Intel 2nd Generation Core Family, Memory: 4096MB, Disk: 160GB INTEL SSDSA2M160, Graphics: Intel 2nd Generation Core Family IGP, Audio: IDT 92HD81B1X5, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205 OS: Ubuntu 11.10, Kernel: 3.0.0-12-generic (x86_64), Desktop: Unity 4.22.0, Display Server: X Server 1.10.4, Display Driver: intel 2.15.901, Compiler: GCC 4.6.1, File-System: ext4, Screen Resolution: 1600x900 Dbench 4.0 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 0.5 AVG: 57.9 MAX: 72.1 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 2.2 AVG: 66.1 MAX: 92.3 Encrypted LVM (dmcrypt): Stock .......... MIN: 0.3 AVG: 54.1 MAX: 79.6 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0.2 AVG: 52.7 MAX: 65.9 Dbench 4.0 Client Count: 12 MB/s > Higher Is Better Encrypted Home (eCryptfs): Stock ........ 205.74 |=========== Encrypted Home (eCryptfs): AES-NI Intel . 249.75 |============== Encrypted LVM (dmcrypt): Stock .......... 429.19 |======================= Encrypted LVM (dmcrypt): AES-NI Intel ... 533.73 |============================= Threaded I/O Tester 0.3.3 Test: Random Write - Size Per Thread: 64MB - Thread Count: 8 MB/s > Higher Is Better Encrypted Home (eCryptfs): Stock ........ 36.62 |============ Encrypted Home (eCryptfs): AES-NI Intel . 37.05 |============ Encrypted LVM (dmcrypt): Stock .......... 89.98 |============================== Encrypted LVM (dmcrypt): AES-NI Intel ... 90.15 |============================== SQLite 3.7.3 Test Target: Default Test Directory Seconds < Lower Is Better Encrypted Home (eCryptfs): Stock ........ 35.78 |====================== Encrypted Home (eCryptfs): AES-NI Intel . 38.41 |======================== Encrypted LVM (dmcrypt): Stock .......... 47.88 |============================== Encrypted LVM (dmcrypt): AES-NI Intel ... 31.40 |==================== FS-Mark 3.3 Test: 1000 Files, 1MB Size Files/s > Higher Is Better Encrypted Home (eCryptfs): Stock ........ 41.73 |==================== Encrypted Home (eCryptfs): AES-NI Intel . 40.53 |==================== Encrypted LVM (dmcrypt): Stock .......... 51.53 |========================= Encrypted LVM (dmcrypt): AES-NI Intel ... 61.43 |============================== Flexible IO Tester 1.57 Test: Intel IOMeter File Server Access Pattern Seconds (Run Time) < Lower Is Better Encrypted Home (eCryptfs): Stock ........ 123.41 |========================= Encrypted Home (eCryptfs): AES-NI Intel . 144.84 |============================= Encrypted LVM (dmcrypt): Stock .......... 105.66 |===================== Encrypted LVM (dmcrypt): AES-NI Intel ... 105.31 |===================== IOzone 3.347 Record Size: 64Kb - File Size: 8GB - Disk Test: Write Performance MB/s > Higher Is Better Encrypted Home (eCryptfs): Stock ........ 102.79 |============================ Encrypted Home (eCryptfs): AES-NI Intel . 99.18 |=========================== Encrypted LVM (dmcrypt): Stock .......... 106.14 |============================= Encrypted LVM (dmcrypt): AES-NI Intel ... 103.95 |============================ IOzone 3.347 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 0 AVG: 41 MAX: 67 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 0 AVG: 39 MAX: 73 Encrypted LVM (dmcrypt): Stock .......... MIN: 0 AVG: 56 MAX: 100 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0 AVG: 26 MAX: 100 Threaded I/O Tester 0.3.3 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 0 AVG: 44 MAX: 95 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 0 AVG: 40 MAX: 77 Encrypted LVM (dmcrypt): Stock .......... MIN: 0 AVG: 58 MAX: 100 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0 AVG: 49 MAX: 100 Flexible IO Tester 1.57 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 1 AVG: 43 MAX: 67 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 3 AVG: 42 MAX: 78 Encrypted LVM (dmcrypt): Stock .......... MIN: 2 AVG: 42 MAX: 100 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0 AVG: 21 MAX: 35 FS-Mark 3.3 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 0.5 AVG: 15.1 MAX: 17.3 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 0.0 AVG: 15.6 MAX: 21.4 Encrypted LVM (dmcrypt): Stock .......... MIN: 0.0 AVG: 18.8 MAX: 28.3 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0.0 AVG: 15.3 MAX: 22.3 PostMark 1.51 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 21.6 AVG: 25.0 MAX: 26.5 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 14.1 AVG: 25.0 MAX: 30.9 Encrypted LVM (dmcrypt): Stock .......... MIN: 0.3 AVG: 20.6 MAX: 33.8 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0.0 AVG: 19.1 MAX: 29.8 SQLite 3.7.3 CPU Usage Monitor Percent < Lower Is Better Encrypted Home (eCryptfs): Stock ........ MIN: 3.7 AVG: 17.1 MAX: 40.0 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 0.0 AVG: 18.9 MAX: 37.1 Encrypted LVM (dmcrypt): Stock .......... MIN: 0.5 AVG: 20.7 MAX: 23.7 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0.0 AVG: 18.9 MAX: 35.1 CPU Usage Monitor Phoronix Test Suite System Monitoring Percent Encrypted Home (eCryptfs): Stock ........ MIN: 0 AVG: 47 MAX: 95 Encrypted Home (eCryptfs): AES-NI Intel . MIN: 0 AVG: 52 MAX: 92 Encrypted LVM (dmcrypt): Stock .......... MIN: 0 AVG: 50 MAX: 100 Encrypted LVM (dmcrypt): AES-NI Intel ... MIN: 0 AVG: 42 MAX: 100 PostMark 1.51 Disk Transaction Performance TPS > Higher Is Better Encrypted Home (eCryptfs): Stock ........ 694 |===== Encrypted Home (eCryptfs): AES-NI Intel . 555 |==== Encrypted LVM (dmcrypt): Stock .......... 4166 |============================== Encrypted LVM (dmcrypt): AES-NI Intel ... 4249 |===============================