From: Andrew Morton <akpm@linux-foundation.org>
To: "Kingsley Foreman" <kingsley@internode.com.au>
Cc: <linux-kernel@vger.kernel.org>, netdev@vger.kernel.org
Subject: Re: NET_SCHED cbq dropping too many packets on a bonding interface
Date: Wed, 14 May 2008 20:56:04 -0700 [thread overview]
Message-ID: <20080514205604.e669a28f.akpm@linux-foundation.org> (raw)
In-Reply-To: <B28DA1911F61434C804723B7EE8A5C67@uglypunk>
(cc netdev)
On Thu, 15 May 2008 12:25:19 +0930 "Kingsley Foreman" <kingsley@internode.com.au> wrote:
> Ive been using qdisc for quite a while without any problems,
> I just rebuilt a gentoo box with 2.6.25 kernel that does a lot of traffic
> ~1000mbits+ over a bonded interface
>
> Im however seeing a big problem with cbq class dropping packets for no
> reason i can see, and it is causing a lot of speed issues.
>
> the basic config is this
> _____________________________________________________________________
> /sbin/tc qdisc del dev bond0 root
> /sbin/tc qdisc add dev bond0 root handle 1 cbq bandwidth 2000Mbit avpkt 1000
> cell 8
> /sbin/tc class change dev bond0 root cbq weight 200Mbit allot 1514
>
> /sbin/tc class add dev bond0 parent 1: classid 1:1280 cbq bandwidth 2000Mbit
> rate 1200Mbit weight 120Mbit prio 1 allot 1514 cell 8 maxburst 120 minburst
> 1 minidle 0 avpkt 1000 bounded
> /sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 300 route to 5
> classid 1:1280
>
> /sbin/tc class add dev bond0 parent 1: classid 1:1281 cbq bandwidth 2000Mbit
> rate 400Mbit weight 40Mbit prio 6 allot 1514 cell 8 maxburst 120 minburst 1
> minidle 0 avpkt 1000 bounded
> /sbin/tc filter add dev bond0 parent 1:0 protocol ip prio 300 route to 6
> classid 1:1281
> ____________________________________________________________________
>
> So there is a lot of bandwidth handed out but it is still dropping a lot of
> packets for very small ammounts of traffic eg 300mbits.
>
> However the biggest problem im seeing is if i just do this
>
> __________________________________________________________________
> /sbin/tc qdisc del dev bond0 root
> /sbin/tc qdisc add dev bond0 root handle 1 cbq bandwidth 2000Mbit avpkt 1000
> cell 8
> /sbin/tc class change dev bond0 root cbq weight 200Mbit allot 1514
> ___________________________________________________________________
>
> after 30sec I get results like
> ___________________________________________________________________
>
> ### bond0: queueing disciplines
>
> qdisc cbq 1: root rate 2000Mbit (bounded,isolated) prio no-transmit
> Sent 574230043 bytes 407156 pkt (dropped 2524, overlimits 0 requeues 0)
> rate 0bit 0pps backlog 0b 0p requeues 0
> borrowed 0 overactions 0 avgidle 3 undertime 0
>
> ### bond0: traffic classes
>
> class cbq 1: root rate 2000Mbit (bounded,isolated) prio no-transmit
> Sent 574330783 bytes 407225 pkt (dropped 2525, overlimits 0 requeues 0)
> rate 0bit 0pps backlog 0b 0p requeues 0
> borrowed 0 overactions 0 avgidle 3 undertime 0
> __________________________________________________________________
>
> I can't for the life if me work out why it is dropping so many packets for
> while doing so little traffic when i enable cbq the transfer rate drops by
> approx 30%, any help would be great, and any improvements to my command
> lines would be good also.
>
>
> Kingsley Foreman
next parent reply other threads:[~2008-05-15 3:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <B28DA1911F61434C804723B7EE8A5C67@uglypunk>
2008-05-15 3:56 ` Andrew Morton [this message]
2008-05-15 5:21 ` NET_SCHED cbq dropping too many packets on a bonding interface Eric Dumazet
2008-05-15 6:16 ` Kingsley Foreman
2008-05-15 9:12 ` Jarek Poplawski
2008-05-15 10:06 ` Kingsley Foreman
2008-05-15 10:29 ` Jarek Poplawski
2008-05-15 15:59 ` Patrick McHardy
2008-05-15 16:09 ` Patrick McHardy
2008-05-15 18:09 ` Jarek Poplawski
2008-05-15 18:14 ` Patrick McHardy
2008-05-15 18:25 ` Jarek Poplawski
2008-05-15 18:32 ` Patrick McHardy
2008-05-15 18:46 ` Jarek Poplawski
2008-05-15 21:27 ` Kingsley Foreman
2008-05-16 5:49 ` Jarek Poplawski
2008-05-16 6:12 ` Kingsley Foreman
2008-05-16 7:01 ` Jarek Poplawski
2008-05-16 7:22 ` Jarek Poplawski
2008-05-16 11:56 ` Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080514205604.e669a28f.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=kingsley@internode.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).