Enhance core frequency reporting for multi-die architectures#315
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request enhances core frequency reporting for multi‐die architectures by adding a new “Cores per Die” column and updating related bucket calculations and table definitions. Key changes include updating header comments and diff logic in table_helpers.go, adding new bucket variables and calculations, and revising field definitions in table_defs.go and benchmarking_table_helpers.go to support the new reporting format.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/report/table_helpers.go | Updated header comments and bucket calculation logic for multi‐die architectures. |
| internal/report/table_defs.go | Revised table field definitions (including new Models entry) for accelerator reporting. |
| internal/report/benchmarking_table_helpers.go | Adjusted comment and index descriptions in bucketsToCoresFreqs function. |
Comments suppressed due to low confidence (1)
internal/report/table_defs.go:283
- [nitpick] Consider adding further documentation or clarifying comments for the Models field to help maintainers understand the significance of the listed model numbers.
Models: []string{"143", "207", "173", "175", "221"}, // Sapphire Rapids, Emerald Rapids, Granite Rapids, Sierra Forest, Clearwater Forest
There was a problem hiding this comment.
Pull Request Overview
This PR enhances core frequency reporting for multi‐die architectures by adding a new "Cores per Die" column and refactoring the related spec frequency bucket processing.
- Update MSR conversion functions to use native int values.
- Refactor functions that generate spec frequency buckets and adjust field names accordingly.
- Update table definitions and frequency table generation logic for core frequency and accelerator tables.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/report/table_helpers.go | Updates to the MSR conversion function and spec frequency bucket computation. |
| internal/report/table_defs.go | Adjustments in table definitions and core frequency field generation logic. |
| internal/report/benchmarking_table_helpers.go | Refactoring of frequency bucket parsing and table frequency processing functions. |
Comments suppressed due to low confidence (2)
internal/report/table_helpers.go:200
- Converting MSR values from int64 to int may risk overflow if the values exceed the int range; please confirm that the expected MSR values are safely representable as int.
func convertMsrToDecimals(msr string) (decVals []int, err error) {
internal/report/table_defs.go:2078
- Using sequential core numbering (i+1) in cpuFrequencyTableValues replaces the previous bucket-derived core counts; please verify that this simplified core mapping accurately reflects the intended frequency reporting for multi-die architectures.
fields[coresIdx].Values = append(fields[coresIdx].Values, fmt.Sprintf("%d", i+1))
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
… values Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
…y bucket processing Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Enhance core frequency reporting for multi-die architectures Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Refactor convertMsrToDecimals to use int instead of int64 for decimal values Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Refactor frequency handling: rename functions and streamline frequency bucket processing Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * fix comment Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Refactor report and telemetry table names for consistency and clarity Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Enhance core frequency reporting for multi-die architectures (#315) * Enhance core frequency reporting for multi-die architectures Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Refactor convertMsrToDecimals to use int instead of int64 for decimal values Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Refactor frequency handling: rename functions and streamline frequency bucket processing Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * fix comment Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * match field name Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * xxx Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * undo Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Update no data found messages for memory and NUMA benchmarks, and Gaudi telemetry Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * Refactor script names and update function parameters for benchmarking and telemetry scripts Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * more variable and file naming changes for consistency Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> * add or update copyright Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> --------- Signed-off-by: Harper, Jason M <jason.m.harper@intel.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add Cores per Die column, for multi-die architectures