Tell me, is there a page in memory?

Is there any way to tell (on UNIX) which of the process memory pages are in RAM and which were unloaded?

+3
source share
2 answers

There is no portable way. You can prevent replacing pages with mlockor mlockall(but this requires sufficient permissions), or you can use a non-portable method. On Linux, the file kpageflagsin /procwith the file pagemapin the process directory in /procshould be sufficient to provide you with information. They are documented in the Linux source Documentation.

+1
source

Not in portable mode.

, . , , , , .

+2

All Articles