Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755963AbZDKBZd (ORCPT ); Fri, 10 Apr 2009 21:25:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754699AbZDKBZT (ORCPT ); Fri, 10 Apr 2009 21:25:19 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:56868 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754409AbZDKBZR (ORCPT ); Fri, 10 Apr 2009 21:25:17 -0400 Date: Fri, 10 Apr 2009 18:25:07 -0700 (PDT) Message-Id: <20090410.182507.140306636.davem@davemloft.net> To: shemminger@vyatta.com Cc: jeff.chua.linux@gmail.com, dada1@cosmosbay.com, jengelh@medozas.de, kaber@trash.net, r000n@r000n.net, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: iptables very slow after commit784544739a25c30637397ace5489eeb6e15d7d49 From: David Miller In-Reply-To: <20090410095246.4fdccb56@s6510> References: <20090410095246.4fdccb56@s6510> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1451 Lines: 34 From: Stephen Hemminger Date: Fri, 10 Apr 2009 09:52:46 -0700 [ CC:'ing netfilter-devel and netdev... ] > On Fri, 10 Apr 2009 17:15:52 +0800 (SGT) > Jeff Chua wrote: > >> >> >> Adding 200 records in iptables took 6.0sec in 2.6.30-rc1 compared to >> 0.2sec in 2.6.29. I've bisected down this commit. >> >> There are a few patches on top of the original patch. When I reverted the >> original commit + changing rcu_read() to rcu_read_bh(), it speeds up the >> inserts back to .2sec again. >> >> I'm loading all the firewall rules during boot-up and this 6 secs slowness >> is really not very nice to wait for. > > The performance benefit during operation is more important. The load > time is fixable. The problem is probably generic to any set of rules, > but could you post some info about your configuration (like the rule > set), and the system configuration (# of cpu's, config etc). > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/