Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2006 03:39:46 -0700 (PDT)
From:      Alvin Oga <aoga@mail.Linux-Consulting.com>
To:        freebsd-ipfw@freebsd.org
Cc:        Alvin Oga <aoga@mail.Linux-Consulting.com>
Subject:   Re: ipfw versions - /usr/src/sbin
Message-ID:  <200610171039.k9HAdkua024264@Maggie.Linux-Consulting.com>
In-Reply-To: <200610060938.k969cCiO020772@Maggie.Linux-Consulting.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > Alvin Oga wrote:
> >  
> > i need to change the lines:
> > 	#
> > 	# line 3484 in ipfw2.c  v1.99 
> > 	#
> > 	if ( p.fs.qsize > 100 )
> > 	    errx ( EX_DATAERR, "2 <= queue size <= 100 )
> > 
> > the 100 need to be changed to 10,000  to allow for a bigger queue 
> > according to the customer that wants to use ipfw + dummynet for
> > testing gigE thruput
> 
...
>
> src/sys/netinet/ip_dummynet.c:
> 
> set_fs_parms(struct dn_flow_set *x, struct dn_flow_set *src)
> {
>    x->flags_fs = src->flags_fs;
>    x->qsize = src->qsize;
>    x->plr = src->plr;
>    x->flow_mask = src->flow_mask;
>    if (x->flags_fs & DN_QSIZE_IS_BYTES) {
>        if (x->qsize > 1024*1024)
>            x->qsize = 1024*1024 ;
>    } else {
>        if (x->qsize == 0)
>            x->qsize = 50 ;
>        if (x->qsize > 100)
>            x->qsize = 50 ;

we're changing the 100 to 10000

>    }

...

> If I just remove this limit, will I hit some other limits in
> dummynet code (except overall KVA or UMA zone limit)?

there's other equivalent ( gigE ) changes we're making in:

	src/sys/dev/em/if/en.h
	/etc/sysctl.conf
	ipfw2.c
	DUMMYNET kernel ( modified GENERIC )
	.. and still hunting for more options to see if we can go
	.. bigger and faster than the generic bear

c ya
alvin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610171039.k9HAdkua024264>