Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Dec 1999 09:21:52 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        freebsd-hackers@freebsd.org
Subject:   Getting a new MAP_ flag into mmap() prior to 4.x freeze
Message-ID:  <199912081721.JAA37897@apollo.backplane.com>

next in thread | raw e-mail | index | archive | help
    I would like to add a new MAP_ flag to mmap() prior to the 4.x freeze.
    The purpose of the flag is to prevent the syncer from syncing the 
    file underlying the map.  The VM system will still page to the file as
    needed and, of course, the data will remain consistent with the file.

    This will allow normal files to be used to back (for example) shared 
    memory without incuring the extra overhead that sync causes every 30 
    seconds.  Currently it is not possible to use normal files in this
    fashion (verses using MAP_ANON, for which sharability is limited, or
    SysV shared memory which often has unexpected limitations) and still 
    have an efficient system.

    The flag will be called MAP_NOSYNC

    Operationally, the syncer will not sync the file while any mmap()'s
    exist with that flag set.  Once such flagged maps go away, the syncer 
    will be able to sync the file (if it still exists).

    Comments are welcome.

						-Matt



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?199912081721.JAA37897>