I've been doing some research on madvise.
Example:
https://www.youtube.com/watch?v=bg6-LVCHmGM&feature=youtu.be&t=1h13m24s
Does madvise(___, ___, MADV_DONTNEED) instruct the OS to lazily write to disk?
This indicates that the dirty pages will not be written to disk if madvise is called.
Is the behavior of posix_fadvise the same when called with POSIX_FADV_DONTNEED?
If the behavior is the same, what happens when posix_fadvise is called for a file that is opened in two separate files?
Do the dirty pages on the other process get evicted without being written to disk?