opensubscriber
   Find in this group all groups
 
Unknown more information…

n : netfilter-devel@lists.netfilter.org 8 September 2007 • 9:59PM -0400

Re: [RFC] iptables namespaces
by Jan Engelhardt

REPLY TO AUTHOR
 
REPLY TO GROUP





On Sep 8 2007 13:28, Steven Van Acker wrote:
>
>it's remarkable that we have never tried it this way before.
>I tested adding 10000 lines with iptables, then using iptables-save and
>iptables-restore. The difference in speed is amazing. With iptables it
>takes 5 minutes and 10 seconds, while iptables-restore takes 0.3
>seconds.

Well obviously. Because *for EACH* iptables command that you run,
it does a load and store. That, by definition, takes O(n*(n+1));
where iptables-restore is like O(n) for n rules.



Jan
--

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.