Re: Multicore Support?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sami Liedes wrote:
> On Mon, Sep 08, 2008 at 10:19:41AM +0200, Mathieu SEGAUD wrote:
>>> I too would really like it if dm-crypt could use multiple cores.
>> well, I don't think it would change anything, disk writes are not
>> cpu-bound but io-bound. It could not increase write speed as what really
>> counts here, is time waiting for io-completion. As it is some 1000
>> magnitude longer than memory write times, which are some 1000 magnitude
>> longer than cpu register accesses, I do not think it would change
>> anything on throughput, ever.
> 
> That's not even nearly true.
> 
> For example, I have a three-disk raid system capable of something like
> 200 MB/sec throughput. Using dm-crypt practically limits it to around
> 80 MB/sec (on a Core 2 Quad) since that's the best one crypto thread
> can do. I can assure you I consistently see kcryptd taking 100% of one
> CPU when viewing the output of top. That's very much CPU bound.

You are right, especially configuration dm-crypt over MD (raid0,1,5)
and possibly exported as NFS is currently limited by one thread doing
encryption.

On the other side, current implementation is more effective on encrypted
notebooks for example (one user, second core runs other processes etc.)

See my response some time ago
http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/2681

Current status is (after some recent discussion):
- dm-crypt need mechanism to add more than one encryption thread
- # of threads should be configurable (maybe even runtime using dm message)
- implementation must support planned barrier support for device-mapper

(Also note, if there is any hw doing the encryption, more threads become
ineffective - it is limited by crypto hw capabilities, not by main processors
count.)

So already on TODO, but not with the highest priority:-)

Milan
--
mbroz@xxxxxxxxxx


---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux