From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Heinz Subject: Table duplication on smp machine Date: Mon, 31 Mar 2003 12:52:06 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <3E881DD6.8090206@hipac.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org 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