On Fri, Jun 18, 2021 at 5:56 PM Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx> wrote: > [...] > >> > >> If I understand what you are saying is you desire the kernel to provide > >> the interface to expose performance information like > >> "X% of accesses of high priority jobs is from high tier", > > > > I think we can estimate "X% of accesses to high tier" using existing > > perf/PMU counters. So, no new interface. > > Using a perf counter will be okay to do for user space daemon, but I > think there will be objections from people that the kernel > take away a perf counter to collect perf data in kernel. > This is one possible policy. I would not focus too much on it unless someone says they want exactly that. In that case we can brainstorm how to provide general infrastructure to enforce such policies. Basically this is like an SLO and the violation triggers the balancing (which can be in use space or kernel and a separate discussion).