From owner-freebsd-ipfw@FreeBSD.ORG Tue Feb 21 14:35:33 2006 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 C3F7F16A420 for ; Tue, 21 Feb 2006 14:35:33 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8157E43D45 for ; Tue, 21 Feb 2006 14:35:33 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id k1LEZXr4063351; Tue, 21 Feb 2006 06:35:33 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id k1LEZXpe063350; Tue, 21 Feb 2006 06:35:33 -0800 (PST) (envelope-from rizzo) Date: Tue, 21 Feb 2006 06:35:33 -0800 From: Luigi Rizzo To: Donald Baud Message-ID: <20060221063533.A63214@xorpc.icir.org> References: <20060221141201.44390.qmail@web37406.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20060221141201.44390.qmail@web37406.mail.mud.yahoo.com>; from donaldbaud@yahoo.com on Tue, Feb 21, 2006 at 06:12:01AM -0800 Cc: freebsd-ipfw@freebsd.org Subject: Re: Patch to add burst to 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, 21 Feb 2006 14:35:33 -0000 On Tue, Feb 21, 2006 at 06:12:01AM -0800, Donald Baud wrote: > Looking back in the mailing archives http://docs.freebsd.org/cgi/getmsg.cgi?fetch=62536+0+archive/2003/freebsd-ipfw/20030907.freebsd-ipfw , I found a message saying that it would be trivial to add burst support in dummynet. > In that message, it says to change in ip_dummynet.c : > > - if (len_scaled > q->numbytes ) > + if (len_scaled > q->numbytes + q->burst_size) > > I did that, even tried len_scaled = 0 > But I don't see any difference after recompiling, kldunload/kldload dummynet. > > I still get the same throughput with wget --progress=dot some_file of course you get the same throughput! the burst is just a constant in the time it takes to transfer data, and it is independent of the data size. irrespective of the file size you'll just finish (burst_size/bandwidth) seconds earlier. cheers luigi