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

Christopher Quinn
2002-03-08T15:31:44Z

Alan Cox wrote:

>>However as far as I can tell this is anonymous memory only.
>>Are there any options if one initially maps a disk file via
>>mmap (in particular MAP_PRIVATE) for sharing that vm, such
>>
>
> 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.

Chris Q.

--
rgrds,
Chris Quinn