Y
Hacker News
new
|
ask
|
show
|
jobs
by
eru
169 days ago
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.
1 comments
tmerr
169 days 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).
link