* [LARTC] Over value in CEIL parameter..
@ 2003-07-23 5:14 Rio Martin.
2003-07-23 5:40 ` Martin A. Brown
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Rio Martin. @ 2003-07-23 5:14 UTC (permalink / raw)
To: lartc
Dear all,
I ve set CEIL parameter each class not more than 128Kbit
But sometimes the CEIL parameter can be higher 128Kbit
As far as i monitored, this CEIL rate can be 132Kbit maximum, dont know why..
Regards,
Rio Martin.
--
May the Fleas of a Thousand Camels infest one of your Erogenous Zones.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
@ 2003-07-23 5:40 ` Martin A. Brown
2003-07-23 6:53 ` Rio Martin.
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Martin A. Brown @ 2003-07-23 5:40 UTC (permalink / raw)
To: lartc
Hello again Rio Martin,
: I ve set CEIL parameter each class not more than 128Kbit But sometimes
: the CEIL parameter can be higher 128Kbit As far as i monitored, this
: CEIL rate can be 132Kbit maximum, dont know why..
For how long does the monitored output traffic exceed your ceiling? It is
possible that you'll exceed your ceil briefly because the allotted traffic
can exceed ceiling by the amount of cburst.
If you are recording an output rate above your ceil (128kbit) consistently
over a long period of time (a large transfer), then I, also, do not know
why.
[ Stef may have more to say about this. ]
Also, if you want a hard cap on your bandwidth at 128kbit, you might try
setting cburst to zero. Alternatively, you can drop the ceil parameter to
a setting just below 128kbit--this is my preferred technique.
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
2003-07-23 5:40 ` Martin A. Brown
@ 2003-07-23 6:53 ` Rio Martin.
2003-07-23 14:16 ` Stef Coene
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Rio Martin. @ 2003-07-23 6:53 UTC (permalink / raw)
To: lartc
On Wednesday 23 July 2003 12:40, you wrote:
> Hello again Rio Martin,
> : I ve set CEIL parameter each class not more than 128Kbit But sometimes
> : the CEIL parameter can be higher 128Kbit As far as i monitored, this
> : CEIL rate can be 132Kbit maximum, dont know why..
> For how long does the monitored output traffic exceed your ceiling? It is
> possible that you'll exceed your ceil briefly because the allotted traffic
> can exceed ceiling by the amount of cburst.
> If you are recording an output rate above your ceil (128kbit) consistently
> over a long period of time (a large transfer), then I, also, do not know
> why.
> [ Stef may have more to say about this. ]
>
This is lasts for long period..
Usually happened when hosts in that class perform download or online
streaming.
> Also, if you want a hard cap on your bandwidth at 128kbit, you might try
> setting cburst to zero. Alternatively, you can drop the ceil parameter to
> a setting just below 128kbit--this is my preferred technique.
I tried to set to zero:
class htb 1:3003 parent 1:4 leaf 3003: prio 0 rate 4Kbit ceil 24Kbit burst 0b
cburst 0b
class htb 1:1000 parent 1:2 leaf 1000: prio 0 rate 32Kbit ceil 48Kbit burst 0b
cburst 0b
rate 4332bps 5pps backlog 52p
results: still exceed around 50 - 80 bps
Regards,
Rio Martin.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
2003-07-23 5:40 ` Martin A. Brown
2003-07-23 6:53 ` Rio Martin.
@ 2003-07-23 14:16 ` Stef Coene
2003-07-24 2:22 ` Rio Martin.
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Stef Coene @ 2003-07-23 14:16 UTC (permalink / raw)
To: lartc
On Wednesday 23 July 2003 07:40, Martin A. Brown wrote:
> Hello again Rio Martin,
>
> : I ve set CEIL parameter each class not more than 128Kbit But sometimes
> : the CEIL parameter can be higher 128Kbit As far as i monitored, this
> : CEIL rate can be 132Kbit maximum, dont know why..
>
> For how long does the monitored output traffic exceed your ceiling? It is
> possible that you'll exceed your ceil briefly because the allotted traffic
> can exceed ceiling by the amount of cburst.
>
> If you are recording an output rate above your ceil (128kbit) consistently
> over a long period of time (a large transfer), then I, also, do not know
> why.
>
> [ Stef may have more to say about this. ]
132kbit - 128kbit = 4kbit and that's not much. So I don't think you have to
worry.
Is this ceil parameter on a leaf class (a class with no child classes)? Or
can you post you script?
Also, execute tc -s -d clas sshow dev eth0 and watch the ctokens. They should
never be negative for that class.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
` (2 preceding siblings ...)
2003-07-23 14:16 ` Stef Coene
@ 2003-07-24 2:22 ` Rio Martin.
2003-07-24 16:28 ` Stef Coene
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Rio Martin. @ 2003-07-24 2:22 UTC (permalink / raw)
To: lartc
On Wednesday 23 July 2003 21:16, Stef Coene wrote:
> On Wednesday 23 July 2003 07:40, Martin A. Brown wrote:
> > [ Stef may have more to say about this. ]
> 132kbit - 128kbit = 4kbit and that's not much. So I don't think you have
> to worry.
> Is this ceil parameter on a leaf class (a class with no child classes)? Or
> can you post you script?
> Also, execute tc -s -d clas sshow dev eth0 and watch the ctokens. They
> should never be negative for that class.
Yes, the ceil parameter on leaf class.
I tried Martin's way by setting Burst and Cburst value to zero.
And the value of bps exceed CEIL parameter around 50 - 80 bps.
Thanks.
Regards,
Rio Martin.
--
It will be advantageous to cross the great stream ... the Dragon is on
the wing in the Sky ... the Great Man rouses himself to his Work.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
` (3 preceding siblings ...)
2003-07-24 2:22 ` Rio Martin.
@ 2003-07-24 16:28 ` Stef Coene
2003-07-29 5:28 ` Rio Martin.
2003-07-29 7:45 ` Stef Coene
6 siblings, 0 replies; 8+ messages in thread
From: Stef Coene @ 2003-07-24 16:28 UTC (permalink / raw)
To: lartc
On Thursday 24 July 2003 04:22, Rio Martin. wrote:
> On Wednesday 23 July 2003 21:16, Stef Coene wrote:
> > On Wednesday 23 July 2003 07:40, Martin A. Brown wrote:
> > > [ Stef may have more to say about this. ]
> >
> > 132kbit - 128kbit = 4kbit and that's not much. So I don't think you have
> > to worry.
> > Is this ceil parameter on a leaf class (a class with no child classes)?
> > Or can you post you script?
> > Also, execute tc -s -d clas sshow dev eth0 and watch the ctokens. They
> > should never be negative for that class.
>
> Yes, the ceil parameter on leaf class.
> I tried Martin's way by setting Burst and Cburst value to zero.
> And the value of bps exceed CEIL parameter around 50 - 80 bps.
Can you post your script and the output of tc -s -d class show dev eth0?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
` (4 preceding siblings ...)
2003-07-24 16:28 ` Stef Coene
@ 2003-07-29 5:28 ` Rio Martin.
2003-07-29 7:45 ` Stef Coene
6 siblings, 0 replies; 8+ messages in thread
From: Rio Martin. @ 2003-07-29 5:28 UTC (permalink / raw)
To: lartc
On Thursday 24 July 2003 23:28, you wrote:
> On Thursday 24 July 2003 04:22, Rio Martin. wrote:
> Can you post your script and the output of tc -s -d class show dev eth0?
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 0 r2q 10
tc class add dev eth0 parent 1: classid 1:10 htb rate 40Kbit ceil 40Kbit burst
1 cburst 1
tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10 quantum 1500
tc class add dev eth0 parent 1:10 classid 1:9100 htb rate 20Kbit ceil 20Kbit
burst 1 cburst 1
tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 100 fw classid
1:9100
root@noc:/etc/sysconfig/htb# tc -s -d class show dev eth0
class htb 1:10 root rate 40Kbit ceil 40Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu
0b level 7
Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
rate 532bps 2pps
lended: 0 borrowed: 0 giants: 0
tokens: -7521 ctokens: -7521
class htb 1:9100 parent 1:10 leaf 9100: prio 0 quantum 1000 rate 20Kbit ceil
20Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b level 0
Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
rate 504bps 2pps
lended: 12398 borrowed: 0 giants: 0
tokens: -15041 ctokens: -15041
Regards,
Rio Martin.
--
He who attacks the fundamentals of the American broadcasting industry
attacks democracy itself.
-- William S. Paley, chairman of CBS
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [LARTC] Over value in CEIL parameter..
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
` (5 preceding siblings ...)
2003-07-29 5:28 ` Rio Martin.
@ 2003-07-29 7:45 ` Stef Coene
6 siblings, 0 replies; 8+ messages in thread
From: Stef Coene @ 2003-07-29 7:45 UTC (permalink / raw)
To: lartc
On Tuesday 29 July 2003 07:28, Rio Martin. wrote:
> On Thursday 24 July 2003 23:28, you wrote:
> > On Thursday 24 July 2003 04:22, Rio Martin. wrote:
> > Can you post your script and the output of tc -s -d class show dev eth0?
>
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1 htb default 0 r2q 10
Bad idea. Class 0 is a special one and I dont't think you want unclassified
traffic go out at full speed ....
> tc class add dev eth0 parent 1: classid 1:10 htb rate 40Kbit ceil 40Kbit
> burst 1 cburst 1
Argh. Remove the burst and cburst parameters so htb can calculate the smalles
one for you. I think that's your problem.
> tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10 quantum 1500
> tc class add dev eth0 parent 1:10 classid 1:9100 htb rate 20Kbit ceil
> 20Kbit burst 1 cburst 1
> tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 100 fw
> classid 1:9100
>
> root@noc:/etc/sysconfig/htb# tc -s -d class show dev eth0
> class htb 1:10 root rate 40Kbit ceil 40Kbit burst 0b/8 mpu 0b cburst 0b/8
> mpu 0b level 7
> Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
> rate 532bps 2pps
> lended: 0 borrowed: 0 giants: 0
> tokens: -7521 ctokens: -7521
>
> class htb 1:9100 parent 1:10 leaf 9100: prio 0 quantum 1000 rate 20Kbit
> ceil 20Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b level 0
> Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
> rate 504bps 2pps
> lended: 12398 borrowed: 0 giants: 0
> tokens: -15041 ctokens: -15041
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-07-29 7:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-23 5:14 [LARTC] Over value in CEIL parameter Rio Martin.
2003-07-23 5:40 ` Martin A. Brown
2003-07-23 6:53 ` Rio Martin.
2003-07-23 14:16 ` Stef Coene
2003-07-24 2:22 ` Rio Martin.
2003-07-24 16:28 ` Stef Coene
2003-07-29 5:28 ` Rio Martin.
2003-07-29 7:45 ` Stef Coene
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.