All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: David Miller <davem@davemloft.net>
Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org
Subject: Re: [PATCH 2/2] crypto: pcrypt - Add pcrypt crypto parallelization wrapper
Date: Fri, 9 Oct 2009 10:07:18 +0200	[thread overview]
Message-ID: <20091009080718.GQ15653@secunet.com> (raw)
In-Reply-To: <20091008.231833.107456737.davem@davemloft.net>

On Thu, Oct 08, 2009 at 11:18:33PM -0700, David Miller wrote:
> 
> Steffen are we going to end up adding a softirq for every crypto
> transform type?
> 
> That won't work, softirqs are to be scarcely allocated and operate
> at a very high level.
> 
> I can think of two alternatives:
> 
> 1) One softirq that does per-cpu padata work via some generic
>    callout mechanism.

I tried already to reduce the softirqs by using the same softirq for
encryption and decryption. But in case of IPsec this had a negative
performance impact. So if we stay with softirqs we would probaply need
at least two for the whole crypto layer.

Best would be if we would not need softirqs at all. In fact I started
with a thread based version but the thread based version had never that
performance like the softirq version has.

Anyway, in between the workqueue interface changed so perhaps it is
worth to try again with workqueues.

> 
> 2) Use tasklets
> 

Tasklets are not sufficient because I can't control on which cpu the
tasklet will run on. Also we can run just one tasklet of the same type
the time, so tasklets don't parallelize.

  reply	other threads:[~2009-10-09  8:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08  7:25 [PATCH 0/2] Parallel crypto/IPsec v6 Steffen Klassert
2009-10-08  7:27 ` [PATCH 1/2] padata: generic interface for parallel processing Steffen Klassert
2009-10-08  7:28 ` [PATCH 2/2] crypto: pcrypt - Add pcrypt crypto parallelization wrapper Steffen Klassert
2009-10-09  6:18   ` David Miller
2009-10-09  8:07     ` Steffen Klassert [this message]
2009-10-30 10:06     ` Steffen Klassert
2009-10-30 12:58       ` Herbert Xu
2009-10-30 13:27         ` Steffen Klassert
2009-10-30 13:30           ` Herbert Xu
2009-11-02 11:36             ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2009-12-21 14:19 workqueue thing Tejun Heo
2009-12-21 15:19 ` Arjan van de Ven
2009-12-22  0:00   ` Tejun Heo
2009-12-22 11:10     ` Peter Zijlstra
2009-12-22 17:20       ` Linus Torvalds
2009-12-22 17:47         ` Peter Zijlstra
2009-12-23  3:37           ` Tejun Heo
2009-12-23  6:52             ` Herbert Xu
2009-12-23  8:00               ` Steffen Klassert
2009-12-23  8:01                 ` [PATCH 0/2] Parallel crypto/IPsec v7 Steffen Klassert
2009-12-23  8:04                   ` [PATCH 2/2] crypto: pcrypt - Add pcrypt crypto parallelization wrapper Steffen Klassert
2009-12-18 12:20 [PATCH 0/2] Parallel crypto/IPsec v7 Steffen Klassert
2009-12-18 12:21 ` [PATCH 2/2] crypto: pcrypt - Add pcrypt crypto parallelization wrapper Steffen Klassert
2009-08-31  9:11 [PATCH 0/2] Parallel crypto/IPsec v5 Steffen Klassert
2009-08-31  9:14 ` [PATCH 2/2] crypto: pcrypt - Add pcrypt crypto parallelization wrapper Steffen Klassert
2009-09-19 23:20   ` Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091009080718.GQ15653@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.