From: j.glisse@gmail.com Subject: Heterogeneous memory management v2 Date: Thu, 12 Jun 2014 14:33:44 -0400 Message-ID: <1402598029-3331-1-git-send-email-j.glisse@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: , linux-mm , , "Linus Torvalds" , "Mel Gorman" , "H. Peter Anvin" , "Peter Zijlstra" , "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" Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org This is a v2 of the hmm patchset. I intentionaly removed the remote memor= y support from this version as i would like to see the basic hmm foundation merge for next kernel (3.17). It apply on top of linux-next. Below is the nutshell and motivation for hmm. Anyone more curious should refer to my previous email as it contains a deeper analysis. I should str= ess again that dedicated video memory is not vanishing on the contrary the bandwidth and latency gap between system memory and dedicated video memor= y is growing. Also as stated in previous discusion, hmm can only be implemented using t= he mmu_notifier api (or it would need to insert callback in all same spot as the mmu_notifier). What hmm needs can not be achieve during tlb flush. In a nutshell: The heterogeneous memory management (hmm) patchset implement a new api th= at sit on top of the mmu notifier api. It provides a simple api to device dr= iver to mirror a process address space without having to lock or take referenc= e on page and block them from being reclam or migrated. Any changes on a proce= ss address space is mirrored to the device page table by the hmm code. To ac= hieve this not only we need each driver to implement a set of callback function= s but hmm also interface itself in many key location of the mm code and fs code= . Moreover hmm allow to migrate range of memory to the device remote memory= to take advantages of its lower latency and higher bandwidth. The why: We want to be able to mirror a process address space so that compute api = such as OpenCL or other similar api can start using the exact same address spa= ce on the GPU as on the CPU. This will greatly simplify usages of those api. Mo= reover we believe that we will see more and more specialize unit functions that = will want to mirror process address using their own mmu. Cheers, J=C3=A9r=C3=B4me Glisse To: "Andrew Morton" , Cc: , Cc: linux-mm , Cc: , Cc: "Linus Torvalds" , Cc: "Mel Gorman" , Cc: "H. Peter Anvin" , Cc: "Peter Zijlstra" , Cc: "Linda Wang" , Cc: "Kevin E Martin" , Cc: "Jerome Glisse" , Cc: "Andrea Arcangeli" , Cc: "Johannes Weiner" , Cc: "Larry Woodman" , Cc: "Rik van Riel" , Cc: "Dave Airlie" , Cc: "Jeff Law" , Cc: "Brendan Conoboy" , Cc: "Joe Donohue" , Cc: "Duncan Poole" , Cc: "Sherry Cheung" , Cc: "Subhash Gutti" , Cc: "John Hubbard" , Cc: "Mark Hairgrove" , Cc: "Lucien Dunning" , Cc: "Cameron Buschardt" , Cc: "Arvind Gopalakrishnan" , Cc: "Haggai Eran" , Cc: "Or Gerlitz" , Cc: "Sagi Grimberg" Cc: "Shachar Raindel" , Cc: "Liran Liss" , Cc: "Roland Dreier" , Cc: "Sander, Ben" , Cc: "Stoner, Greg" , Cc: "Bridgman, John" , Cc: "Mantor, Michael" , Cc: "Blinzer, Paul" , Cc: "Morichetti, Laurent" , Cc: "Deucher, Alexander" , Cc: "Gabbay, Oded" , -- 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