I have an app that uses multiple memory mapped files. If I check the major page faults numbers (with
/proc/<pid>/stat), they skyrocket.
I was wondering if it's possible to monitor somehow what memory mapped files are affected by the page swap ins and outs for a process?
At least I would like to see see what mmap-ed files are accessed for a process. I tried with strace, but I found no reads, because I guess no system calls are needed for the direct access to memory.
I would be happy also to know the virtual address in process space where they happen, so at least I could map them manually to the files in pmap output