From owner-freebsd-stable Mon Feb 22 22:17:16 1999 Delivered-To: freebsd-stable@freebsd.org Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (Postfix) with SMTP id A1F58113ED for ; Mon, 22 Feb 1999 22:17:13 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id EAA18677; Tue, 23 Feb 1999 04:56:00 +0100 From: Luigi Rizzo Message-Id: <199902230356.EAA18677@labinfo.iet.unipi.it> Subject: Re: Software bandwidth limiting solution To: phate1@ix.netcom.com Date: Tue, 23 Feb 1999 04:56:00 +0100 (MET) Cc: freebsd-stable@FreeBSD.ORG In-Reply-To: <000d01be5eac$87517140$29e76dd1@dialup.phate.com> from "phate1@ix.netcom.com" at Feb 22, 99 04:44:03 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1081 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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