[Codel] [PATCH net-next] codel: use Newton method instead of sqrt() and divides

Eric Dumazet eric.dumazet at gmail.com
Mon May 14 07:56:21 EDT 2012


On Mon, 2012-05-14 at 13:34 +0200, Roger Jørgensen wrote:
> On Mon, May 14, 2012 at 10:23 AM, Eric Dumazet <eric.dumazet at gmail.com> wrote:
> > On Mon, 2012-05-14 at 08:51 +0200, Roger Jørgensen wrote:
> >
> >> could you pass me the script for setting that up, got nowhere with any
> >> of the previous... will try the same on some 10GigE servers over v6...
> >
> > If multi-queue, you probably could use :
> >
> > EST="est 1sec 4sec"
> > TXQUEUES=24
> >
> > DEV=eth7
> > # ethtool -K $DEV tso off gso off
> > tc qdisc del dev $DEV root 2>/dev/null
> > tc qdisc add dev $DEV root handle 1: mq
> >
> > for i in `seq 1 $TXQUEUES`
> > do
> >  hexa=$(printf %02x $i)
> >  tc qdisc add dev $DEV parent 1:$hexa fq_codel
> > done
> 
> I did it much simpler, with nothing changed I get  2.42Gbits/sec
> through my range of VMs.



Not sure it means anything with VM, since the 'queue' is probably empty
on the guest (packet is sent to hypervisor, and hypervisor send it to
real hardware later)

You can check stats on qdisc/class to see if _some_ packets stayed in
queue a bit...

tc -s qdisc show dev eth1

tc -s class show dev eth1






More information about the Codel mailing list