public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dm-crypt: Performance Regression 2.6.37 -> 2.6.38-rc8
@ 2011-03-08 16:45 Mario 'BitKoenig' Holbe
  2011-03-08 17:35 ` [dm-crypt] " Milan Broz
  2011-03-10 16:57 ` Andi Kleen
  0 siblings, 2 replies; 12+ messages in thread
From: Mario 'BitKoenig' Holbe @ 2011-03-08 16:45 UTC (permalink / raw)
  To: dm-crypt; +Cc: linux-kernel, Andi Kleen, Milan Broz, Alasdair G Kergon

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Hello,

dm-crypt in 2.6.38 changed to per-CPU workqueues to increase it's
performance by parallelizing encryption to multiple CPUs.
This modification seems to cause (massive) performance drops for
multiple parallel dm-crypt instances...

I'm running a 4-disk RAID0 on top of 4 independent dm-crypt(aes-xts)
devices on a Core2Quad 3GHz. This setup did overcome the single-CPU
limitation from previous versions and utilized all 4 cores for
encryption.
The throughput of this array drops from 282MB/s sustained read (dd,
single process) with 2.6.37.3 down to 133MB/s with 2.6.38-rc8 (which
nearly equals to single-disk throughput of 128MB/s - just in case this
matters).

This indicates way less parallelization now with 2.6.38 than before.
I don't think this was intentional :)

The dm-crypt per-CPU workqueues got introduced in 2.6.38 with
	c029772125594e31eb1a5ad9e0913724ed9891f2
Reverting dm-crypt.c to the version before this commit re-gains the same
throughput as with 2.6.37.


Submitters/Signers of c029772125594e31eb1a5ad9e0913724ed9891f2 CC:ed.


Thanks for your work & regards
   Mario
-- 
There are two major products that come from Berkeley: LSD and UNIX.
We don't believe this to be a coincidence.    -- Jeremy S. Anderson

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 482 bytes --]

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

end of thread, other threads:[~2011-03-12  1:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-08 16:45 dm-crypt: Performance Regression 2.6.37 -> 2.6.38-rc8 Mario 'BitKoenig' Holbe
2011-03-08 17:35 ` [dm-crypt] " Milan Broz
2011-03-08 19:23   ` Mario 'BitKoenig' Holbe
2011-03-08 20:07     ` Milan Broz
2011-03-08 20:17       ` Mario 'BitKoenig' Holbe
2011-03-10 16:57 ` Andi Kleen
2011-03-10 17:54   ` Mario 'BitKoenig' Holbe
2011-03-11  1:18     ` Andi Kleen
2011-03-11 18:03       ` Mario 'BitKoenig' Holbe
2011-03-11 18:29         ` Milan Broz
2011-03-11 18:36           ` Andi Kleen
2011-03-12  1:05             ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox