Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eru
· 11mo ago · 0 comments
You can do something like that, but you still need to be able to tell your OS when you want to sync what writes to disk.
Comments
[–]
tmerr
11mo ago
Yes the situation sounds similar to regular files to me. Iiuc mmap can implicitly sync to files, but it is only guaranteed after unmapped (akin to closing a file) or an explicit call to msync (akin to fflush).