HTB vs HFSC, HTB is highly inaccurate

Previous thread: Nokia Electronics Award 2009 by Nokia Electronics Award 2009 on Saturday, March 7, 2009 - 12:06 am. (1 message)

Next thread: New Year Loan Offer Apply Now!!! by Maria Los Angeles on Wednesday, March 4, 2009 - 2:09 am. (1 message)
From: Denys Fedoryschenko
Date: Sunday, March 8, 2009 - 11:45 am

Hi again

I test again HTB and HFSC, this time in very simple case.

Regarding HTB - i try without quantum, with different values, without and with 
cburst (big and small), with HZ=1000 and default, hysteresis on and off - it 
is almost same result. 

While i set limit at 57, it can reach 61. HFSC results is perfect.

Here is graph snapshopts.
http://www.nuclearcat.com/netdev/htb-problem.png
You can see points where HTB enabled. Other points if HFSC.

Scripts source is:

HTB http://www.nuclearcat.com/netdev/htb-script.txt
HFSC http://www.nuclearcat.com/netdev/hfsc-script.txt



--

From: Jarek Poplawski
Date: Monday, March 9, 2009 - 1:07 am

Very nice picture, but some tc snapshot stats for qdisc and classes

| echo "class add dev eth0.37 parent 1:1 classid 1:2 htb rate 40Mbit ceil 56Mbit burst 16000b cburst 16000b quantum 16000"
| echo "class add dev eth0.37 parent 1:1 classid 1:3 htb rate 26Mbit ceil 56Mbit burst 16000b cburst 16000b quantum 16000"

I guess you should try with rates 40/16 or 30/26 here.

BTW, it doesn't matter here, but for various reasons it's better to

This link doesn't work for me.

Jarek P.
--

From: Denys Fedoryschenko
Date: Monday, March 9, 2009 - 1:18 am

Seems i was blind. I forgot main HTB rule - always keep sum or childs rate 
less than parent. And i should not listen my boss, cause he dont know 
arithmetics. (i ask him about decision, how much for what :-D ).

I will try some experiments now.

But at same time HFSC worked fine.


--

Previous thread: Nokia Electronics Award 2009 by Nokia Electronics Award 2009 on Saturday, March 7, 2009 - 12:06 am. (1 message)

Next thread: New Year Loan Offer Apply Now!!! by Maria Los Angeles on Wednesday, March 4, 2009 - 2:09 am. (1 message)