Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Add feature checks on Turbostat #62

Open
ErwanAliasr1 opened this issue Nov 14, 2024 · 0 comments
Open

[BUG] Add feature checks on Turbostat #62

ErwanAliasr1 opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working hwbench

Comments

@ErwanAliasr1
Copy link
Collaborator

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
@ErwanAliasr1 ErwanAliasr1 added bug Something isn't working hwbench labels Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hwbench
Projects
None yet
Development

No branches or pull requests

1 participant