All of lore.kernel.org
 help / color / mirror / Atom feed
* adding rules - slow
@ 2007-07-27 21:30 Július Bemš
  2007-07-27 21:38 ` John A. Sullivan III
  0 siblings, 1 reply; 6+ messages in thread
From: Július Bemš @ 2007-07-27 21:30 UTC (permalink / raw)
  To: netfilter

Hi,

When I need to add som rules (in my case 100) to some chain it takes various
time, depending on the number of existing rules in the chain. So when I add
100 rules to empty chain, it takes 1.8sec. If tehere is 1000 rules int the
chain, it takes 4.5sec and if there is 10000 rules it takes 21sec. 

My problem is, that i need to add this rules to chain which contains 20000
rules in short time. I think, that the way of adding rules into chain is
very innefective. 

Could someone tell me how the adding works internally? What data structures
are used? Because I need solve this and find the way how to add new rules
quickly.

Thanks for replies



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

end of thread, other threads:[~2007-08-01  7:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-27 21:30 adding rules - slow Július Bemš
2007-07-27 21:38 ` John A. Sullivan III
2007-07-27 22:31   ` Tom Eastep
2007-08-01  7:24   ` Július Bemš
2007-08-01  7:29     ` Eric Leblond
2007-08-01  7:40     ` Покотиленко Костик

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.