Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbWAFOqa (ORCPT ); Fri, 6 Jan 2006 09:46:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751459AbWAFOq3 (ORCPT ); Fri, 6 Jan 2006 09:46:29 -0500 Received: from [81.2.110.250] ([81.2.110.250]:3492 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S1751451AbWAFOq3 (ORCPT ); Fri, 6 Jan 2006 09:46:29 -0500 Subject: Re: [PATCH, RFC] RCU : OOM avoidance and lower latency From: Alan Cox To: Eric Dumazet Cc: Linus Torvalds , linux-kernel@vger.kernel.org, "David S. Miller" , Dipankar Sarma , "Paul E. McKenney" , Manfred Spraul , netdev@vger.kernel.org In-Reply-To: <43BE77F1.4090301@cosmosbay.com> References: <20060105235845.967478000@sorel.sous-sol.org> <20060106004555.GD25207@sorel.sous-sol.org> <43BE43B6.3010105@cosmosbay.com> <1136554632.30498.7.camel@localhost.localdomain> <43BE77F1.4090301@cosmosbay.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 06 Jan 2006 14:45:12 +0000 Message-Id: <1136558713.30498.21.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 945 Lines: 20 On Gwe, 2006-01-06 at 15:00 +0100, Eric Dumazet wrote: > In the case of call_rcu_bh(), you can be sure that the caller cannot afford > 'sleeping memory allocations'. Better drop a frame than block the stack, no ? atomic allocations can't sleep and will fail which is fine. If memory allocation pressure exists for sleeping allocations because of a large rcu backlog we want to be sure that the rcu backlog from the networking stack or other sources does not cause us to OOM kill or take incorrect action. So if for example we want to grow a process stack and the memory is there just stuck in the RCU lists pending recovery we want to let the RCU recovery happen before making drastic decisions. - 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/