Messages in this thread | | | Date | Wed, 2 Dec 2015 18:15:21 +0100 | From | Peter Zijlstra <> | Subject | Re: [PATCH 3/7] perf: Migrate perf to use new tick dependency mask model |
| |
On Wed, Dec 02, 2015 at 06:03:14PM +0100, Frederic Weisbecker wrote: > Right, I can do either that or I can move the dependency to the CPU level > and count nr_freq to the cpu_ctx when any ctx gets scheduled in/out. Then > everytime we inc and nr_freq == 1, we set the dependency (all that should > be serialized as it only happens locally).
Doing it per CPU would, as you say, add accounting crap to the context switch path. Now given that context switches with perf enabled are already silly expensive that might just fall away into the noise.
| |