On Tue, Jun 23, 2009 at 04:34:38PM +0800, Herbert Xu wrote: > On Tue, Jun 23, 2009 at 10:29:21AM +0200, Steffen Klassert wrote: > > > > 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. > > OK, do you have some numbers that we can add to the patches? I posted some numbers for the actual softirq based version with the first patchset, see: http://www.mail-archive.com/linux-crypto@xxxxxxxxxxxxxxx/msg03035.html But as I pointed out there, these numbers are not that meaningful as long as we have the lock in crypto_authenc_hash() Actually I'm about to rewrite authenc/hmac to use ahash. As soon as I finished this I will redo the tests without the lock. > > Also note that the real time folks are turning softirq into threads > so this complexity might be moot in the end. > Yes, I know. The one of the main problems of the thread based version was that it had to wait for the cpu that serves the interrupt for the NICs. As soon as other softirqs (like the NET_RX_SOFTIRQ) are thread based too this should not be a problem any more. -- 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