Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Apr 2023 00:42:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270810] munmap does not always sync the underlying file
Message-ID:  <bug-270810-227-li1CnktCr5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270810-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270810-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270810

--- Comment #9 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to geoffrey from comment #8)
The pages sit in the local cache, and pushed to the server by syncer,
periodically.  If you want to push them to server immediately, you need
to fsync(2), not msync(2).

It is the same behavior as for local filesystems: msync(2) only converts
dirty pages into dirty buffers, but does not flush buffers to the storage.
Either periodic syncer run, or fsync(2), writes to the storage.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270810-227-li1CnktCr5>