Re: crypto: caam from tasklet to threadirq

2016-09-20 Thread Thomas Gleixner
On Tue, 20 Sep 2016, Russell King - ARM Linux wrote: > each of those places where af_alg_wait_for_completion() called, we > end up submitting a bunch of data and then immediately waiting for > the operation to complete... and this can be seen in the perf > trace logs. That'd explain it. > So, un

Re: crypto: caam from tasklet to threadirq

2016-09-20 Thread Russell King - ARM Linux
On Tue, Sep 20, 2016 at 10:10:20PM +0200, Thomas Gleixner wrote: > On Tue, 20 Sep 2016, Russell King - ARM Linux wrote: > > which corresponds to an 8% slowdown for the threaded IRQ case. So, > > tasklets are indeed faster than threaded IRQs. > > Fair enough. > > > I've tried to perf it, but... >

Re: crypto: caam from tasklet to threadirq

2016-09-20 Thread Thomas Gleixner
On Tue, 20 Sep 2016, Russell King - ARM Linux wrote: > which corresponds to an 8% slowdown for the threaded IRQ case. So, > tasklets are indeed faster than threaded IRQs. Fair enough. > I've tried to perf it, but... > > So, sorry, I'm not going to bother trying to get any further with th

Re: crypto: caam from tasklet to threadirq

2016-09-20 Thread Russell King - ARM Linux
Okay, I've re-tested, using a different way of measuring, because using openssl speed is impractical for off-loaded engines. I've decided to use this way to measure the performance: dd if=/dev/zero bs=1048576 count=128 | /usr/bin/time openssl dgst -md5 For the threaded IRQs case gives: 0.05user

Re: crypto: caam from tasklet to threadirq

2016-09-16 Thread Russell King - ARM Linux
On Fri, Sep 16, 2016 at 02:01:00PM +, Cata Vasile wrote: > Hi, > > We've tried to test and benchmark your submitted work[1]. > > Cryptographic offloading is also used in IPsec in the Linux Kernel. In > heavy traffic scenarios, the NIC driver competes with the crypto device > driver. Most NICs

crypto: caam from tasklet to threadirq

2016-09-16 Thread Cata Vasile
Hi, We've tried to test and benchmark your submitted work[1]. Cryptographic offloading is also used in IPsec in the Linux Kernel. In heavy traffic scenarios, the NIC driver competes with the crypto device driver. Most NICs use the NAPI context, which is one of the most prioritized context types