From owner-freebsd-ipfw@FreeBSD.ORG Thu Aug 11 16:59:13 2005 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8477A16A41F for ; Thu, 11 Aug 2005 16:59:13 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D8543D49 for ; Thu, 11 Aug 2005 16:59:13 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 684E95DE1; Thu, 11 Aug 2005 12:59:12 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28048-01; Thu, 11 Aug 2005 12:59:11 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-79-217.ny325.east.verizon.net [68.161.79.217]) by pi.codefab.com (Postfix) with ESMTP id B09BE5CEA; Thu, 11 Aug 2005 12:59:10 -0400 (EDT) Message-ID: <42FB83E1.5020706@mac.com> Date: Thu, 11 Aug 2005 12:59:13 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050801 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Volodya Pelekh References: <1591062177.20050811190036@mail.lviv.ua> <42FB7A5A.5060802@mac.com> <875355983.20050811194820@mail.lviv.ua> In-Reply-To: <875355983.20050811194820@mail.lviv.ua> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-ipfw@freebsd.org Subject: Re: Problem 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: Thu, 11 Aug 2005 16:59:13 -0000 Volodya Pelekh wrote: > Yes it set at default value > sysctl kern.clockrate > kern.clockrate: { hz = 100, tick = 10000, profhz = 1024, stathz = 128 } > > but in freebsd 4.5, 5.3 in my network this set in HZ 100 too, and i > have not this problem on those computers How much of a difference changing HZ makes may depend on a lot of things such as whether you are using device polling, etc, but if you care about reducing the latency observed by network stats to below 10 ms, adding: kern.hz="1000" ...to /boot/loader.conf and rebooting is definitely worth the try. As the manpage for dummynet itself says: Generally, the following options are required: options IPFIREWALL options DUMMYNET options HZ=1000 # strongly recommended Additionally, one may want to increase the number of mbuf clusters (used to store network packets) according to the sum of the bandwidth-delay products and queue sizes of all configured pipes. Also, you ought to upgrade that 4.5 system to 4.11 if you can, there are some significant security issues which have been issued between the two, BTW. -- -Chuck