From: Matthew Wilcox <willy@infradead.org>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>,
"linux-s390@vger.kernel.org" <linux-s390@vger.kernel.org>,
Rich Felker <dalias@libc.org>,
"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
"linux-sh@vger.kernel.org" <linux-sh@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
ALSA development <alsa-devel@alsa-project.org>,
USB list <linux-usb@vger.kernel.org>,
"James E.J. Bottomley" <jejb@parisc-linux.org>,
"J. Bruce Fields" <bfields@fieldses.org>,
Max Filippov <jcmvbkbc@gmail.com>,
Paul Mackerras <paulus@samba.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
"H. Peter Anvin" <hpa@zytor.com>,
sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org,
Cyrille Pitchen <cyrille.pitchen@atmel.com>,
Linux API <linux-api@vger.kernel.org>,
Jeff
Subject: Re: [RFC PATCH 00/13] Introduce first class virtual address spaces
Date: Wed, 15 Mar 2017 09:57:36 -0700 [thread overview]
Message-ID: <20170315165736.GE4033@bombadil.infradead.org> (raw)
In-Reply-To: <CALCETrX5gv+zdhOYro4-u3wGWjVCab28DFHPSm5=BVG_hKxy3A@mail.gmail.com>
On Wed, Mar 15, 2017 at 09:51:31AM -0700, Andy Lutomirski wrote:
> > VAS segments on the other side allow sharing of pure in memory data by
> > arbitrary related tasks without the need of a file. This becomes especially
> > interesting if one combines VAS segments with non-volatile memory since one can keep
> > data structures in the NVM and still be able to share them between multiple tasks.
>
> What's wrong with regular mmap?
I think it's the usual misunderstandings about how to use mmap.
From the paper:
Memory-centric computing demands careful organization of the
virtual address space, but interfaces such as mmap only give limited
control. Some systems do not support creation of address regions at
specific offsets. In Linux, for example, mmap does not safely abort if
a request is made to open a region of memory over an existing region;
it simply writes over it.
The correct answer of course, is "Don't specify MAP_FIXED". Specify the
'hint' address, and if you don't get it, either fix up your data structure
pointers, or just abort and complain noisily.
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2017-03-15 16:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CALCETrXKvNWv1OtoSo_HWf5ZHSvyGS1NsuQod6Zt+tEg3MT5Sg@mail.gmail.com>
2017-03-14 16:12 ` [RFC PATCH 00/13] Introduce first class virtual address spaces Till Smejkal
[not found] ` <CALCETrX5gv+zdhOYro4-u3wGWjVCab28DFHPSm5=BVG_hKxy3A@mail.gmail.com>
2017-03-15 16:57 ` Matthew Wilcox [this message]
2017-03-15 19:44 ` Till Smejkal
[not found] <20170315220952.GA1435@intel.com>
2017-03-15 23:18 ` Till Smejkal
[not found] <CALCETrXfGgxaLivhci0VL=wUaWAnBiUXC47P7TUaEuOYV_-X_g@mail.gmail.com>
2017-03-15 22:02 ` Till Smejkal
2017-03-16 8:21 ` Thomas Gleixner
2017-03-16 17:29 ` Till Smejkal
2017-03-16 17:42 ` Thomas Gleixner
2017-03-16 17:50 ` Till Smejkal
[not found] <20170315194723.GJ1693@brightrain.aerifal.cx>
2017-03-15 21:30 ` Till Smejkal
[not found] <8d9333d6-2f81-a9de-484e-e1d655e1d3c3@mellanox.com>
2017-03-14 21:14 ` Till Smejkal
[not found] <fa60d132-0eef-4350-3c88-1558f447a48f@twiddle.net>
2017-03-14 1:31 ` Till Smejkal
2017-03-13 22:14 Till Smejkal
2017-03-14 0:18 ` Richard Henderson
2017-03-14 0:39 ` Till Smejkal
2017-03-14 0:58 ` Andy Lutomirski
2017-03-14 2:07 ` Till Smejkal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170315165736.GE4033@bombadil.infradead.org \
--to=willy@infradead.org \
--cc=alsa-devel@alsa-project.org \
--cc=benh@kernel.crashing.org \
--cc=bfields@fieldses.org \
--cc=cyrille.pitchen@atmel.com \
--cc=dalias@libc.org \
--cc=heiko.carstens@de.ibm.com \
--cc=hpa@zytor.com \
--cc=jcmvbkbc@gmail.com \
--cc=jejb@parisc-linux.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-hexagon@vger.kernel.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).