Re: [PATCH 01/14] x86/cqm: Intel Resource Monitoring Documentation

From: David Carrillo-Cisneros
Date: Tue Dec 27 2016 - 16:39:46 EST

The perf overhead i was thinking atleast was during the context switch which
> is the more constant overhead (the event creation is just one time).
> -I was trying to see an alternative where
> 1.user specifies the continuous monitor with perf-attr in open
> 2.driver allocates the task/cgroup RMID and stores the RMID in cgroup or
> task_struct
> 3.turns off the event. (hence no perf ctx switch overhead? (all the perf
> hook calls for start/stop/add we dont need any of those -
> i was still finding out if this route works basically if i turn off the
> event there is minimal overhead for the event and not start/stop/add calls
> for the event.)
> 4.but during switch_to driver writes the RMID MSR, so we still monitor.
> -> calls the driver -> driver just returns the count by reading the

This option breaks user expectations about an event. If an event is
closed, it's gone.
It shouldn't leave some state behind.

Do you have thoughts about adding the one cgroup file to
the intel_cmt pmu directory?