From: jamal <hadi@cyberus.ca>
To: johnpol@2ka.mipt.ru
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
netdev@oss.sgi.com, Patrick McHardy <kaber@trash.net>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [patch/RFC]: Asynchronous IPsec processing benchmark.
Date: Wed, 04 May 2005 06:40:14 -0400 [thread overview]
Message-ID: <1115203214.7665.58.camel@localhost.localdomain> (raw)
In-Reply-To: <1115127507.3414.58.camel@uganda>
On Tue, 2005-03-05 at 17:38 +0400, Evgeniy Polyakov wrote:
> Here are some numbers:
>
> ./netperf -l 60 -H gw -t TCP_STREAM -i 10,2 -I 99,5 -- -m 4096 -s 57344
> -S 57344
>
> TCP STREAM TEST to gw : +/-2.5% @ 99% conf.
>
> async-ipsec, 10^6bits/sec: 35.42
> sync-ipsec, 10^6bits/sec: 37.11
>
> So even with existing timer deferring it is not noticebly slower [about
> 4%].
>
by "sync" i hope you mean the original code without your change?
The one thing i see in your POC code that may affect numbers a bit is
allocation of struct esp_async every time in the path. Perhaps precreate
a pool of those and then just grab/return to/fro pool;
BTW, you may need to incr ref counter of x pre-callback and decrement
when done in callback.
> And I think that benefits it provides definitely cost that price and
> compile time option.
I think Herberts concerns about latency should go away if you really
have some proper crypto hardware.
cheers,
jamal
next prev parent reply other threads:[~2005-05-04 10:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-29 10:41 [patch/RFC]: Asynchronous IPsec processing Evgeniy Polyakov
2005-04-30 13:36 ` Evgeniy Polyakov
2005-05-03 9:53 ` Herbert Xu
2005-05-03 10:18 ` Evgeniy Polyakov
2005-05-03 10:14 ` Herbert Xu
2005-05-03 10:31 ` Evgeniy Polyakov
2005-05-03 10:29 ` Herbert Xu
2005-05-03 10:55 ` Evgeniy Polyakov
2005-05-03 13:38 ` [patch/RFC]: Asynchronous IPsec processing benchmark Evgeniy Polyakov
2005-05-04 10:40 ` jamal [this message]
2005-05-04 16:11 ` Evgeniy Polyakov
2005-05-05 13:04 ` jamal
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=1115203214.7665.58.camel@localhost.localdomain \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=johnpol@2ka.mipt.ru \
--cc=kaber@trash.net \
--cc=netdev@oss.sgi.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;
as well as URLs for NNTP newsgroup(s).