From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 X-AntiVirus: Checked by Dr.Web [version: 4.44, engine: 4.44.0.09170, virus records: 282692, updated: 10.01.2008] Message-ID: <479A4354.2030209@altlinux.ru> Date: Fri, 25 Jan 2008 23:15:16 +0300 From: Anton Gorlov User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: ALT Linux sysadmin discuss Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [Sysadmins] htb X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 20:15:03 -0000 Archived-At: List-Archive: Почитал search.altlinux.ru и так понял что cbq скорее мёртв, чем жив. Убил онного и поставил iproute-htb. Почитал lartc.org и примеры в /usr/share/doc/iproute-htb-0.8.4 Нарисовалась примерно такая конфигурация: # cat eth0 DEFAULT=30 R2Q=100 # cat eth0-2.root # root class containing total bandwidth RATE=100Mbit BURST=15k # cat eth0-2:10.www # class for outgoing WWW traffic RATE=1Mbit BURST=15k LEAF=sfq С соседней машинки попробовал качать. Качается, но явно меньше 1 мбита. всего-то 46.45K/s если верить wget и прочим качалкам. Есть у кого идеи? # /etc/init.d/htb list ### eth0: queueing disciplines qdisc htb 1: r2q 100 default 30 direct_packets_stat 319 qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec ### eth0: traffic classes class htb 1:10 parent 1:2 leaf 10: prio 0 rate 1000Kbit ceil 1000Kbit burst 15Kb cburst 2099b class htb 1:2 root rate 100000Kbit ceil 100000Kbit burst 15Kb cburst 51599b ### eth0: filtering rules filter parent 1: protocol ip pref 100 u32 filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:10 match 00500000/ffff0000 at 20 # /etc/init.d/htb stats ### eth0: queueing disciplines qdisc htb 1: r2q 100 default 30 direct_packets_stat 342 Sent 4952885 bytes 3583 pkt (dropped 0, overlimits 4838 requeues 0) rate 0bit 0pps backlog 0b 31p requeues 0 qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec Sent 4890985 bytes 3241 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 46934b 31p requeues 0 ### eth0: traffic classes class htb 1:10 parent 1:2 leaf 10: prio 0 rate 1000Kbit ceil 1000Kbit burst 15Kb cburst 2099b Sent 4898555 bytes 3246 pkt (dropped 0, overlimits 0 requeues 0) rate 711048bit 58pps backlog 0b 32p requeues 0 lended: 3214 borrowed: 0 giants: 0 tokens: 85074 ctokens: -23552 class htb 1:2 root rate 100000Kbit ceil 100000Kbit burst 15Kb cburst 51599b Sent 4850107 bytes 3214 pkt (dropped 0, overlimits 0 requeues 0) rate 719224bit 59pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0 tokens: 1012 ctokens: 3981 ### eth0: filtering rules filter parent 1: protocol ip pref 100 u32 filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:10 (rule hit 3608 success 3248) match 00500000/ffff0000 at 20 (success 3248 ) -- np: silence