Re: [PATCH] cacheinfo: Introduce cache id

From: Borislav Petkov
Date: Fri Jul 01 2016 - 14:35:45 EST


On Fri, Jul 01, 2016 at 06:01:06PM +0000, Yu, Fenghua wrote:
> Cache id is unique on the same level of cache across platform.

Btw, I forgot to ask in the reply to Tony: how are those cache IDs
exactly going to be used? An example please...

> Could you check cpu#/cache/index#/shared_cpu_map or shared_cpu_list.

Bah, my kvm is on an AMD guest - forget what it says :-)

> Cache id is unique on the same level across platform.
>
> #find /sys/device/system/cpu/. -name id|xargs cat

Btw, you could do

grep . /sys/devices/system/cpu/cpu*/cache/index*/id

and it'll give you the absolute filepaths too, so that the output is
parseable easier.

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--