Re: [PATCH 0/4] x86: Add Cache QoS Monitoring (CQM) support

From: Tejun Heo
Date: Sat Jan 04 2014 - 17:51:33 EST


On Sat, Jan 04, 2014 at 10:43:00PM +0000, Waskiewicz Jr, Peter P wrote:
> Simply put, when we want to allocate an RMID for monitoring httpd
> traffic, we can create a new child in the subsystem hierarchy, and
> assign the httpd processes to it. Then the RMID can be assigned to the
> subsystem, and each process inherits that RMID. So instead of dealing
> with assigning an RMID to each and every process, we can leverage the
> existing cgroup mechanisms for grouping processes and their children to
> a group, and they inherit the RMID.

Here's one thing that I don't get, possibly because I'm not
understanding the processor feature too well. Why does the processor
have to be aware of the grouping? ie. why can't it be done
per-process and then aggregated? Is there something inherent about
the monitored events which requires such peculiarity? Or is it that
accessing the stats data is noticieably expensive to do per context

> Please let me know if this is a better explanation, and gives a better
> picture of why we decided to approach the implementation this way. Also
> note that this feature, Cache QoS Monitoring, is the first in a series
> of Platform QoS Monitoring features that will be coming. So this isn't
> a one-off feature, so however this first piece gets accepted, we want to
> make sure it's easy to expand and not impact userspace tools repeatedly
> (if possible).

In general, I'm quite strongly opposed against using cgroup as
arbitrary grouping mechanism for anything other than resource control,
especially given that we're moving away from multiple hierarchies.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at