Re: remap_file_pages() use

From: Kirill A. Shutemov
Date: Mon May 19 2014 - 10:35:52 EST


Michal Hocko wrote:
> [CCing Kirill and other people involved]
>
> On Sun 18-05-14 00:03:28, Kenny Simpson wrote:
> > I saw that remap_file_pages() was possibly going away to be replaced
> > by some emulation. I've used this call in several projects over the
> > years mostly as a way of mapping multiple virtual memory pages to
> > alias the same private or shared memory region (to do things like
> > circular buffers). mmap()
> > in the case of anonymous memory doesn't work as well since there is
> > not a file descriptor to reference.
> >
> > Would this sort of thing be supported in the emulation, or should I be
> > planning on reimplementing/rewriting some things?

>From functional POV, emulation *should* be identical to original
remap_file_pages(), but slower. It would be nice, if you test it early.

It's not clear yet how long emulation will be there.
Is there a reason why you can't use fd from shared memory (shm_open() or
direct open() on /dev/shm/xxx)?

--
Kirill A. Shutemov
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/