Re: [RFC] [PATCH 2/5] pcrypt: Add pcrypt crypto parallelization wrapper

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

 



On Fri, Jun 19, 2009 at 08:29:33PM +0800, Herbert Xu wrote:
> On Mon, Jun 08, 2009 at 09:10:00AM +0200, Steffen Klassert wrote:
> >
> > +config CRYPTO_PCRYPT
> > +	tristate "Parallel crypto engine (EXPERIMENTAL)"
> > +	depends on USE_GENERIC_SMP_HELPERS && EXPERIMENTAL
> > +	select CRYPTO_MANAGER
> > +	select CRYPTO_PCRYPT_CORE
> > +	help
> > +	  This converts an arbitrary crypto algorithm into a parallel
> > +	  algorithm that is executed in a softirq.
> 
> BTW, do we really need softirqs for these things? Cryptographic
> operations are typically slow (especially when you have to move
> them to other CPUs to handle a single NIC:) so if we're going to
> the trouble of making it async then we should put them in work
> queues instead.

I did already tests with a work queue based parallelization, but the
throughput and the latency on networking tests were much better with the
remote softirq based version. The serialization engine must always wait
for the cpu that processes the 'next' packet to keep the packets in the
right order. And softirqs are a good way to ensure that the packets are
processed as soon as possible.

Anyway, we can always use pcrypt(cryptd(..)) combinations if we need to
make the request async.
--
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