All of lore.kernel.org
 help / color / mirror / Atom feed
* rule limitations?
@ 2007-08-13 23:48 Nesser, Phil
  2007-08-29 18:53 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Nesser, Phil @ 2007-08-13 23:48 UTC (permalink / raw)
  To: netfilter-devel@lists.netfilter.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

For relatively obscure reasons, I am trying to build a set of rules that run into the hundreds of thousands.  I was experimenting on a Redhat Release 5 machine with 2.6.18 kernel and 1.3.5  iptables.  I was able to load around 340k rules before getting an error of iptables-restore: line XXXXXX failed.

So I try it out on a server (much beefier, 8G ram, dual quad core 2GHz proc) running the same kernel/iptables versions.  This time it died in the same way at about 40k rules.  After some research I found a log message on Vmalloc failures, so I figured what the hell and rebuilt the server using the 64 bit version of RH 5.  Now no more vmalloc failures, but still dies at around 40k entries.

I am more than happy to build a custom kernel if that what I need to do.  I have poked around the sources and it is not obvious what needs to change.

Any help would be appreciated.

Thanks!

- - --->  Phil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)

iD8DBQFGwO22a2RfHGe2XK4RAieYAJ4zyhQ9TZVfCmVIn6PQYzXP5SsSPgCfRmxW
AoW2WX8lau75nY7WzGnPpjA=
=BM8m
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rule limitations?
  2007-08-13 23:48 rule limitations? Nesser, Phil
@ 2007-08-29 18:53 ` Patrick McHardy
  2007-09-02  7:43   ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2007-08-29 18:53 UTC (permalink / raw)
  To: Nesser, Phil; +Cc: netfilter-devel@lists.netfilter.org

Nesser, Phil wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> For relatively obscure reasons, I am trying to build a set of rules that run into the hundreds of thousands.  I was experimenting on a Redhat Release 5 machine with 2.6.18 kernel and 1.3.5  iptables.  I was able to load around 340k rules before getting an error of iptables-restore: line XXXXXX failed.
> 
> So I try it out on a server (much beefier, 8G ram, dual quad core 2GHz proc) running the same kernel/iptables versions.  This time it died in the same way at about 40k rules.  After some research I found a log message on Vmalloc failures, so I figured what the hell and rebuilt the server using the 64 bit version of RH 5.  Now no more vmalloc failures, but still dies at around 40k entries.
> 
> I am more than happy to build a custom kernel if that what I need to do.  I have poked around the sources and it is not obvious what needs to change.
> 
> Any help would be appreciated.


What error message do you get (or if its too unspecific, what does
strace show)?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: rule limitations?
  2007-08-29 18:53 ` Patrick McHardy
@ 2007-09-02  7:43   ` Jesper Dangaard Brouer
  0 siblings, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2007-09-02  7:43 UTC (permalink / raw)
  To: Nesser, Phil; +Cc: netfilter-devel@lists.netfilter.org, Patrick McHardy


> Nesser, Phil wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> 
>> For relatively obscure reasons, I am trying to build a set of rules that 
>> run into the hundreds of thousands.  I was experimenting on a Redhat 
>> Release 5 machine with 2.6.18 kernel and 1.3.5  iptables.  I was able to 
>> load around 340k rules before getting an error of iptables-restore: line 
>> XXXXXX failed.
>> 
>> So I try it out on a server (much beefier, 8G ram, dual quad core 2GHz 
>> proc) running the same kernel/iptables versions.  This time it died in 
>> the same way at about 40k rules.  After some research I found a log 
>> message on Vmalloc failures, so I figured what the hell and rebuilt the 
>> server using the 64 bit version of RH 5.  Now no more vmalloc failures, 
>> but still dies at around 40k entries.
>> 
>> I am more than happy to build a custom kernel if that what I need to do. 
>> I have poked around the sources and it is not obvious what needs to 
>> change.
>> 
>> Any help would be appreciated.

You are limited by vmalloc space.

See, my previous explaination:
http://lists.netfilter.org/pipermail/netfilter-devel/2006-October/025879.html

Hilsen
   Jesper Brouer

--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-02  7:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-13 23:48 rule limitations? Nesser, Phil
2007-08-29 18:53 ` Patrick McHardy
2007-09-02  7:43   ` Jesper Dangaard Brouer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.