Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2002 16:50:10 +0200
From:      Andy Sporner <sporner@nentec.de>
To:        joy ganguly <ugly_kid_joy@yahoo.co.in>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: mmap and MAP_NOSYNC
Message-ID:  <3D0F48A2.9080902@nentec.de>
References:  <20020618143756.42830.qmail@web8007.mail.in.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
joy ganguly wrote:

>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 ?
>

Is there some reason not to use SYSV shared memory???

Andy



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?3D0F48A2.9080902>