Skip to content

Conversation

jsydir
Copy link
Contributor

@jsydir jsydir commented Jun 12, 2025

Added check to exclude operations with failed DSA calls from considering by the CPU fraction auto-tuning algorithm

Added documentation on common usage modes for DTO.

Modified Default Min size to 64K

Added check to exclude operations with failed DSA calls from considering by the CPU fraction auto-tuning algorithm
Added documentation on common usage modes for DTO.

Signed-off-by: Sydir, Jerry <[email protected]>
@byrnedj byrnedj requested a review from Copilot June 12, 2025 18:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refines the CPU fraction auto-tuning algorithm by filtering out failed DSA operations from its metrics, bumps the default minimum buffer size to 64 KB, and expands the README with common DTO usage scenarios.

  • Exclude failed DSA completions from auto-tuning calculations.
  • Change DTO_DEFAULT_MIN_SIZE from 16 384 to 65 536.
  • Add documented examples of latency, power, cycle, and cache-pollution usage modes.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
dto.c Early-return on non-successful DSA completions in dsa_wait_and_adjust and update min size.
README.md New section detailing common DTO usage modes and their recommended environment variable settings.
Comments suppressed due to low confidence (1)

dto.c:435

  • Consider adding a unit or integration test to verify that failed DSA completions are properly excluded from the auto-tuning metrics.
if(*comp != DSA_COMP_SUCCESS) {

jsydir and others added 2 commits June 12, 2025 11:48
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@jsydir jsydir requested a review from byrnedj June 12, 2025 18:55
// operations that have failed (mostly due to page fault) return very quickly and cause the algorithm
// to think that the DSA operation was faster than it really was. We exclude them from the calculation.
if(*comp != DSA_COMP_SUCCESS) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: just fix the space

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Sydir, Jerry <[email protected]>
@byrnedj byrnedj merged commit c61074a into intel:main Jun 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants