* system time going up with many rules updates
@ 2006-01-26 8:46 Sebastian Heidl
2006-01-26 10:00 ` Jakub Wartak
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Heidl @ 2006-01-26 8:46 UTC (permalink / raw)
To: netfilter
Hello List,
I have some moderately busy (in terms of traffic) firewalls that are
spending quite a lot CPU time in %system (> 70%) when there are a lot of
updates to the netfilter rules.
My question is: How can I lower the system time to enable the machines
to handle more traffic ? Specifically, would nf-hipac or other netfilter
projects help here ?
These are 2.8GHz Xeon Machines with 512 MB RAM and GbE interfaces.
During the "high-system-time period" they are forwarding about 30 Mbit/s
traffic.
The netfilter chains structure is as follows (only FORWARD is relevant):
Chain FORWARD (policy DROP)
*** publicly available services ***
*** jump to chain with authenticated users ***
*** services for authenticated users ***
The last rule in the auth-chain is a REJECT so only authenticated users
can access the private services. When a user logs in successfully a rule
is added to the auth-chain, when he logs out the rule is deleted.
At the mentioned high-system-time periods there are about 10 updates
(add/delete) to the auth-chain per second.
I'm thankful for any advice.
_sh_
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: system time going up with many rules updates
2006-01-26 8:46 system time going up with many rules updates Sebastian Heidl
@ 2006-01-26 10:00 ` Jakub Wartak
2006-01-26 11:33 ` Sebastian Heidl
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Wartak @ 2006-01-26 10:00 UTC (permalink / raw)
To: netfilter
Dnia czwartek, 26 stycznia 2006 09:46, Sebastian Heidl napisa³:
> Hello List,
>
> I have some moderately busy (in terms of traffic) firewalls that are
> spending quite a lot CPU time in %system (> 70%) when there are a lot of
> updates to the netfilter rules.
> My question is: How can I lower the system time to enable the machines
> to handle more traffic ? Specifically, would nf-hipac or other netfilter
> projects help here ?
>
> These are 2.8GHz Xeon Machines with 512 MB RAM and GbE interfaces.
> During the "high-system-time period" they are forwarding about 30 Mbit/s
> traffic.
>
> The netfilter chains structure is as follows (only FORWARD is relevant):
>
> Chain FORWARD (policy DROP)
> *** publicly available services ***
> *** jump to chain with authenticated users ***
> *** services for authenticated users ***
>
> The last rule in the auth-chain is a REJECT so only authenticated users
> can access the private services. When a user logs in successfully a rule
> is added to the auth-chain, when he logs out the rule is deleted.
>
> At the mentioned high-system-time periods there are about 10 updates
> (add/delete) to the auth-chain per second.
>
> I'm thankful for any advice.
> _sh_
You could try ipsets, in my production systems they are rock solid stable.
Uptimes over 60 days are no problem ( except for power outages ). You don't
have to modify iptables rules just ipsets which far more effective. I'm
pushing over 1200 clients on P4 3GHz ( about 25-30 mbps , 50% cpu load, but
this machine also is running netflow probe... network cards: pure e100, every
client gets HFSC queue with SFQ qdisc, IMQ is also helping a little bit to
get VOIP prio. over P2P - to detect p2p i use ipp2p ). I heard even that
someone is pushing much more than that on dual Opterons ( 2 x 242 i suppose )
--
Jakub Wartak
-vnull
FreeBSD/OpenBSD/Linux/Solaris/Network Administrator
http://vnull.pcnet.com.pl/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: system time going up with many rules updates
2006-01-26 10:00 ` Jakub Wartak
@ 2006-01-26 11:33 ` Sebastian Heidl
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Heidl @ 2006-01-26 11:33 UTC (permalink / raw)
To: Jakub Wartak; +Cc: netfilter
On Thu, 2006-01-26 at 11:00 +0100, Jakub Wartak wrote:
> Dnia czwartek, 26 stycznia 2006 09:46, Sebastian Heidl napisa³:
> > I have some moderately busy (in terms of traffic) firewalls that are
> > spending quite a lot CPU time in %system (> 70%) when there are a lot of
> > updates to the netfilter rules.
> > My question is: How can I lower the system time to enable the machines
> > to handle more traffic ? Specifically, would nf-hipac or other netfilter
> > projects help here ?
> >...
> You could try ipsets, in my production systems they are rock solid stable.
Ok, I think the iphash type of set would be the right one here. Are
there any docs about the lookup/insert/update times under load ?
> I'm
> pushing over 1200 clients on P4 3GHz ( about 25-30 mbps , 50% cpu load, but
> this machine also is running netflow probe... network cards: pure e100
I'm running netflow too, NICs are e1000, currently we have a little over
3000 clients at peak times.
Thanks for the reply.
_sh_
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-26 11:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-26 8:46 system time going up with many rules updates Sebastian Heidl
2006-01-26 10:00 ` Jakub Wartak
2006-01-26 11:33 ` Sebastian Heidl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox