Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754926AbYJGIcF (ORCPT ); Tue, 7 Oct 2008 04:32:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751991AbYJGIbw (ORCPT ); Tue, 7 Oct 2008 04:31:52 -0400 Received: from casper.infradead.org ([85.118.1.10]:59238 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618AbYJGIbv (ORCPT ); Tue, 7 Oct 2008 04:31:51 -0400 Subject: Re: [PATCH 3/3] Convert the UDP hash lock to RCU From: Peter Zijlstra To: David Miller Cc: dada1@cosmosbay.com, minyard@acm.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, shemminger@vyatta.com, paulmck@linux.vnet.ibm.com In-Reply-To: <20081006.144002.56418911.davem@davemloft.net> References: <20081006185026.GA10383@minyard.local> <48EA8197.6080502@cosmosbay.com> <20081006.144002.56418911.davem@davemloft.net> Content-Type: text/plain Date: Tue, 07 Oct 2008 10:31:30 +0200 Message-Id: <1223368290.26330.10.camel@lappy.programming.kicks-ass.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 981 Lines: 26 On Mon, 2008-10-06 at 14:40 -0700, David Miller wrote: > From: Eric Dumazet > Date: Mon, 06 Oct 2008 23:22:31 +0200 > > > Me wondering what impact this synchronize_rcu() can have on mono-threaded > > VOIP applications using lot of UDP sockets. What is the maximum delay of > > this function ? > > The cost is enormous, we really can't use it here. > > I have a patch that did top-level socket destruction using RCU, > and that didn't use synchronize_rcu(), and that killed connection > rates by up to %20. Did you ever figure out why you lost those 20% ? > I can only imagine what the cost would be if I had to add such a call > in there. Yeah, sync_rcu() is rediculously expensive, at best 3 jiffies IIRC. -- 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/