From owner-freebsd-ipfw@FreeBSD.ORG Wed Mar 4 21:09:09 2009 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 1D0F2106567C for ; Wed, 4 Mar 2009 21:09:09 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id D3ECB8FC18 for ; Wed, 4 Mar 2009 21:09:08 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 47068730A6; Wed, 4 Mar 2009 22:14:09 +0100 (CET) Date: Wed, 4 Mar 2009 22:14:09 +0100 From: Luigi Rizzo To: Sebastian Mellmann Message-ID: <20090304211409.GA29824@onelab2.iet.unipi.it> References: <49AED3B1.1060209@net.t-labs.tu-berlin.de> <20090304210017.GA29615@onelab2.iet.unipi.it> <49AEED31.8060801@net.t-labs.tu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49AEED31.8060801@net.t-labs.tu-berlin.de> User-Agent: Mutt/1.4.2.3i Cc: freebsd-ipfw@freebsd.org Subject: Re: ipfw (dummynet) adds delay, but not configured to do so 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: Wed, 04 Mar 2009 21:09:11 -0000 On Wed, Mar 04, 2009 at 10:05:53PM +0100, Sebastian Mellmann wrote: > > > On Wed, Mar 04, 2009 at 08:17:05PM +0100, Sebastian Mellmann wrote: > > > >> Hi everyone! > >> > >> I hope this is the right place to ask. > >> > >> I've got a IPFW ruleset that looks like this: > >> > >> cmd=ipfw > >> bottleneck_bandwidth=100Mbit/s > >> in_if="em0" > >> > >> $cmd pipe 500 config bw $bottleneck_bandwidth > >> $cmd add pipe 500 all from any to any via $in_if > >> > > > > the delay that a packet experiences corresponds to len/bandwidth, > > often rounded up to the next clock tick (1ms is the default). > > You get one delay inbound, one delay outbound, so that's 2ms. > > > > > Is there any chance to change this clock tick to a lower value? > I think it's the 'HZ=' option in the kernel config isn't it? yes. i believe there is a tunable (so you don't need to rebuild the kernel) but i do not remember exactly which one. cheers luigi