/dev/zero and MAP_ANON (was: Re: GC triggering ...)
Have you driven a Fnord lately?
david at eng.sun.com
Tue Jul 24 03:49:45 AEST 1990
In article <58352 at bbn.BBN.COM> lkaplan at BBN.COM (Larry Kaplan) writes:
>Here is a question for you about mmap of /dev/zero. Is this a useful feature
>for unrelated processes to share memory? ...
>Are there any other ways to share zero-filled memory
>without consuming disk space (as with regular mapped files) for unrelated
>processes in these operating systems?
In SunOS you have to either use System V shared memory (which you can't
really depend on since it's a kernel option), or use tmpfs (memory based
filesystem, also a kernel option) and have the processes map a file on a
tmpfs filesystem (usually /tmp).
--
David DiGiacomo, Sun Microsystems, Mt. View, CA david at eng.sun.com
More information about the Comp.unix.wizards
mailing list