title: Does POSIX_FADV_DONTNEED remove dirty pages from other processes on Linux?
body: <p>I've been doing some research on madvise.</p>
  
  <p>Example:</p>
  
  <p><a href="https://www.youtube.com/watch?v=bg6-LVCHmGM&amp;feature=youtu.be&amp;t=1h13m24s" rel="nofollow noreferrer">https://www.youtube.com/watch?v=bg6-LVCHmGM&amp;feature=youtu.be&amp;t=1h13m24s</a></p>
  
  <p><a href="https://stackoverflow.com/questions/14968309/does-madvise-madv-dontneed-instruct-the-os-to-lazily-write-to-disk">Does madvise(___, ___, MADV_DONTNEED) instruct the OS to lazily write to disk?</a></p>
  
  <p>This indicates that the dirty pages will not be written to disk if madvise is called.</p>
  
  <p>Is the behavior of posix_fadvise the same when called with POSIX_FADV_DONTNEED?</p>
  
  <p>If the behavior is the same, what happens when posix_fadvise is called for a file that is opened in two separate files?</p>
  
  <p>Do the dirty pages on the other process get evicted without being written to disk?</p>