Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 03:39:19 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        Artis Caune <ac@latnet.lv>
Cc:        freebsd-ipfw@freebsd.org
Subject:   Re: loading lot of rules takes very long time
Message-ID:  <20031106033919.A65661@xorpc.icir.org>
In-Reply-To: <20031106110605.E785D43FF2@mx1.FreeBSD.org>; from ac@latnet.lv on Thu, Nov 06, 2003 at 01:04:31PM %2B0200
References:  <20031106110605.E785D43FF2@mx1.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
most likely, because you are not using "-n", the printing
code will use the nameserver to try and resolve addresses, and
if halfway through you are limiting/blocking access to the
nameserver you incur in timeouts.

To tell the truth i suspect you have a quite poorly designed
ruleset if you are adding individual rules and pipes for each
client. Almost surely you should make use of masks in pipes,
and address sets in rules, to reduce the size of your ruleset
to something manageable and efficient.

	cheers
	luigi


On Thu, Nov 06, 2003 at 01:04:31PM +0200, Artis Caune wrote:
> Hello,
> 
> We have about 10000-20000 pipes for
> different subnets, and it takes very long
> time to load them - about 10-15min.
> 
> 92.8% interrupt,  0.0% idle
> 
> strange that things slow down when count
> reaches 2000-2500 rules.
> 
> is there something we can do to speed things up?
> 
> rules are added like:
>   ipfw -q add 1 pipe 1 src-ip 1.1.1.1 out via em0
>   ipfw pipe 1 config bw 30Kbytes/s queue 10
>   ...
> soo 'ipfw' is invoked '2 x client_count' !!!
> 
> maybe ipfw need feature like:
> ipfw -f /etc/rc.firewall
> 
> 
> 
> # FreeBSD-4.9, IPFW2,
> # HZ=2000, DEVICE_POLLING,
> # 1G RAM, 2.4xeon on Intel server board
> 
> 
> 
> 
> 
> .....
> Artis
> 
> 
> _______________________________________________
> freebsd-ipfw@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw
> To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"



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