vendredi 26 août 2016

How to know whether a pointer is in physical memory or it will trigger a Page Fault?

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.

Is there any portable (or linux/windows non-portable) way to check for a particular memory address whether access will trigger a page fault?

Aucun commentaire:

Enregistrer un commentaire