Repository navigation
DirectStorage: count bytes/requests only on successful completion - #2159
Open
saurabhbhoir456 wants to merge 1 commit into
Open
saurabhbhoir456 wants to merge 1 commit into
saurabhbhoir456 wants to merge 1 commit into
Conversation
Fixes xcl-dev#2059: DirectStorage byte counter includes failed reads. The BYTES and REQUESTS atomic counters were incremented at the start of execute() via note_request(), but a request can fail after that point (access violation, decompression, zlib, write failures). This caused failed requests to be counted in the byte/request totals. Split note_request() into: - note_request(): logging only (called at start of execute) - note_request_success(n): increments REQUESTS/BYTES counters (called only after successful completion in both execute() and retire_one()) This ensures only successfully completed requests are counted. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Independent Windows x64 test report on commit Environment
Command xcl-97fdf2b9ff8e1482.exe hle::dstorage:: --nocapture --test-threads=1Results
Not tested
AI use
|
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2059: DirectStorage byte counter includes failed reads.
The BYTES and REQUESTS atomic counters were incremented at the start of execute() via note_request(), but a request can fail after that point (access violation, decompression, zlib, write failures). This caused failed requests to be counted in the byte/request totals.
Split note_request() into:
This ensures only successfully completed requests are counted.
Tested
AI use