From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH, RFC] RCU : OOM avoidance and lower latency Date: Fri, 06 Jan 2006 14:09:40 +0100 Message-ID: <43BE6C14.5080904@cosmosbay.com> References: <20060105235845.967478000@sorel.sous-sol.org> <43BE43B6.3010105@cosmosbay.com> <200601061358.42344.ak@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Linus Torvalds , linux-kernel@vger.kernel.org, "David S. Miller" , Dipankar Sarma , "Paul E. McKenney" , Manfred Spraul , netdev@vger.kernel.org Return-path: To: Andi Kleen In-Reply-To: <200601061358.42344.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Andi Kleen a =C3=A9crit : > On Friday 06 January 2006 11:17, Eric Dumazet wrote: >=20 >> I assume that if a CPU queued 10.000 items in its RCU queue, then th= e >> oldest entry cannot still be in use by another CPU. This might sound= s as a >> violation of RCU rules, (I'm not an RCU expert) but seems quite reas= onable. >=20 > I don't think it's a good assumption. Another CPU might be stuck in a= long=20 > running interrupt, and still have a reference in the code running bel= ow > the interrupt handler. >=20 > And in general letting correctness depend on magic numbers like this = is=20 > very nasty. >=20 I agree Andi, I posted a 2nd version of the patch with no more assumpti= ons. Eric