Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 1999 01:38:47 -0500
From:      Mike <phate1@ix.netcom.com>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Software bandwidth limiting solution
Message-ID:  <36D24CF7.71CFD869@ix.netcom.com>
References:  <199902230356.EAA18677@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36D24CF7.71CFD869>