Re: HTB accuracy on 10GbE

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Wednesday, November 4, 2009 - 4:31 am

Ryousei Takano a écrit :


One thing to consider is the estimation error in qdisc_l2t(), rate table has only 256 slots

static inline u32 qdisc_l2t(struct qdisc_rate_table* rtab, unsigned int pktlen)
{
	int slot = pktlen + rtab->rate.cell_align + rtab->rate.overhead;
	if (slot < 0)
		slot = 0;
	slot >>= rtab->rate.cell_log;
	if (slot > 255)
		return (rtab->data[255]*(slot >> 8) + rtab->data[slot & 0xFF]);
	return rtab->data[slot];
}


Maybe you can try changing class mtu to 40000 instead of 9000, and quantum to 60000 too

tc class add dev $DEV parent 1: classid 1:1 htb rate ${rate}mbit mtu 40000 quantum 60000

(because your tcp stack sends large buffers ( ~ 60000 bytes) as your NIC can offload tcp segmentation)

--
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:
HTB accuracy on 10GbE, Ryousei Takano, (Mon Nov 2, 12:22 am)
Re: HTB accuracy on 10GbE, Badalian Vyacheslav, (Mon Nov 2, 1:17 am)
Re: HTB accuracy on 10GbE, Patrick McHardy, (Mon Nov 2, 8:43 am)
Re: HTB accuracy on 10GbE, Stephen Hemminger, (Mon Nov 2, 1:53 pm)
Re: HTB accuracy on 10GbE, Badalian Vyacheslav, (Tue Nov 3, 12:43 am)
Re: HTB accuracy on 10GbE, Ryousei Takano, (Tue Nov 3, 8:13 pm)
Re: HTB accuracy on 10GbE, Ryousei Takano, (Tue Nov 3, 8:45 pm)
Re: HTB accuracy on 10GbE, Eric Dumazet, (Tue Nov 3, 10:03 pm)
Re: HTB accuracy on 10GbE, Eric Dumazet, (Tue Nov 3, 10:27 pm)
Re: HTB accuracy on 10GbE, Ryousei Takano, (Wed Nov 4, 1:19 am)
Re: HTB accuracy on 10GbE, Eric Dumazet, (Wed Nov 4, 4:31 am)
Re: HTB accuracy on 10GbE, Ryousei Takano, (Wed Nov 4, 9:31 am)
Re: HTB accuracy on 10GbE, Eric Dumazet, (Wed Nov 4, 10:03 am)
Re: HTB accuracy on 10GbE, Ryousei Takano, (Thu Nov 5, 12:08 am)
Re: HTB accuracy on 10GbE, Eric Dumazet, (Thu Nov 5, 12:10 am)
Re: HTB accuracy on 10GbE, Ryousei Takano, (Thu Nov 5, 3:15 am)