Skip to content

[BUG] Add feature checks on Turbostat #62

@ErwanAliasr1

Description

@ErwanAliasr1

On recent processors like Intel(R) Xeon(R) 6756E, hwbench fails like the following trace.

It appear that turbostat 2022.07.28 do not have the PKGWATT for this process. That would mean bumping the default version to 2023.11.07.

It would be probably a bit smarter to check if the mandatory turbostat fields like PKGWATT, CPU, BUSY_MHZ) are available during the turbostat pre_run().

This means having an explicit list of mandatory fields and an active check that stops turbostat during the init phase.

ValueError: 'PkgWatt' is not in list
[qsort] stressng/qsort/qsort(M): 128 stressor on CPU [0-127] for 120s
cpu0: Guessing tjMax 100 C, Please use -T to specify
Exception in thread Thread-131:
Traceback (most recent call last):
  File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/root/hwbench/hwbench/bench/monitoring.py", line 21, in run
    self._return = self._target(*self._args, **self._kwargs)
  File "/root/hwbench/hwbench/bench/monitoring.py", line 251, in __monitor
    self.turbostat.parse()
  File "/root/hwbench/hwbench/environment/turbostat.py", line 219, in parse
    self.get_global_packages_power()
  File "/root/hwbench/hwbench/environment/turbostat.py", line 260, in get_global_packages_power
    return sum(self.get_packages_power())
  File "/root/hwbench/hwbench/environment/turbostat.py", line 250, in get_packages_power
    self.__get_field_position(CPUSTATS.PACKAGE_WATTS),
  File "/root/hwbench/hwbench/environment/turbostat.py", line 196, in __get_field_position
    return self.__get_column_header().split().index(str(metric))
ValueError: 'PkgWatt' is not in list
Result file available at /root/hwbench/hwbench-out-20241113174456/results.json
Exception ignored in: <function MonitoringDevice.__del__ at 0x7efff7363160>
Traceback (most recent call last):
  File "/root/hwbench/hwbench/environment/vendors/monitoring_device.py", line 23, in __del__
  File "/root/hwbench/.venv/lib64/python3.9/site-packages/redfish/rest/v1.py", line 1034, in logout
  File "/root/hwbench/.venv/lib64/python3.9/site-packages/redfish/rest/v1.py", line 738, in delete
  File "/root/hwbench/.venv/lib64/python3.9/site-packages/redfish/rest/v1.py", line 1118, in _rest_request
  File "/root/hwbench/.venv/lib64/python3.9/site-packages/redfish/rest/v1.py", line 959, in _rest_request

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghwbench

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions