From owner-freebsd-stable Mon Feb 22 22:36:17 1999 Delivered-To: freebsd-stable@freebsd.org Received: from dfw-ix14.ix.netcom.com (dfw-ix14.ix.netcom.com [206.214.98.14]) by hub.freebsd.org (Postfix) with ESMTP id 77E1E11029 for ; Mon, 22 Feb 1999 22:36:15 -0800 (PST) (envelope-from phate1@ix.netcom.com) Received: (from smap@localhost) by dfw-ix14.ix.netcom.com (8.8.4/8.8.4) id AAA11758; Tue, 23 Feb 1999 00:35:38 -0600 (CST) Received: from user-38ld2j4.dialup.mindspring.com(209.86.138.100) by dfw-ix14.ix.netcom.com via smap (V1.3) id rma011743; Tue Feb 23 00:35:18 1999 Message-ID: <36D24CF7.71CFD869@ix.netcom.com> Date: Tue, 23 Feb 1999 01:38:47 -0500 From: Mike Organization: Integration Soft. X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: Luigi Rizzo Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Software bandwidth limiting solution References: <199902230356.EAA18677@labinfo.iet.unipi.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Checking versions... FreeBSD 3.0-STABLE #10: Tue Feb 2 15:08:13 EST 1999 ip_fw.c: $Id: ip_fw.c,v 1.103 1998/12/31 07:43:29 luigi Exp $ ip_dummynet.c $Id: ip_dummynet.c,v 1.7 1999/01/12 16:43:52 eivind Exp $ ip_output.c $Id: ip_output.c,v 1.85 1998/12/21 21:36:40 luigi Exp $ my rules are basically ipfw pipe 1 config bw 5Mb/s queue 0 or ipfw pipe 1 config bw 5Mb/s queue 10 plr 0.010 either way sooner or later mbufs are exhausted.. Mike Luigi Rizzo wrote: > > > Hello, > > > > I'm running 3.0-Stable. > > > > I'm trying to limit bandwidth to one of the boxes to to below 5Mbps (it's > > eating up a full 10Mbps lan).. > > Specifically just limit port 80 (web traffic) so I can telnet/ftp without > > any lag.. > > > > I tried dummynet, but it only seems to queue incoming packets, which results > > in me running out of my mbufs (8192 total), and the system reboots. > > 1) what dummynet rules are you using ? it seems to me that you are doing > something wrong with them; a single pipe never queues more than 100 > pkts (mbuf clusters) and almost certainly you want to set a much > lower limit. don't know how you can hit 8192. > 2) dummynet has had some bugs in the past which i have tried to fix (see > e.g. recent commits to ip_output.c), so you'd have to tell me > precisely what version of ip_fw.c, ip_dummynet.c and ip_output.c you > are running. > > > Can a software solution handle this? Or would I need something hardware > > based? > > dummynet is good for hard limits, altq is good for flexible bandwidth > allocation without hard limits. > > cheers > luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message