Skip to content

Commit

Permalink
Merge pull request #538 from ska-sa/NGC-896-qual-report-memory
Browse files Browse the repository at this point in the history
Round RAM in the qualification report
  • Loading branch information
bmerry authored Mar 27, 2023
2 parents bfffd75 + c3ced58 commit 282a278
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qualification/report/generate_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ def _parse_host(msg: dict) -> tuple[str, Host]:
cpus[int(labels["package"])] = labels["model_name"]
elif metric_name == "node_memory_MemTotal_bytes":
ram = int(value)
# Round ram to the nearest MiB. For unknown reasons, some machines
# have a few KiB more or less RAM available than others even when
# the hardware is identical, and this rounding helps coalesce
# them in the report.
ram = round(value / 2**20) * 2**20
elif metric_name == "node_ethtool_info":
interfaces.append(_parse_interface(labels))
elif metric_name == "DCGM_FI_DEV_FB_TOTAL":
Expand Down

0 comments on commit 282a278

Please sign in to comment.