-
Notifications
You must be signed in to change notification settings - Fork 10
update to CPU fraction auto-tuning algorithm #19
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
Conversation
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]>
There was a problem hiding this 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) {
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
// 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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]>
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