oktetlabs / test-environment

OKTET Labs Test Environment
Other
5 stars 10 forks source link

/sys/devices/system/cpu/cpu*/cache/index*/id is not presented on the ARM architecture #10

Closed okt-artemii closed 1 year ago

okt-artemii commented 1 year ago
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?

ol-arteman commented 1 year ago

Yes, we're already aware of this issue. The patch is going to be ready soon.

okt-artemii commented 1 year ago

Thanks! I'll be looking forward to the patch.

ol-arteman commented 1 year ago

Resolved in 9df17bb39bfc97797d6edb03e5b68e6f02e2e5e2