netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pktgen: tricks
@ 2009-09-23  5:49 Stephen Hemminger
  2009-09-24  0:41 ` Stephen Hemminger
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen Hemminger @ 2009-09-23  5:49 UTC (permalink / raw)
  To: Jesper Dangaard Brouer, Robert Olsson; +Cc: netdev

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-10-01 16:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23  5:49 pktgen: tricks Stephen Hemminger
2009-09-24  0:41 ` Stephen Hemminger
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

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).