mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* shared memory, mmap not recommended?
@ 2000-12-05  7:36 Peter.Ronnquist
  2000-12-05  7:43 ` Peter Samuelson
  0 siblings, 1 reply; 3+ messages in thread
From: Peter.Ronnquist @ 2000-12-05  7:36 UTC (permalink / raw)
  To: linux-kernel

Hello,

In a recent posting Linus Torvalds mentioned
(http://marc.theaimsgroup.com/?l=linux-kernel&m=97598683318724&w=2) :

> (otherwise I'll just end up disabling shared mmap - I doubt anybody really
uses it anyway, but it would be more polite to just support it).

I was thinking about using mmap for shared mememory in my program, but now I
am reconsidering. 
Is the System V or Posix mechanism for shared memory a better(it will be
supported in 2.4) choice?

(I am not subscribed to the mailing list so please CC your eventual reply)

BR
Peter Rönnquist            
Software Engineer
Nokia Home Communications
email: peter.ronnquist@nokia.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: shared memory, mmap not recommended?
@ 2000-12-05  8:02 Peter.Ronnquist
  0 siblings, 0 replies; 3+ messages in thread
From: Peter.Ronnquist @ 2000-12-05  8:02 UTC (permalink / raw)
  To: peter; +Cc: linux-kernel


>   [Linus]
> > > (otherwise I'll just end up disabling shared mmap - I 
> doubt anybody
> > > really uses it anyway, but it would be more polite to just support
> > > it).
> 
> [Peter Rönnquist]
> > I was thinking about using mmap for shared mememory in my program,
> > but now I am reconsidering.  Is the System V or Posix mechanism for
> > shared memory a better(it will be supported in 2.4) choice?
> 
> [Peter Samuelson]
> Linus was talking about shared mmap on a file in an smbfs filesystem.
> Rather different from what you are talking about.  For regular shared
> memory, shared mmap should be OK if you actually need backing store
> (i.e. the state you are sharing is persistent).  Often this is not the
> case, in which case POSIX shm might be best.
> 

I see, thanks a lot for the clarification.

BR
Peter Rönnquist
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-05  8:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-05  7:36 shared memory, mmap not recommended? Peter.Ronnquist
2000-12-05  7:43 ` Peter Samuelson
2000-12-05  8:02 Peter.Ronnquist

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®