After reading few articles and posts: https://lwn.net/Articles/502612/ mmap, msync(MS_ASYNC) and munmap
I am kind of confused:
1. whether msync really does anything (2nd link above includes a section of a manpage to indicate it doesn't in newer kernels; tho, the first link says it does do something)
2. whether calling msync is necessary if a process might get killed or crashed (but not the OS).
3. how frequent does the kernel flush the mmapped memory back to the "disk"?
Let's say I use kernel 3.10 and 2.6.32.
Thanks.