From mboxrd@z Thu Jan 1 00:00:00 1970 From: "yuxiao jia" Date: Wed, 12 Nov 2003 01:26:30 +0000 Subject: [LARTC] buffer size MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0016_01C3A892.174A1B10" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C3A892.174A1B10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Stef I have one flow, I mark as EF class, then I use CBQ to control rate in tc script there is place to control queue size (buffer size) for example=20 ## Definition of the CBQ leaf classes to support EF and BE ## EF class $TC class add dev eth1 parent 2:1 classid 2:5 cbq bandwidth 100Mbit rate 6Mbit avpkt 1000 prio 1 bounded allot 1514 weight 600kbit maxburst 10 = defmap 0 $TC qdisc add dev eth1 parent 2:5 pfifo limit 10 ..... here use pfifo inside EF class, the parameter "limit" is queue size 10 However, each NIC card has txqueuelen which is transimission queue of = device, the default is 100 So I am confused here, if I want control EF class buffer size, I think I = should change "tc ......limit ...." but what about NIC queue size? does NIC queue size is only for BE = traffic? thanks yuxiao ------=_NextPart_000_0016_01C3A892.174A1B10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Stef
 
I have one flow, I mark as EF class, = then I use CBQ=20 to control rate
 
in tc script there is place to control = queue size=20 (buffer size)
for example
 
## Definition of the CBQ leaf classes to support EF and BE
## EF = class
$TC class add dev eth1 parent 2:1 classid 2:5 cbq bandwidth = 100Mbit=20 rate
6Mbit
    avpkt 1000 prio 1 bounded allot 1514 = weight=20 600kbit maxburst 10 defmap 0
$TC qdisc add dev eth1 parent 2:5 pfifo = limit=20 10
.....
 
here use pfifo inside EF class, the = parameter=20 "limit" is queue size 10
 
However, each NIC card has = txqueuelen which is=20 transimission queue of device, the default is 100
 
So I am confused here, if I want = control EF class=20 buffer size, I think I should change "tc ......limit ...."
 
but what about NIC queue size? does NIC = queue size=20 is only for BE traffic?
 
thanks
 
yuxiao
 
 
------=_NextPart_000_0016_01C3A892.174A1B10-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/