I am trying to understand meaning of various Intel performance monitoring counters and also want to measure load stalls using Intel performance monitoring counters available for RESOURCE_STALLS.
The following are approx. per second values for all RESOURCE_STALLS counters for a program running on my system (i.e INTEL_BROADWELL_XEON)
RESOURCE_STALLS.ANY = 522266857
RESOURCE_STALLS.SB = 249785706
RESOURCE_STALLS.ROB = 78120602
RESOURCE_STALLS.RS = 53729085
Questions:
Does RESOURCE_STALLS.SB count store stall cycles?
How to find load stalls?
Can we subtract sum of RESOURCE_STALLS.ROB, RESOURCE_STALLS.SB and RESOURCE_STALLS.RS from RESOURCE_STALLS.ANY to get approximate cycles spent in load stalls?
Thanks,
TS