Skip to contentSkip to conversation

DM-CRYPT: Scale to multiple CPUs

PATCH Tomasz Chmielewski 2 participants 2 messages May 31, 2010 – Jun 1, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Milan Broz
Quoted 7 lines · Andi Kleen

DM-CRYPT: Scale to multiple CPUs

Currently dm-crypt does all encryption work per dmcrypt mapping in a single workqueue. This does not scale well when multiple CPUs are submitting IO at a high rate. The single CPU running the single thread cannot keep up with the encryption and encrypted IO performance tanks.

Quoted 4 lines

This is true only if encryption run on the CPU synchronously.

(Usually it is high speed SSD or dm-crypt above striped RAID where underlying device throughput is higher than CPU encryption speed.)

Quite common to hit on a netbook/laptop with encrypted root these days, where storage can be relatively fast when compared to the speed of one of the cores of the (usually) multicore CPU.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 3 lines

Quite common to hit on a netbook/laptop with encrypted root these days, where storage can be relatively fast when compared to the speed of one of the cores of the (usually) multicore CPU.

My patch will help as long as the IO is submitted by multiple CPUs. If that is not happening you would need pcrypt.

-Andi

Signature · 1 line
[email protected] -- Speaking for myself only.