title: How can I maximize mmap performance?
body: <p>I'm using <code>mmap</code> to read/write a file that I'm using in a database-like way. The file is much larger than available RAM. My use case is single-process, multi-threaded. How can I maximize the performance of accessing the mmap'd memory? </p>
  
  <p>I'm assuming I should use <code>MAP_PRIVATE</code> rather than <code>MAP_SHARED</code> to take advantage of copy-on-write.</p>
  
  <p>Is there any performance advantage to using <code>MAP_POPULATE</code> and/or <code>MAP_NONBLOCK</code>?</p>
  
  <p>Are there any other performance-related things I should consider when using mmap?</p>