From: peltz@cerl.uiuc.edu (Steve Peltz)
Subject: Re: Q: "orphaned" shared memory segments
Date: 26 Jul 1994 16:43:19 GMT [thread overview]
Message-ID: <313ef7$dtg@vixen.cso.uiuc.edu> (raw)
In-Reply-To: potterCtK1o8.98F@netcom.com
In article <potterCtK1o8.98F@netcom.com>,
David Potter <potter@netcom.com> wrote:
>This is quite normal for shared memory. Even programs that
>end normally leave their shared memory around, unless they explicitly
>remove it.
More than normal; it is required behavior. A program can detach, then
re-attach, and expect to find data still there.
I don't think that segments that are not currently mapped into a process
are actually locked into physical memory, even if they aren't deleted.
As far as I can tell, they only take up swap space (is there a separate
swap area for shared memory segments?).
Also, it looks to me as if you can delete a segment even while it is
in use, and not cause any problems for those processes that already have
it attached. In fact, I don't see any real difference between using
shared memory segments and doing mmap()/mlock() (except that mlock()
is privileged, and you can keep segments persistent over a reboot, and
you have more flexibility as to naming a segment - the whole UNIX file
system name space).
next prev parent reply other threads:[~1994-07-26 16:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-25 18:30 Q: "orphaned" shared memory segments Peyton Bland
1994-07-26 0:45 ` Andy Jacobson
1994-07-26 14:33 ` Peyton Bland
1994-07-26 15:57 ` David Potter
1994-07-26 16:43 ` Steve Peltz [this message]
1994-07-26 22:02 ` Peter da Silva
1994-07-28 0:39 ` Steve Peltz
1994-07-28 14:42 ` Peter da Silva
1994-07-28 20:06 ` Steve Peltz
1994-07-29 15:24 ` Peter da Silva
1994-07-29 8:58 ` Burkhard Neidecker-Lutz
1994-07-29 15:26 ` Peter da Silva
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox