Issue
I want to track the access count of pages by a application with swap enable.
Does modify mark_page_accessed
to implement it is possible?
Or other solution which is more elegant and convenient?
If it can be done in user space that would be better, plz give me some tips.
Thanks!
I have googled but could not find a specific solution. It would be great if you can give some tips.
Solution
A smapling way works by clearing the pte bits constantly and Working Set Size (WSS) Tools (https://github.com/brendangregg/wss) is a good choice.
Answered By - s9mmy Answer Checked By - David Marino (WPSolving Volunteer)