title: How to know whether a pointer is in physical memory or it will trigger a Page Fault?
body: <p>If I have a pointer and I care about memory access performance I may check whether the next operation on it will trigger a page fault. If it will, an algorithm could be designed so that it reorders loop operations to minimize page faults.</p>
  
  <p>Is there any portable (or linux/windows non-portable) way to check for a particular memory address whether access will trigger a page fault?</p>