From owner-freebsd-hackers Tue Jun 18 7:38:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web8007.mail.in.yahoo.com (web8007.in.yahoo.com [203.199.70.94]) by hub.freebsd.org (Postfix) with SMTP id D078637B422 for ; Tue, 18 Jun 2002 07:38:06 -0700 (PDT) Message-ID: <20020618143756.42830.qmail@web8007.mail.in.yahoo.com> Received: from [65.115.46.162] by web8007.mail.in.yahoo.com via HTTP; Tue, 18 Jun 2002 07:37:56 PDT Date: Tue, 18 Jun 2002 07:37:56 -0700 (PDT) From: joy ganguly Subject: mmap and MAP_NOSYNC To: freebsd-hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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