Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 1998 17:47:24 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        joelh@gnu.org (Joel Ray Holveck), tlambert@primenet.com, DBECK@ludens.elte.hu, freebsd-hackers@FreeBSD.ORG
Subject:   Re: SYSV Semaphores & mmap problems
Message-ID:  <199811240147.RAA11543@apollo.backplane.com>
References:   <199811231937.MAA25048@usr02.primenet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
    The difference between mmap() and SysV shared memory isn't so bad.  The
    mmap()'d file will basically get synced every 30 seconds or so by the
    syncer daemon.  madvise() can be used to pre-fault any pages already in
    the cache.

    I think all that is needed is a way to flag a file so the syncer doesn't
    touch it under normal circumstances, instead allowing its pages to be
    synced by normal paging activity.  You can then madvise(... MADV_FREE)
    the pages after you are through with the shared memory segment to throw
    them away.

						-Matt

    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet 
                    Communications & God knows what else.
    <dillon@backplane.com> (Please include original email in any response)    

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?199811240147.RAA11543>