Hi nvdimm@,

In the perf tool there are metrics for platforms like cascade lake
where we're collecting data for optane memory [1] but if optane memory
isn't installed then the counters will always read 0. Is there a
relatively simple way of determining if Optane memory is installed?
For example, the presence of a file in /sys/devices. I'd like to
integrate detection of this and make the perf metrics more efficient
for the case where Optane memory isn't installed.

Thanks,
Ian Rogers

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json#n1134

Reply via email to