1 Oct 2009 01:03
[PATCH] pktgen: Avoid dirtying skb->users when txq is full
Eric Dumazet <eric.dumazet <at> gmail.com>
2009-09-30 23:03:33 GMT
2009-09-30 23:03:33 GMT
Stephen Hemminger a écrit : > On Tue, 22 Sep 2009 22:49:02 -0700 > Stephen Hemminger <shemminger <at> 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 >> Thanks a lot Stephen. I did some pktgen session tonight and found one contention on skb->users field that following patch avoids. Before patch : ------------------------------------------------------------------------------ PerfTop: 5187 irqs/sec kernel:100.0% [100000 cycles], (all, cpu: 0) ------------------------------------------------------------------------------(Continue reading)
RSS Feed