All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christopher Quinn <cq@htec.demon.co.uk>
To: Mark Hahn <hahn@physics.mcmaster.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Interprocess shared memory .... but file backed?
Date: Fri, 08 Mar 2002 16:05:38 +0000	[thread overview]
Message-ID: <3C88E152.5070201@htec.demon.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.33.0203081049360.15002-100000@coffee.psychology.mcmaster.ca>

Mark Hahn wrote:

>>>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.
>>
> 
> right, and that's not what Unix provides.  in particular, mmap
> is a means for apps to be polite, not for them to strongarm
> the kernel.  in particular, if you mmap a file, much of the point
> is that the kernel chooses how much of the state is in ram or 
> on disk.  you can, of course, msync, or even munmap.
> 
> 
> 

Seems a bit restrictive to me. After all Unix is not an 
ossified standard! :)
Assuming clone() actually page table shares the vm covered 
by a mmap(MAP_PRIVATE) in the way I want, it isn't much to 
ask to be more *restrictive* on sharing?

So far, it's looking as if my ideal is unattainable with the 
current kernel.
Anyone disagree?


-- 
rgrds,
Chris Quinn


       reply	other threads:[~2002-03-08 16:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.33.0203081049360.15002-100000@coffee.psychology.mcmaster.ca>
2002-03-08 16:05 ` Christopher Quinn [this message]
2002-03-08 15:08 Interprocess shared memory .... but file backed? Christopher Quinn
2002-03-08 15:32 ` Alan Cox
2002-03-08 15:30   ` Christopher Quinn
2002-03-08 19:20     ` H. Peter Anvin
2002-03-08 15:51 ` Richard B. Johnson

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=3C88E152.5070201@htec.demon.co.uk \
    --to=cq@htec.demon.co.uk \
    --cc=hahn@physics.mcmaster.ca \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.