The HyperNews Linux KHG Discussion Pages

Question: how to track VM page access sequence?

Forum: The Linux Kernel Hackers' Guide
Keywords: Virtual Memory, page access
Date: Sat, 22 Nov 1997 02:26:54 GMT
From: shawn <>

Does anyone know how one can keep track of VM page access sequence numbers of some application programs? One way I thought was to mark each virtual page as protected at allocation time, so an access to such a page will result a page fault, which is much easier to record. However, I couldn't find any kernel functions that will lock only one virtual page. The functions I found were just marking an entire virtual memory area as not readable, not writable, etc. I am trying to create some user application program page access profiles. Any hints are greatly appreciated.