Re: [RFC][PATCH 3/9] perf: export registerred pmus via sysfs
From: Peter Zijlstra
Date: Tue May 11 2010 - 02:50:53 EST
On Mon, 2010-05-10 at 16:54 -0700, Corey Ashford wrote:
>
> Just to give a concrete example, the IBM Wire-Speed Processor has four
> AT-"nodes" per chip, each containing four PowerPC cores.
>
> Those four nodes together share a number of nest PMU accelerators, I/O
> devices, buses etc. which each have their own PMUs. Further adding to
> the structure is that some of the nodes are replicated. For example,
> we have two memory controllers, each with a pair of PMUs.
>
> /sys/devices/system/node/node0/mem_ctlr0/
> event_source_id
> events/
> partial_cacheline_read_retried/
> partial_cacheline_write_retried/
> ...
> mem_ctlr1/
> event_source_id
> events/
> partial_cacheline_read_retried/
> ...
>
> So it's a bit ugly to replicate the event information across identical
> pmus, but that can be done via links, without too much memory cost, I
> assume.
>
> Does this seem workable?
If you really have two memory controllers per node, I guess so. Sounds
strange to me though, typically a memory controller is the node
boundary.
But like I said in the other email, use a 1:n pmu:event_source ratio and
simply stick then in the machine/device topology wherever they belong,
if that ends up with multiple PMUs at one particular level, so be it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/