Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755044AbYBTMcz (ORCPT ); Wed, 20 Feb 2008 07:32:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751299AbYBTMcp (ORCPT ); Wed, 20 Feb 2008 07:32:45 -0500 Received: from host36-195-149-62.serverdedicati.aruba.it ([62.149.195.36]:37801 "EHLO mx.cpushare.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751242AbYBTMco (ORCPT ); Wed, 20 Feb 2008 07:32:44 -0500 Date: Wed, 20 Feb 2008 13:32:36 +0100 From: Andrea Arcangeli To: Robin Holt Cc: Nick Piggin , akpm@linux-foundation.org, Avi Kivity , Izik Eidus , kvm-devel@lists.sourceforge.net, Peter Zijlstra , general@lists.openfabrics.org, Steve Wise , Roland Dreier , Kanoj Sarcar , steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com, Christoph Lameter Subject: Re: [PATCH] mmu notifiers #v6 Message-ID: <20080220123235.GX7128@v2.random> References: <20080219084357.GA22249@wotan.suse.de> <20080219135851.GI7128@v2.random> <20080219231157.GC18912@wotan.suse.de> <20080220010941.GR7128@v2.random> <20080220103942.GU7128@v2.random> <20080220113313.GD11364@sgi.com> <20080220120324.GW7128@v2.random> <20080220122424.GE11364@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080220122424.GE11364@sgi.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1685 Lines: 30 On Wed, Feb 20, 2008 at 06:24:24AM -0600, Robin Holt wrote: > We do not need to do any allocation in the messaging layer, all > structures used for messaging are allocated at module load time. > The allocation discussions we had early on were about trying to > rearrange you notifiers to allow a seperate worker thread to do the > invalidate and then the main thread would spin waiting for the worker to > complete. That was canned by the moving your notifier to before the > lock was grabbed which led us to the point of needing a _begin and _end. I thought you called some net/* function inside the mmu notifier methods. Those always require several ram allocations internally. > So, fundamentally, how would they be different? Would we be required to > add another notifier list to the mm and have two seperate callout > points? Reduction would end up with the same half-registered > half-not-registered situation you point out above. Then further > reduction would lead to the elimination of the callouts you have just > proposed and using the _begin/_end callouts and we are back to > Christoph's current patch. Did you miss Nick's argument that we'd need to change some VM lock to mutex and solve lock issues first? Are you implying mutex are more efficient for the VM? (you may seek support from preempt-rt folks at least) or are you implying the VM would better run slower with mutex in order to have a single config option? -- 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/