RE: [PATCH][RFC] crypto: tcrypt - Ahash tests changed to run in parallel.

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

 




> -----Original Message-----
> From: Jussi Kivilinna [mailto:jussi.kivilinna@xxxxxxxx]
> Sent: Saturday, January 05, 2013 9:56 PM
> To: Garg Vakul-B16394
> Cc: linux-crypto@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH][RFC] crypto: tcrypt - Ahash tests changed to run in
> parallel.
> 
> Quoting Vakul Garg <vakul@xxxxxxxxxxxxx>:
> 
> > This allows to test & run multiple parallel crypto ahash contexts.
> > Each of the test vector under the ahash speed test template is started
> > under a separate kthread.
> 
> Why you want to do this? 
 
In its current form, we cannot test multiple simultaneous crypto sessions with tcrypt.
Crypto offload hardware accelerators are usually capable of handling multiple session in parallel.
This patch allows to load such hardware.
Even if offload accelerators are not present, multiple crypto sessions can execute in parallel on Multicore.

> Does not this change make tcrypt give
> inconsistent results?
> 

Based on kernel scheduling of threads, this change can make tcrypt give varying results in different runs.
For consistent results, we can use existing synchronous mode crypto sessions.



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


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux