Re: [patch] Performance Counters for Linux, v4

From: Paul Mackerras
Date: Fri Jan 16 2009 - 20:28:42 EST

Corey Ashford writes:

> Over time, it seems clear that we will see multi-core processor designs
> with increasingly large uncore/nest facilities, so this could become
> more and more of an issue.

Those nest events still get counted on counters that are in the CPU
core, right? So that sounds like they can be counted by one or more
per-cpu perf_counter instances. That means that you're measuring them
across all processes. Does it make any sense to try to attribute
those events to individual processes? How would one do that?

Clearly, something has to know enough about the system topology to
know how many counters are needed and which (virtual) cpus they should
be on. At present that defaults to userspace, but we could extend
perf_counters to handle it in the kernel by adding 'core' and 'node'
specifiers to the hw_event structure (assuming a three-level node /
core / cpu hierarchy for the system structure).

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