-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Scheduling and signal delivery fixes #7822
Merged
rickard-green
merged 3 commits into
erlang:maint
from
rickard-green:rickard/signal-sched-fixes/OTP-18839/OTP-18839/OTP-18841
Nov 28, 2023
Merged
Scheduling and signal delivery fixes #7822
rickard-green
merged 3 commits into
erlang:maint
from
rickard-green:rickard/signal-sched-fixes/OTP-18839/OTP-18839/OTP-18841
Nov 28, 2023
Conversation
This file contains 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
rickard-green
added
team:VM
Assigned to OTP team VM
fix
testing
currently being tested, tag is used by OTP internal CI
labels
Nov 3, 2023
CT Test Results 3 files 140 suites 45m 56s ⏱️ Results for commit 00089cf. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
rickard-green
force-pushed
the
rickard/signal-sched-fixes/OTP-18839/OTP-18839/OTP-18841
branch
2 times, most recently
from
November 6, 2023 19:14
f14a736
to
c1f60f7
Compare
rickard-green
force-pushed
the
rickard/signal-sched-fixes/OTP-18839/OTP-18839/OTP-18841
branch
4 times, most recently
from
November 14, 2023 15:51
eb73f32
to
6d5a16a
Compare
sverker
reviewed
Nov 20, 2023
OTP-18838 When fetching signals for a process not in a running state and with parallel signal enqueue optimization enabled, it could end up being activated but not inserted into the run queue. If/when this happened the process would be stuck potentially for ever. Currently signals are only fetched for processes not in a running state when: a process that is receive traced is scheduled out, another process is inspected using process_info(Pid, message_queue_len), and in the break handler.
OTP-18839 When scheduling a process for dirty execution it could end up not being inserted into the run queue causing the process to get stuck for ever.
OTP-18841 Commit (1) changed so that signals sent to processes scheduled for dirty execution didn't trigger rescheduling of such processes to normal schedulers in order to handle signals, but instead rely on the dirty signal handler processes to take care of handling the signals for such processes. This since a steady flow of incoming signals to processes scheduled for dirty execution caused such processes to bounce between schedulers and could prevent them from making progress. The dirty signal handler processes did however not take care of the signals until the receiving processes were selected for execution. As a result of this, if a process got stuck for a long time in a dirty run queue due to heavy usage of dirty schedulers, it took a long time until signals were delivered to such processes. As of this commit, dirty signal handler processes will also take care of signal handling for processes in dirty run queues. (1) 53b1983
rickard-green
force-pushed
the
rickard/signal-sched-fixes/OTP-18839/OTP-18839/OTP-18841
branch
from
November 21, 2023 00:06
6d5a16a
to
00089cf
Compare
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 #7801