All of lore.kernel.org
 help / color / mirror / Atom feed
* Table duplication on smp machine
@ 2003-03-31 10:52 Thomas Heinz
  2003-03-31 11:07 ` Harald Welte
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Heinz @ 2003-03-31 10:52 UTC (permalink / raw)
  To: netfilter-devel

Hi

Netfilter maintains different tables for each cpu which is especially
interesting for smp ;-)

This is done - according to the docs - to avoid write locking.
Now, what would be write locked in case we had only one set of
rules:

a) counters
b) match/target write operations to their match/target data

a) is clear. b) not really: if a target/match needs to store
data it would do it the way the limit match does it which
requires an in-module lock mechanism and an ugly pointer in the
private data of the match/target.

Hm, remains a). There must be another reason. Otherwise a lot
of space is wasted just to keep separate per-cpu counter values.

Is there another reason?


Regards

Thomas

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

end of thread, other threads:[~2003-03-31 14:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-31 10:52 Table duplication on smp machine Thomas Heinz
2003-03-31 11:07 ` Harald Welte
2003-03-31 12:06   ` Thomas Heinz
2003-03-31 12:33     ` Harald Welte
2003-03-31 12:50       ` Thomas Heinz
2003-03-31 12:56       ` Patrick Schaaf
2003-03-31 13:34         ` Thomas Heinz
2003-03-31 13:45           ` Patrick Schaaf
2003-03-31 13:51             ` Patrick Schaaf
2003-03-31 14:06             ` Thomas Heinz

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.