From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f44.google.com (mail-qa0-f44.google.com [209.85.216.44]) by kanga.kvack.org (Postfix) with ESMTP id 3CCDC8299E for ; Tue, 6 May 2014 11:00:28 -0400 (EDT) Received: by mail-qa0-f44.google.com with SMTP id j7so3069517qaq.3 for ; Tue, 06 May 2014 08:00:27 -0700 (PDT) Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [2607:f8b0:400d:c04::230]) by mx.google.com with ESMTPS id t40si4511125qge.104.2014.05.06.08.00.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 08:00:27 -0700 (PDT) Received: by mail-qg0-f48.google.com with SMTP id i50so8004285qgf.21 for ; Tue, 06 May 2014 08:00:26 -0700 (PDT) Date: Tue, 6 May 2014 11:00:17 -0400 From: Jerome Glisse Subject: Re: [RFC] Heterogeneous memory management (mirror process address space on a device mmu). Message-ID: <20140506150014.GA6731@gmail.com> References: <1399038730-25641-1-git-send-email-j.glisse@gmail.com> <20140506102925.GD11096@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: Peter Zijlstra , linux-mm , Linux Kernel Mailing List , linux-fsdevel , Mel Gorman , "H. Peter Anvin" , Andrew Morton , Linda Wang , Kevin E Martin , Jerome Glisse , Andrea Arcangeli , Johannes Weiner , Larry Woodman , Rik van Riel , Dave Airlie , Jeff Law , Brendan Conoboy , Joe Donohue , Duncan Poole , Sherry Cheung , Subhash Gutti , John Hubbard , Mark Hairgrove , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , Haggai Eran , Or Gerlitz , Sagi Grimberg , Shachar Raindel , Liran Liss , Roland Dreier , "Sander, Ben" , "Stoner, Greg" , "Bridgman, John" , "Mantor, Michael" , "Blinzer, Paul" , "Morichetti, Laurent" , "Deucher, Alexander" , "Gabbay, Oded" , Davidlohr Bueso On Tue, May 06, 2014 at 07:57:02AM -0700, Linus Torvalds wrote: > On Tue, May 6, 2014 at 3:29 AM, Peter Zijlstra wrote: > > > > So you forgot to CC Linus, Linus has expressed some dislike for > > preemptible mmu_notifiers in the recent past: > > Indeed. I think we *really* should change that anonvma rwsem into an > rwlock. We had performance numbers that showed it needs to be done. > > The *last* thing we want is to have random callbacks that can block in > this critical region. So now I think making it an rwlock is a good > idea just to make sure that never happens. > > Seriously, the mmu_notifiers were misdesigned to begin with, and much > too deep. We're not screwing up the VM any more because of them. > > Linus So question becomes how to implement process address space mirroring without pinning memory and track cpu page table update knowing that device page table update is unbound can not be atomic from cpu point of view. Cheers, Jerome -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org