Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757250AbbDWCeq (ORCPT ); Wed, 22 Apr 2015 22:34:46 -0400 Received: from gate.crashing.org ([63.228.1.57]:37595 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbbDWCen (ORCPT ); Wed, 22 Apr 2015 22:34:43 -0400 Message-ID: <1429756456.4915.22.camel@kernel.crashing.org> Subject: Re: Interacting with coherent memory on external devices From: Benjamin Herrenschmidt To: Christoph Lameter Cc: Jerome Glisse , paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jglisse@redhat.com, mgorman@suse.de, aarcange@redhat.com, riel@redhat.com, airlied@redhat.com, aneesh.kumar@linux.vnet.ibm.com, Cameron Buschardt , Mark Hairgrove , Geoffrey Gerfin , John McKenna , akpm@linux-foundation.org Date: Thu, 23 Apr 2015 12:34:16 +1000 In-Reply-To: References: <20150421214445.GA29093@linux.vnet.ibm.com> <1429663372.27410.75.camel@kernel.crashing.org> <20150422005757.GP5561@linux.vnet.ibm.com> <1429664686.27410.84.camel@kernel.crashing.org> <20150422163135.GA4062@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1645 Lines: 38 On Wed, 2015-04-22 at 12:14 -0500, Christoph Lameter wrote: > > > Bottom line is we want today anonymous, share or file mapped memory > > to stay the only kind of memory that exist and we want to choose the > > backing store of each of those kind for better placement depending > > on how memory is use (again which can be in the total control of > > the application). But we do not want to introduce a third kind of > > disjoint memory to userspace, this is today situation and we want > > to move forward to tomorrow solution. > > Frankly, I do not see any benefit here, nor a use case and I wonder who > would adopt this. The future requires higher performance and not more band > aid. You may not but we have a large number of customers who do. In fact I'm quite surprised, what we want to achieve is the most natural way from an application perspective. You have something in memory, whether you got it via malloc, mmap'ing a file, shmem with some other application, ... and you want to work on it with the co-processor that is residing in your address space. Even better, pass a pointer to it to some library you don't control which might itself want to use the coprocessor .... What you propose can simply not provide that natural usage model with any efficiency. It might not be *your* model based on *your* application but that doesn't mean it's not there, and isn't relevant. Ben. -- 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/