commit b301c4bba829d697829ecf9fec09bec8380f4b5d
Author: Alexander Kuzminov <alexander.kuzminov@oktetlabs.ru>
Date: Thu Nov 10 23:11:35 2022 +0300
agents/unix: add cache type to CS database
Read caches types from sysfs and add them to the tree of objects
and the tree of instances in Configurator database.
OL-Redmine-Id: 12212
Signed-off-by: Alexander Kuzminov <alexander.kuzminov@oktetlabs.ru>
Reviewed-by: Artem Andreev <artem.andreev@oktetlabs.ru>
In this commit you add support for cache for cpu conf tree. This code relies on the /sys/devices/system/cpu/cpu*/cache/index*directory and the files in it. In particular, it relies on a file /sys/devices/system/cpu/cpu*/cache/index*/id.
From what I see here, I think this file should only exist for x86 architecture. I couldn't find any contrary information.
Moreover, my unix agent does not run on ARM architecture with error messages:
Failed to read id system file for cache index2 of cpu11
Could not get information about cache index2 for cpu11
Could not scan cache directory for cpu11
Could not get info about cache available to 'cpu11'
Failed to get CPU information
Failed to initialize Test Agent configuration Command Handler
@ol-arteman @ol-kuzandro Could you take a look, please?
In this commit you add support for cache for cpu conf tree. This code relies on the
/sys/devices/system/cpu/cpu*/cache/index*
directory and the files in it. In particular, it relies on a file/sys/devices/system/cpu/cpu*/cache/index*/id
.From what I see here, I think this file should only exist for x86 architecture. I couldn't find any contrary information.
Moreover, my unix agent does not run on ARM architecture with error messages:
@ol-arteman @ol-kuzandro Could you take a look, please?