From: Stephen Hemminger <shemminger@vyatta.com>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jesper Dangaard Brouer <jdb@comx.dk>,
Robert Olsson <robert@herjulf.net>,
netdev@vger.kernel.org
Subject: Re: pktgen: tricks
Date: Wed, 23 Sep 2009 17:41:41 -0700 [thread overview]
Message-ID: <20090923174141.1d350103@s6510> (raw)
In-Reply-To: <20090922224902.17ed6cc4@nehalam>
On Tue, 22 Sep 2009 22:49:02 -0700
Stephen Hemminger <shemminger@vyatta.com> wrote:
> I thought others want to know how to get maximum speed of pktgen.
>
> 1. Run nothing else (even X11), just a command line
> 2. Make sure ethernet flow control is disabled
> ethtool -A eth0 autoneg off rx off tx off
> 3. Make sure clocksource is TSC. On my old SMP Opteron's
> needed to get patch since in 2.6.30 or later, the clock guru's
> decided to remove it on all non Intel machines. Look for patch
> than enables "tsc=reliable"
> 4. Compile Ethernet drivers in, the overhead of the indirect
> function call required for modules (or cache footprint),
> slows things down.
> 5. Increase transmit ring size to 1000
> ethtool -G eth0 tx 1000
>
> Result: OK: 70408581(c70405979+d2602) nsec, 100000000 (60byte,0frags)
> 1420281pps 681Mb/sec (681734880bps) errors: 0
Other kernel config help:
- turn off lock dependency checker, kmecheck, page alloc debug
basically anything that slows stuff down
- turn off content group scheduler
next prev parent reply other threads:[~2009-09-24 0:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 5:49 pktgen: tricks Stephen Hemminger
2009-09-24 0:41 ` Stephen Hemminger [this message]
2009-09-24 1:05 ` Rick Jones
2009-09-24 10:10 ` Denys Fedoryschenko
2009-09-24 10:32 ` Eric Dumazet
2009-09-30 23:03 ` [PATCH] pktgen: Avoid dirtying skb->users when txq is full Eric Dumazet
2009-10-01 0:25 ` Stephen Hemminger
2009-10-01 9:47 ` [PATCH] pktgen: Fix delay handling Eric Dumazet
2009-10-01 10:04 ` Eric Dumazet
2009-10-01 16:29 ` David Miller
2009-10-01 16:32 ` Eric Dumazet
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=20090923174141.1d350103@s6510 \
--to=shemminger@vyatta.com \
--cc=jdb@comx.dk \
--cc=netdev@vger.kernel.org \
--cc=robert@herjulf.net \
/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).