VM reference trace
Hi,
I am working on a problem which requires to get D: the number of distinct pages (from user files or dynamically allocated or used by the kernel, ...) used by the kernel+user processes in a workload.
One way I thought of is to firstly generate a reference trace, i.e. a sequence of virtual memory addresses accessed by the workload, and then count the the number of distinct addresses in the trace. (assuming the addresses are page addresses).
In fact, I have found a library to do that, but it can only trace single process in userland. And I have to modify, re-compile and re-link the program which I want to trace. That's a bit tedious.
So, I want to ask if there are any better utilities to generate the trace, or any way to get the number D directly.
Thanks in advance!
Signature · 8 lines
regards, ZM -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/