All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] ecryptfs: Migrate to ablkcipher API
@ 2012-06-13 12:14 Colin King
  2012-06-13 12:14 ` [PATCH 1/1] " Colin King
  2012-06-13 15:54 ` [PATCH 0/1] " Tyler Hicks
  0 siblings, 2 replies; 17+ messages in thread
From: Colin King @ 2012-06-13 12:14 UTC (permalink / raw)
  To: tyhicks; +Cc: ecryptfs, Thieu Le

From: Colin Ian King <colin.king@canonical.com>

This is a forward port of Thieu Le's patch from 2.6.39 to migrate
to using the ablkcipher API for eCryptfs.

Performance Improvements:

I've instrumented this patch to measure TSC ticks per 4K encrypt
and decrypt operations to see how this patch compares to the original
code using the default AES generic crypto engine as well as the
new Intel AES-NI instruction capable crypto engine on an Ivybridge
i7-3770.

Patched:                TSC ticks for 4K        TSC ticks per byte
  AES-Generic Read:     5843.5                  1.42
  AES-Generic Write:    19295.8                 4.71

  AES-NI Read:          5677.0                  1.39
  AES-NI Write:         19257.9                 4.70

Unpatched:
  AES-Generic Read:     92861.5                 22.67
  AES-Generic Write:    93642                   22.61

  AES-NI Read:          91610.2                 22.37
  AES-NI Write:         93659.2                 22.87

..so at the crypto engine stage we see some considerable speed improvement
with the patch.

I've also run some simple benchmarking tests comparing this patch with
the un-patched kernel on a variety of machines (Ivybridge, Sandybridge,
Atom) and drives (HDD, SSD) to see how well it performs.  A LibreOffice
speadsheet of the test result data and a write-up are available:

http://kernel.ubuntu.com/~cking/ecryptfs-async-testing/async-patch-results-1.ods
http://kernel.ubuntu.com/~cking/ecryptfs-async-testing/async-patch-summary.txt

Soak Testing:
 * many kernel builds using -j 64, on HDD and SSD
 * eCryptfs tests with lower filesystems: ext2, ext3, ext4, xfs, btrfs
 * exercised on a 4 CPU (+hyperthreaded) build machine
 * bonnie++ and tiobench tests 

Colin Ian King (1):
  ecryptfs: Migrate to ablkcipher API

 fs/ecryptfs/crypto.c          |  678 +++++++++++++++++++++++++++++++----------
 fs/ecryptfs/ecryptfs_kernel.h |   38 ++-
 fs/ecryptfs/main.c            |   10 +
 fs/ecryptfs/mmap.c            |   87 +++++-
 4 files changed, 636 insertions(+), 177 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2012-12-19 11:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 12:14 [PATCH 0/1] ecryptfs: Migrate to ablkcipher API Colin King
2012-06-13 12:14 ` [PATCH 1/1] " Colin King
2012-06-13 16:11   ` Tyler Hicks
     [not found]     ` <CAEcckGpMt1O+2syGbCQYC5ERCmXwCCvYjTYrHEeqZtQsA-qLLg@mail.gmail.com>
2012-06-13 19:04       ` Thieu Le
2012-06-13 21:17         ` Tyler Hicks
2012-06-13 22:03           ` Thieu Le
2012-06-13 22:20             ` Tyler Hicks
2012-06-13 22:25               ` Thieu Le
     [not found]               ` <539626322.30300@eyou.net>
2012-06-16 11:12                 ` dragonylffly
2012-06-18 17:17                   ` Thieu Le
2012-06-19  3:52                     ` Tyler Hicks
     [not found]                     ` <540077879.03766@eyou.net>
2012-06-19  7:06                       ` Li Wang
     [not found]                   ` <540039783.18266@eyou.net>
2012-06-19  3:19                     ` Li Wang
2012-06-19  3:47                       ` 'Tyler Hicks'
2012-07-21  1:58   ` Tyler Hicks
2012-12-19 11:44   ` Zeev Zilberman
2012-06-13 15:54 ` [PATCH 0/1] " Tyler Hicks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.