Date: Wed, 4 Oct 2000 14:25:26 -0700 (PDT) From: FengYue <fengyue@bluerose.windmoon.nu> To: freebsd-hackers@FreeBSD.ORG Subject: anonymous memory map vs mmap on /dev/zero Message-ID: <Pine.BSF.4.10.10010041412130.9343-100000@bluerose.windmoon.nu> In-Reply-To: <Pine.NEB.3.96L.1000929152853.26541A-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 (R&W) among all child processes. It seems that mmap on /dev/zero is more portable. Thanks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10010041412130.9343-100000>