Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753526AbZAUUe2 (ORCPT ); Wed, 21 Jan 2009 15:34:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752107AbZAUUeT (ORCPT ); Wed, 21 Jan 2009 15:34:19 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:49808 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751319AbZAUUeS (ORCPT ); Wed, 21 Jan 2009 15:34:18 -0500 Date: Wed, 21 Jan 2009 12:34:20 -0800 (PST) Message-Id: <20090121.123420.145043842.davem@davemloft.net> To: shemminger@vyatta.com Cc: ebiederm@xmission.com, tj@kernel.org, mingo@elte.hu, rusty@rustcorp.com.au, herbert@gondor.apana.org.au, akpm@linux-foundation.org, hpa@zytor.com, brgerst@gmail.com, cl@linux-foundation.org, travis@sgi.com, linux-kernel@vger.kernel.org, steiner@sgi.com, hugh@veritas.com, netdev@vger.kernel.org, mathieu.desnoyers@polymtl.ca Subject: Re: [PATCH] percpu: add optimized generic percpu accessors From: David Miller In-Reply-To: <20090121234502.66acbcf9@s6510> References: <4976B82E.1080002@kernel.org> <20090121234502.66acbcf9@s6510> X-Mailer: Mew version 6.1 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: 804 Lines: 18 From: Stephen Hemminger Date: Wed, 21 Jan 2009 23:45:01 +1100 > This is crap. only a small fraction of these SNMP counters are > close enough to the hot path to deserve per-cpu treatment. Only if your router/firewall/webserver isn't hitting that code path which bumps the counters you think aren't hot path. It's a micro-DoS waiting to happen if we start trying to split counters up into groups which matter for hot path processing (and thus use per-cpu stuff) and those which don't (and thus use atomics or whatever your idea is). -- 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/