Re: [PATCH] DM-CRYPT: Scale to multiple CPUs

From: Tomasz Chmielewski
Date: Mon May 31 2010 - 14:57:18 EST


Milan Broz wrote:

On 05/31/2010 06:04 PM, Andi Kleen wrote:
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.

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.


--
Tomasz Chmielewski
http://wpkg.org

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/