On a Linux machine, I need to count the number of read
and write
accesses to memory
(DRAM) performed by a process. The machine has a NUMA configuration and I am binding the process to access memory from a single remote NUMA node using numactl
. The process is running on CPUs in node 0 and accessing memory in node 1.
Currently, I am using perf to count the number of LLC load miss
and LLC store miss
events to serve as an estimate for read and write accesses to memory. Because, I guessed LLC misses will need to be served by memory accesses. Is this approach correct i.e. is this event relevant ? And, are there any alternatives to obtain the read
and write
access information ?
Processor : Intel Xeon E5-4620 Kernel : Linux 3.9.0+