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

[collectd 6] gpu_sysman: use base units + other metric handling fixes #4299

Merged
merged 5 commits into from
May 14, 2024

Conversation

eero-t
Copy link
Contributor

@eero-t eero-t commented Apr 17, 2024

ChangeLog: gpu_sysman: use base units + other metric handling fixes

This split the fixes from #4267 to their own PR (that should go in first).

Changes are IMHO straightforward and easiest to review from individual commits.

(Because switching to base units means metric names changing, Feature label could have been used instead of a Fix one.)

Reported-By: Florian Foster

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Assumes overflowing counters to be either at 32-bit or 64-bit,
which should cover most common cases, as long as overflow happens
at max once during query period.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
With the new floating point counter type, joules & seconds can be used
as metric units instead of microjoules & microseconds.

(Frequencies are are still left as Mhz, but for convenience, and
compability with Intel XPU Manager.)

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
As "write_prometheus" plugin already adds that unconditionally to
names of all monotonic metric types.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
@eero-t
Copy link
Contributor Author

eero-t commented May 14, 2024

@mrunge would you have time to review this?

(Florian reviewed most of these changes before I split them to their own PR, but he's not been active lately.)

Copy link
Member

@mrunge mrunge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks sane to me, but I have no way to actually test it.

@mrunge
Copy link
Member

mrunge commented May 14, 2024

@mrunge would you have time to review this?

(Florian reviewed most of these changes before I split them to their own PR, but he's not been active lately.)

Sure! Sorry for not following here much closer.

@mrunge mrunge merged commit 8fb24ac into collectd:collectd-6.0 May 14, 2024
23 checks passed
@eero-t
Copy link
Contributor Author

eero-t commented May 14, 2024

No problem, I'm not in hurry with these. It's just better to get completed things reviewed before I forget their details. :-)

Thanks!

@eero-t eero-t deleted the base-units branch May 14, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix A pull request fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants