[Bug 270810] munmap does not always sync the underlying file
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 270810] munmap does not always sync the underlying file"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Apr 2023 00:42:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270810 --- 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. -- You are receiving this mail because: You are the assignee for the bug.