Messages in this thread | | | Date | Fri, 1 Jul 2016 20:35:36 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH] cacheinfo: Introduce cache id |
| |
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) --
| |