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: Thu, 05 May 2005 09:04:29 -0400 [thread overview]
Message-ID: <1115298270.7680.65.camel@localhost.localdomain> (raw)
In-Reply-To: <20050504201143.7f6bdcce@zanzibar.2ka.mipt.ru>
On Wed, 2005-04-05 at 20:11 +0400, Evgeniy Polyakov wrote:
> On Wed, 04 May 2005 06:40:14 -0400
> jamal <hadi@cyberus.ca> wrote:
>
> > 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?
>
> Yes, it is vanilla 2.6.12-rc2 kernel with native IPsec.
>
Very nice numbers then - considering the async was at least delaying
things by at least a jiffie.
> > 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;
>
> That could be skb too - since both skb/kmalloc
> atomic allocations end up in kmem_cache_alloc().
The skb is a little tricky in particular if you allocate in one CPU and
free on another. If this could happen with the esp_async struct as well
then it is not worth it.
>
> > BTW, you may need to incr ref counter of x pre-callback and decrement
> > when done in callback.
>
> It looks like dst entry holding is enough since
> direct dst->output(), i.e. xfrm_state->output(),
> call itself is not protected by reference counter,
> but dst entry is being held during that call.
>
makes sense.
cheers,
jamal
prev parent reply other threads:[~2005-05-05 13:04 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
2005-05-04 16:11 ` Evgeniy Polyakov
2005-05-05 13:04 ` jamal [this message]
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=1115298270.7680.65.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).