* [LARTC] Server stop receiving traffic
@ 2003-08-25 23:19 Jay Lee
2003-08-26 17:26 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Jay Lee @ 2003-08-25 23:19 UTC (permalink / raw)
To: lartc
I've tried hard to find answers to below questions without any luck. Please
help me!
1. If I do not specify burst, server stops receiving traffic after 5~10
mins. But if I specify burst value to 1500, the server never dies but the
performance is very bad. What would be the best burst rate??
2. If I enter 1500 as burst or cburst, tc show command shows it as 1499. Why
is this happening?
#tc class add dev eth0 parent 1:1 classid 1:404 htb rate 14kbit ceil 128kbit
quantum 1501 burst 1501 cburst 1501
#tc class show dev eth0
....
class htb 1:404 parent 1:1 prio 0 rate 14Kbit ceil 128Kbit burst 1500b
cburst 1500b
....
#tc class add dev eth0 parent 1:1 classid 1:404 htb rate 14kbit ceil 128kbit
quantum 1500 burst 1500 cburst 1500
#tc class show dev eth0
....
class htb 1:404 parent 1:1 prio 0 rate 14Kbit ceil 128Kbit burst 1499b
cburst 1499b
....
_________________________________________________________________
Surf the net and talk on the phone with Xtra Jetstream @
http://www.xtra.co.nz/products/0,,5803,00.html !
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Server stop receiving traffic
2003-08-25 23:19 [LARTC] Server stop receiving traffic Jay Lee
@ 2003-08-26 17:26 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-08-26 17:26 UTC (permalink / raw)
To: lartc
On Tuesday 26 August 2003 01:19, Jay Lee wrote:
> I've tried hard to find answers to below questions without any luck. Please
> help me!
>
> 1. If I do not specify burst, server stops receiving traffic after 5~10
> mins. But if I specify burst value to 1500, the server never dies but the
> performance is very bad. What would be the best burst rate??
What is the burst calculated by htb if you specify no burst ? And can you
send me your full tc scripts and the output from tc -s -d class show dev ...
?
> 2. If I enter 1500 as burst or cburst, tc show command shows it as 1499.
> Why is this happening?
>
> #tc class add dev eth0 parent 1:1 classid 1:404 htb rate 14kbit ceil
> 128kbit quantum 1501 burst 1501 cburst 1501
> #tc class show dev eth0
> ....
> class htb 1:404 parent 1:1 prio 0 rate 14Kbit ceil 128Kbit burst 1500b
> cburst 1500b
> ....
>
>
> #tc class add dev eth0 parent 1:1 classid 1:404 htb rate 14kbit ceil
> 128kbit quantum 1500 burst 1500 cburst 1500
> #tc class show dev eth0
> ....
> class htb 1:404 parent 1:1 prio 0 rate 14Kbit ceil 128Kbit burst 1499b
> cburst 1499b
> ....
Somehow (my c is not so good) htb recalculates the burst (cburst) and uses the
rate (ceil) to do so. The funcion is called tc_calc_xmittime in file
tc_core.c (tc source).
tc_calc_xmittime = calculate transmit time ???
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] 2+ messages in thread
end of thread, other threads:[~2003-08-26 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-25 23:19 [LARTC] Server stop receiving traffic Jay Lee
2003-08-26 17:26 ` 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.