From: Tim Chen <tim.c.chen@linux.intel.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
"David S.Miller" <davem@davemloft.net>,
Chandramouli Narayanan <mouli@linux.intel.com>,
Vinodh Gopal <vinodh.gopal@intel.com>,
James Guilford <james.guilford@intel.com>,
Wajdi Feghali <wajdi.k.feghali@intel.com>,
Jussi Kivilinna <jussi.kivilinna@iki.fi>,
linux-crypto@vger.kernel.org
Subject: Re: [PATCH v2 0/6] crypto: SHA1 multibuffer implementation
Date: Fri, 30 May 2014 09:21:30 -0700 [thread overview]
Message-ID: <1401466890.2970.469.camel@schen9-DESK> (raw)
In-Reply-To: <20140530092657.GB12760@gondor.apana.org.au>
On Fri, 2014-05-30 at 17:26 +0800, Herbert Xu wrote:
> On Fri, May 23, 2014 at 04:02:12PM -0700, Tim Chen wrote:
> >
> > The outline of the algorithm is sketched below:
> > Any driver requesting the crypto service will place an async
> > crypto request on the workqueue. The multi-buffer crypto daemon will
> > pull request from work queue and put each request in an empty data lane
> > for multi-buffer crypto computation. When all the empty lanes are filled,
> > computation will commence on the jobs in parallel and the job with the
> > shortest remaining buffer will get completed and be returned. To prevent
> > prolonged stall when there is no new jobs arriving, we will flush a crypto
> > job if it has not been completed after a maximum allowable delay.
>
> I'm a bit uncomfortable with the idea of only having a delay here.
> How about in addition to the delay we also flush the queue as
> soon as the CPU is idle?
It's a good idea to get the jobs processed with flush when there are cpu
cycles nobody else is using. I'll have to think a bit of what mechanism
to use to implement this. Any suggestions will be welcomed.
Tim
next prev parent reply other threads:[~2014-05-30 16:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1400856726.git.tim.c.chen@linux.intel.com>
2014-05-23 23:02 ` [PATCH v2 0/6] crypto: SHA1 multibuffer implementation Tim Chen
2014-05-23 23:11 ` Tim Chen
2014-05-30 9:26 ` Herbert Xu
2014-05-30 16:21 ` Tim Chen [this message]
2014-05-23 23:02 ` [PATCH v2 1/5] crypto: SHA1 multibuffer crypto hash infrastructure Tim Chen
2014-05-23 23:02 ` [PATCH v2 2/5] crypto: SHA1 multibuffer algorithm data structures Tim Chen
2014-05-23 23:02 ` [PATCH v2 3/5] crypto: SHA1 multibuffer submit and flush routines for AVX2 Tim Chen
2014-05-23 23:02 ` [PATCH v2 4/5] crypto: SHA1 multibuffer crypto computation (x8 AVX2) Tim Chen
2014-05-23 23:02 ` [PATCH v2 5/5] crypto: SHA1 multibuffer scheduler Tim Chen
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=1401466890.2970.469.camel@schen9-DESK \
--to=tim.c.chen@linux.intel.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=hpa@zytor.com \
--cc=james.guilford@intel.com \
--cc=jussi.kivilinna@iki.fi \
--cc=linux-crypto@vger.kernel.org \
--cc=mouli@linux.intel.com \
--cc=vinodh.gopal@intel.com \
--cc=wajdi.k.feghali@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox