All of lore.kernel.org
 help / color / mirror / Atom feed
* "Atomic" snapshot of counters
@ 2003-01-24  0:35 Thomas Heinz
  2003-01-31 11:45 ` Harald Welte
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Heinz @ 2003-01-24  0:35 UTC (permalink / raw)
  To: netfilter-devel

Hi

Netfilter produces an atomic snapshot of counters, i.e. the table is
locked during the gathering of the counter values. Of course no packet
is matched while this lock is active.

How important is it to have such an atomic snapshot? The reason why
I'm asking this question is because Michael and I intend to implement
the nf-hipac rule listing (and especially the counter gathering)
mechanism in a way that it does not interrupt the packet matching.
This obviously implies that the counter snapshot cannot be atomic and
is therefore inaccurate in some way.
For example consider a chain A containing two rules x and y.
Now we fix the counter value of x and just before fixing the counter
value of y a packet matching x and y is processed. This packet would
only appear in the counter for y but not in the one for x.

Does this really matter or is it in fact unimportant because the error
is very marginal compared to the absolute counter values (not to forget
the performance gain).

Thanks for your rating.


Regards,

Thomas

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

end of thread, other threads:[~2003-01-31 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-24  0:35 "Atomic" snapshot of counters Thomas Heinz
2003-01-31 11:45 ` Harald Welte
2003-01-31 23:28   ` 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.