Re: Interprocess shared memory .... but file backed?

H. Peter Anvin
2002-03-08T19:21:09Z

Followup to: <3C88D930.2080308@htec.demon.co.uk>
By author: Christopher Quinn <cq@htec.demon.co.uk>
In newsgroup: linux.dev.kernel
>
> > well MAP_PRIVATE is "dont share" so not with that 8)
> > Use MAP_SHARED and you'll get what you want
> >
> Certainly true! But MAP_SHARED gives uncontrolled flush of
> dirty data - so that's out for me. I only want 'privacy' to
> extend to the right to make changes permanent at my own
> discretion.
>

I actually have this issue as well, in order to make LPSM sharable it
would be greatly beneficial to have something that would allow
multiple processes to see the same mmap, but for writes not to hit the
backing store file.

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>