mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Adam J. Richter" <adam@yggdrasil.com>
To: ttsig@tuxyturvy.com
Cc: jmorris@intercode.com.au, linux-kernel@vger.kernel.org
Subject: Re: Poor IPSec performance with 2.6 kernels
Date: Thu, 28 Aug 2003 03:16:20 -0700	[thread overview]
Message-ID: <200308281016.h7SAGKi24571@freya.yggdrasil.com> (raw)

At 2003-08-28 2:56:37, James Morris wrote:
>On 27 Aug 2003, Tom Sightler wrote:
>
>> My Internet connection is a DSL circuit that typically delivers about
>> 150KB/s.  When I connect with SuperFreeS/WAN my VPN throughput is quite
>> good, averaging about 125KB/s (this seems about reasonable with
>> overhead) but when making the identical connection with racoon and the
>> 2.6 kernel I can only achieve 50KB/s.  I've been unable to come up with
>> any reason why this would be the case.
>> 
>> Any hints would be appreciated.
>
>I think SFS uses assembly crypto algorithms where possible, which would 
>account for roughly 2x performance increase.

	I believe that assembly AES processes about 50MB/second on a
1GHz machine, but Tom is talking about the difference between 125kB/sec.
and 50kB/sec.  The C versus assembly issue is not on the scale that
Tom is asking about.

	Tom, although I'm not sure that I'll immediately have the time
to dig into your problem, I think it would increase the likelihood of
someone tracking it down if you could answer the following questions.

	In which direction did you take these benchmarks, inbound to the
Linux box, outbound from the Linux box, or both?  If both, is
there a difference between inbound and outbound performance?  What
private key algorithm are you configuring (aes, des, serpent)?  How
is your DSL connected (via ethernet, via USB, such as with SpeedStream)?
What kind of CPU are you using (probably doesn't matter, even if you're
using a 16MHz 386, but it would help in reproducing your problem to
know what the benchmarks should look like on a different system).

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Milpitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

             reply	other threads:[~2003-08-28 10:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-28 10:16 Adam J. Richter [this message]
2003-08-28 13:09 ` Tom Sightler
2003-08-28 13:40   ` James Morris
  -- strict thread matches above, loose matches on Subject: below --
2003-09-01 17:25 kartikey bhatt
2003-08-30 17:13 kartikey bhatt
2003-08-28 18:56 kartikey bhatt
2003-08-29  1:37 ` James Morris
2003-08-28  2:38 Tom Sightler
2003-08-28  2:56 ` James Morris

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=200308281016.h7SAGKi24571@freya.yggdrasil.com \
    --to=adam@yggdrasil.com \
    --cc=jmorris@intercode.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ttsig@tuxyturvy.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

all inboxes | Powered by JetHome®