DNM: microbench seastar urgent value/coroutine returns - #31613
Draft
travisdowns wants to merge 1 commit into
Draft
DNM: microbench seastar urgent value/coroutine returns#31613travisdowns wants to merge 1 commit into
travisdowns wants to merge 1 commit into
Conversation
Pins seastar at travisdowns/seastar@2e6c9a1, which makes a continuation that returns a value - and a coroutine return - resume its waiter from the front of the reactor's task queue rather than the back. Not for merge; this exists to get a microbench comparison against the baseline.
Member
Author
|
/microbench |
Collaborator
|
Performance change detected in https://buildkite.com/redpanda/redpanda/builds/88870#01a015bb-a728-4f25-a135-ca2989c25652: See https://redpandadata.atlassian.net/wiki/x/LQAqLg for docs |
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.
Do not merge. This exists only to get a
/microbenchcomparison against the baseline.Pins seastar at travisdowns/seastar@2e6c9a1 (branch
td-urgent-sched, cut fromv26.3.x), which addsset_value_urgent()and uses it from:futurize<T>::satisfy_with_result_of()coroutine_traits_base<T>::promise_type::return_value()/return_void()Today only the third branch of
satisfy_with_result_of()- the one where the continuation returns an already-ready future - resolves the next promise urgently, viaforward_to()->set_urgent_state(), which inserts the waiting task at the front of the reactor's task queue. The value and void branches callset_value(), which appends it to the back, behind everything queued while the chain was running. Coroutines always take the appending path, sincereturn_value()/return_void()go throughset_value(); withfinal_suspend()beingsuspend_never, each level of a nestedco_awaitchain resumes its caller from its own tail-inserted task.Note this changes the order in which queued tasks run. Seastar's
futures_testandcoroutines_testpass in dev, release and sanitize modes, and both files gain a test that asserts the new ordering.The point of the microbench run is that the change is otherwise unmeasured.