Re: Bonding, GRO and tcp_reordering

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, November 30, 2010 - 9:04 am

Le mardi 30 novembre 2010 à 15:42 +0000, Ben Hutchings a écrit :


GRO really is operational _if_ we receive in same NAPI run several
packets for the same flow.

As soon as we exit NAPI mode, GRO packets are flushed.

Big MTU --> bigger delays between packets, so big chance that GRO cannot
trigger at all, since NAPI runs for one packet only.

One possibility with big MTU is to tweak "ethtool -c eth0" params
rx-usecs: 20
rx-frames: 5
rx-usecs-irq: 0
rx-frames-irq: 5
so that "rx-usecs" is bigger than the delay between two MTU full sized
packets.

Gigabit speed means 1 nano second per bit, and MTU=9000 means 72 us
delay between packets.

So try :

ethtool -C eth0 rx-usecs 100

to get chance that several packets are delivered at once by NIC.

Unfortunately, this also add some latency, so it helps bulk transferts,
and slowdown interactive traffic 


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Bonding, GRO and tcp_reordering, Simon Horman, (Tue Nov 30, 6:55 am)
Re: Bonding, GRO and tcp_reordering, Ben Hutchings, (Tue Nov 30, 8:42 am)
Re: Bonding, GRO and tcp_reordering, Eric Dumazet, (Tue Nov 30, 9:04 am)
Re: Bonding, GRO and tcp_reordering, Rick Jones, (Tue Nov 30, 10:56 am)
Re: Bonding, GRO and tcp_reordering, Eric Dumazet, (Tue Nov 30, 11:14 am)
Re: Bonding, GRO and tcp_reordering, Simon Horman, (Tue Nov 30, 9:30 pm)
Re: Bonding, GRO and tcp_reordering, Simon Horman, (Tue Nov 30, 9:31 pm)
Re: Bonding, GRO and tcp_reordering, Simon Horman, (Tue Nov 30, 9:34 pm)
Re: Bonding, GRO and tcp_reordering, Eric Dumazet, (Tue Nov 30, 9:47 pm)
Re: Bonding, GRO and tcp_reordering, Rick Jones, (Wed Dec 1, 12:42 pm)
Re: Bonding, GRO and tcp_reordering, Simon Horman, (Wed Dec 1, 11:39 pm)
Re: Bonding, GRO and tcp_reordering, Simon Horman, (Fri Dec 3, 6:38 am)