From owner-freebsd-ipfw@FreeBSD.ORG Tue Aug 10 21:03:20 2010 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 011ED1065678 for ; Tue, 10 Aug 2010 21:03:20 +0000 (UTC) (envelope-from naptu@front.ru) Received: from web22.pochta.ru (web22.pochta.ru [82.204.219.122]) by mx1.freebsd.org (Postfix) with ESMTP id 722818FC18 for ; Tue, 10 Aug 2010 21:03:19 +0000 (UTC) Received: from [127.0.0.1] (port=51289 helo=localhost) by web22.pochta.ru ( sendmail 8.13.3/8.13.1) with esmtp id 1OivXB-00038Z-Db for freebsd-ipfw@freebsd.org; Wed, 11 Aug 2010 00:34:53 +0400 From: napTu 3aH To: freebsd-ipfw@freebsd.org Date: Wed, 11 Aug 2010 00:34:53 +0400 Message-Id: <125e044817534e9d9a74b38941a808c1e664050f@mail.qip.ru> X-Priority: 3 MIME-Version: 1.0 X-SpamTest-Envelope-From: naptu@front.ru X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 15109 [Aug 10 2010] X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: traffic bandwidth limit with dummynet X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 21:03:20 -0000 >thank you luigi,=0A>your explanation really cleared everything out for= me.=0A>i changed my pipe 1 config to:=0A>ipfw pipe 1 config bw 800Mbits= /s queue 200K=0A>and set HZ to 4000=0A>and this solved my problem comple= tely.=0A>i checked limitations with various values between 400Mbits/s to= more than 1000Mbits/s and it works like a charm.=0A>(the problem was wh= en i set queue to 80MBytes, queue value was actually set to "80 slots")= =0A=0A>thanks again luigi.=0A=0A=0Aplease look at PR on near problem wit= h dummynet : http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/147245 .= =0A=0AHere =9Amaximum shaping speed is limited to 11.999Mbit/s with HZ= =3D1000 and net.inet.ip.dummynet.io_fast:1, higher values do not shape t= raffic anymore.=0A=0ASecond problem, when pipe not worked correctly, =9A= downloading traffic to one ip,port from multiple sources.=0A=0AWith HZ= =3D2000,=9A maximum shaping speed is limited on 23.999Mbit/s