Re: anonymous memory map vs mmap on /dev/zero

2000-10-05 Thread jdp
In article [EMAIL PROTECTED], Ronald G Minnich [EMAIL PROTECTED] wrote: On Wed, 4 Oct 2000, FengYue wrote: It seems that mmap on /dev/zero is more portable. no really, It won't work at all correctly on linux, and on Tru64 it does the totally wrong thing, but the (fd = -1, MAP_ANONYMOUS)

anonymous memory map vs mmap on /dev/zero

2000-10-04 Thread FengYue
Hi, excluding the extra kernel calls of open()/close() on /dev/zero, which one of the following would be more efficient: 1) Using mmap on /dev/zero 2) Using mmap with MAP_ANON flag The purpose is, ofcourse, to share the memory (RW) among all child processes. It seems that mmap on /dev/zero

Re: anonymous memory map vs mmap on /dev/zero

2000-10-04 Thread Ronald G Minnich
On Wed, 4 Oct 2000, FengYue wrote: It seems that mmap on /dev/zero is more portable. no really, It won't work at all correctly on linux, and on Tru64 it does the totally wrong thing, but the (fd = -1, MAP_ANONYMOUS) does the right thing on tru64. It's disappointing that this works so