Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: gypsy <gypsy@iswest.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Giants on IMQ0
Date: Sun, 23 Sep 2007 18:36:47 +0000	[thread overview]
Message-ID: <46F6B23F.7825A48B@iswest.com> (raw)

Why am I getting giants on imq0?

How do I stop that?

=====
imq0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP RUNNING NOARP  MTU:1500  Metric:1
          RX packets:39880312 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39878715 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1024 
          RX bytes:1192463070 (1137.2 Mb)  TX bytes:1190162553 (1135.0
Mb)
**********
# IMQ: (HERE <-- INTERNET)
modprobe imq numdevs=1
# Since class 1:10 uses the default pfifo_fast, we need to give it
txqueuelen
# packets because pfifo_fast drops incoming packets when the queue fills
up:
ip link set $IMQ up txqueuelen 1024

# Install root HTB, point default traffic to 1:30:
tc qdisc add dev $IMQ root handle 1: htb default 30

# Shape everything at DNLINK speed:
# Root class
tc class add dev $IMQ parent 1: classid 1:1 htb rate ${CEIL}kbit burst
16k cburst 16k

# High priority (interactive) class 1:10
tc class add dev $IMQ parent 1:1 classid 1:10 htb rate
$[Ii*$DNLINK/100]kbit \
   ceil ${CEIL}kbit burst 6k cburst 6k quantum 1500 prio 1

# Accelerated class 1:20 
tc class add dev $IMQ parent 1:1 classid 1:20 htb rate
$[Ai*$DNLINK/100]kbit \
   ceil $[98*$CEIL/100]kbit burst 16k cburst 16k quantum 1500 prio 2

# Bulk & default class 1:30
tc class add dev $IMQ parent 1:1 classid 1:30 htb rate
$[Bi*$DNLINK/100]kbit \
   ceil $[96*$CEIL/100]kbit burst 10k cburst 10k quantum 1500 prio 3
**********
Received on imq0:
qdisc htb 1: r2q 10 default 30 direct_packets_stat 0
 Sent 14075058106 bytes 39878630 pkts (dropped 1597, overlimits 1288386) 
qdisc esfq 20: parent 1:20 quantum 1500b perturb 99sec hash: classic
 Sent 11154070435 bytes 8184171 pkts (dropped 1555, overlimits 0) 
qdisc esfq 30: parent 1:30 quantum 1500b perturb 20sec hash: classic
 Sent 2213692505 bytes 29156106 pkts (dropped 42, overlimits 0) 
class htb 1:1 root rate 4862Kbit ceil 4862Kbit burst 16Kb cburst 16Kb 
 Sent 14075060702 bytes 39878630 pkts (dropped 0, overlimits 0) 
 rate 2840bit 7pps 
 lended: 1993306 borrowed: 0 giants: 1158
 tokens: 36713 ctokens: 36713

class htb 1:10 parent 1:1 prio 1 rate 230000bit ceil 4862Kbit burst 6Kb
cburst 6Kb 
 Sent 707295166 bytes 2538353 pkts (dropped 0, overlimits 0) 
 rate 352bit 
 lended: 2276584 borrowed: 261769 giants: 0
 tokens: 287865 ctokens: 13714

class htb 1:20 parent 1:1 leaf 20: prio 2 rate 1385Kbit ceil 4764Kbit
burst 16Kb cburst 16Kb 
 Sent 11154070435 bytes 8184171 pkts (dropped 1555, overlimits 0) 
 lended: 6568474 borrowed: 1615697 giants: 0
 tokens: 128429 ctokens: 37451

class htb 1:30 parent 1:1 leaf 30: prio 3 rate 3001Kbit ceil 4667Kbit
burst 10Kb cburst 10Kb 
 Sent 2213692505 bytes 29156106 pkts (dropped 42, overlimits 0) 
 rate 2448bit 6pps 
 lended: 29040266 borrowed: 115840 giants: 1158
 tokens: 37088 ctokens: 23849
=====
gypsy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

                 reply	other threads:[~2007-09-23 18:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=46F6B23F.7825A48B@iswest.com \
    --to=gypsy@iswest.com \
    --cc=lartc@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