All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Heinz <creatix@hipac.org>
To: netfilter-devel@lists.netfilter.org
Subject: Table duplication on smp machine
Date: Mon, 31 Mar 2003 12:52:06 +0200	[thread overview]
Message-ID: <3E881DD6.8090206@hipac.org> (raw)

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

             reply	other threads:[~2003-03-31 10:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-31 10:52 Thomas Heinz [this message]
2003-03-31 11:07 ` Table duplication on smp machine 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E881DD6.8090206@hipac.org \
    --to=creatix@hipac.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.