Date: Tue, 18 Jun 2002 07:37:56 -0700 (PDT) From: joy ganguly <ugly_kid_joy@yahoo.co.in> To: freebsd-hackers@FreeBSD.ORG Subject: mmap and MAP_NOSYNC Message-ID: <20020618143756.42830.qmail@web8007.mail.in.yahoo.com>
next in thread | raw e-mail | index | archive | help
Hi all, Hi, I want to use mmap as a means of doing IPC between unrelated processes. I do *not* want the data to hit the disk. So this is what I do :- fd = open(file, O_RDWR); p = mmap(fd, MAP_NOSYNC | MAP_SHARED); mlock(p, len); /* Whack around with shmem */ Now my question is , once I have wired the shared memory region, is it possible that the data still hits the disk ? One would think the pager will not look at wired pages. Is that correct ? Thanks in advance. Joy __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com 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?20020618143756.42830.qmail>