Thread (65 messages) flat view 65 messages, 11 authors, 2017-10-24

Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support

From: Christopher Lameter <hidden>
Date: 2017-10-13 15:42:44
Also in: linux-mm, lkml

On Fri, 13 Oct 2017, Michal Hocko wrote:
On Fri 13-10-17 10:20:06, Cristopher Lameter wrote:
quoted
On Fri, 13 Oct 2017, Michal Hocko wrote:
[...]
quoted
quoted
I am not really convinced this is a good interface. You are basically
trying to bypass virtual memory abstraction and that is quite
contradicting the mmap API to me.
This is a standardized posix interface as described in our presentation at
the plumbers conference. See the presentation on contiguous allocations.
Are you trying to desing a generic interface with a very specific and HW
dependent usecase in mind?
There is a generic posix interface that could we used for a variety of
specific hardware dependent use cases.
quoted
The contiguous allocations are particularly useful for the RDMA API which
allows registering user space memory with devices.
then make those devices expose an implementation of an mmap which does
that. You would get both a proper access control (via fd), accounting
and others.
There are numerous RDMA devices that would all need the mmap
implementation. And this covers only the needs of one subsystem. There are
other use cases.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help