From: Robert Olsson <Robert.Olsson@data.slu.se>
To: ralph+d@istop.com
Cc: netdev@oss.sgi.com, Robert.Olsson@data.slu.se
Subject: Re: Linux router performance (3c59x) (fwd)
Date: Tue, 18 Mar 2003 10:54:48 +0100 [thread overview]
Message-ID: <15990.60648.230534.852040@robur.slu.se> (raw)
In-Reply-To: <Pine.LNX.4.51.0303172239390.30872@ns.istop.com>
Ralph Doncaster writes:
> I haven't heard from Jamal or Dave, so perhaps someone from this list has
> some wisdom to impart.
> Currently the box in question is running a 67% system load with ~40kpps.
> Here's the switch port stats that the 2 3c905cx cards are plugged into:
Hello!
First we do a lot of testing with routing path but have no experience
with the hardware you have 3c59x or duron.
In general it seems hard to extrapolate performance X1 % CPU at X2 pps.
You don't see CPU used in IRQ context and not in some of softIRQ's.
I think a better way for this tests is to input "overload" so your
system gets saturated. You get the DoS test for free... After getting
the throughput you have figure out what's your bottleneck CPU, PCI etc.
> This is a box doing straight routing (no firewalling), with a full bgp4
> routing table (>100k routes). Kernel advanced router config option as
> well as fastroute was chosen.
The size of routing table itself has no effect... The challenge comes
when there are a high number of new "flows" per second so garbage
collection gets active. This can be seen with a program rtstat in the
iproute2 package.
Currently there is no driver with FASTROUTE support in the kernel so this
will not do you any good now.
But Linux routing (and packet overload) performance is still very good.
You can see performance numbers as well as profiles for different setups
http://robur.slu.se/Linux/net-development/experiments/router-profile.html
As seen packet memory allocation is one of the CPU consumers. And also
we see that slab is not not fully per CPU so we are spinning in case of
SMP.
And as seen UP gives about 345 kpps. With skb recycling bump this up to
507 kpps. The challenge for now is to get aggregated performance with SMP.
Also remember that network and routing in particular is very much data
transport which is DMA transfers from and to memory and these has to
interact with CPU/driver arbitrating for the bus to manage this DMA's.
Latencies and serializations are not obvious at this level.
Cheers.
--ro
prev parent reply other threads:[~2003-03-18 9:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 3:43 Linux router performance (3c59x) (fwd) Ralph Doncaster
2003-03-18 4:48 ` Ben Greear
2003-03-18 5:09 ` Ralph Doncaster
2003-03-18 6:30 ` Ben Greear
2003-03-18 9:54 ` Robert Olsson [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=15990.60648.230534.852040@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=netdev@oss.sgi.com \
--cc=ralph+d@istop.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).