title: fadvise vs madvise? can I use both together?
body: <p>I'm randomly reading data (each read &lt; page size) throughout a huge file (far too big to fit in memory).</p>
  
  <p>I normally set <code>MADV_DONTNEED</code>, but looking at the docs + info it seems I instead need <code>FADV_NOREUSE</code>.</p>
  
  <p>I'm not really getting how <code>madvise()</code> and <code>fadvise()</code> work together. Are they synonymous? Does it matter if I prefer one or the other? Can they be used together? Are they different kernel subsystems? Is <code>FADV_NOREUSE</code> what I'm looking for to gain optimal performance?</p>