Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!rice!uw-beaver!milton!dali.cs.montana.edu!rpi!zaphod.mps.ohio-state.edu!usc!apple!sun-barr!newstop!exodus!eng.sun.com From: david@eng.sun.com ("Have you driven a Fnord lately?") Newsgroups: comp.unix.wizards Subject: Re: /dev/zero and MAP_ANON (was: Re: GC triggering ...) Message-ID: <546@exodus.Eng.Sun.COM> Date: 23 Jul 90 17:49:45 GMT References: <3260@swi.swi.psy.uva.nl> <58338@bbn.BBN.COM> <3713@auspex.auspex.com> <58352@bbn.BBN.COM> Sender: news@exodus.Eng.Sun.COM Lines: 14 In article <58352@bbn.BBN.COM> lkaplan@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@eng.sun.com