Re: [PATCH 15/32] cacheinfo: Introduce cache id

From: Nilay Vaish
Date: Wed Jul 27 2016 - 13:05:37 EST

On 12 July 2016 at 20:02, Fenghua Yu <fenghua.yu@xxxxxxxxx> wrote:
> From: Fenghua Yu <fenghua.yu@xxxxxxxxx>
> Each cache is described by cacheinfo and is unique in the same index
> across the platform. But there is no id for a cache. We introduce cache
> ID to identify a cache.
> Intel Cache Allocation Technology (CAT) allows some control on the
> allocation policy within each cache that it controls. We need a unique
> cache ID for each cache level to allow the user to specify which
> controls are applied to which cache. Cache id is a concise way to specify
> a cache.
> Cache id is first enabled on x86. It can be enabled on other platforms
> as well. The cache id is not necessary contiguous.
> Add an "id" entry to /sys/devices/system/cpu/cpu*/cache/index*/

Can you explain what index and platform mean? I think those terms are
generic in nature. May be an example on how cache ids would be
assigned to different caches would help.