From: Stef Coene Date: Thu, 18 Nov 2004 21:50:17 +0000 Subject: Re: [LARTC] burst question Message-Id: <200411182250.17415.stef.coene@docum.org> List-Id: References: <20041118192728.7613440f.mailinglists@lucassen.org> In-Reply-To: <20041118192728.7613440f.mailinglists@lucassen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Thursday 18 November 2004 19:27, richard lucassen wrote: > This is one of my test classes: > > class htb 1:10 parent 1:1 prio 0 quantum 2048 rate 160Kbit ceil 400Kbit > burst 1803b/8 mpu 0b cburst 2111b/8 mpu 0b level 0 > > Q1: where does "level 0" stand for? From /usr/src/linux-2.6.8/net/sched/sch_htb.c Levels: Each class is assigned level. Leaf has ALWAYS level 0 and root classes have level TC_HTB_MAXDEPTH-1. Interior nodes has level one less than their parent. > Q2: where does this b/8 stand for? Don't know. > Q3: this is on a i386 platform, so timer resolution should be 10mS. > According to the doc the minimal burst should be 10mS*160Kbit=1600. Why > is it 1803? From /usr/src/iproute2/tc/q_htb.c /* compute minimal allowed burst from rate; mtu is added here to ma= ke sute that buffer is larger than mtu and to have some safeguard=20 space */ > Q4: I want this class to be able to allow 400Kbit burst during 3 > seconds. What value should I give to the burst parameter? Is this > 400/160*1803E07b? 400kbit * 3s =3D 1200kbit. You can try this, but htb burst is not made for this. It is made for burst= of=20 a few k. Stef --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/