Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "reactor: stop using signals for task_quota timer"
"Signals do not scale on large multicores due to a process-wide lock, and since we want to schedule at sub-task-quota latencies, the problem will only get worse. Fix by switching to a timerfd+thread. In the future, we may reduce the number of context switches by having a thread update more than one reactor's g_need_preempt, but that is not done now." * timer-signal: reactor: convert task quota signal to a timerfd+thread reactor: simplify itimerspec calculations by using the new helpers posix: add helpers for `struct timespec` and `struct itimerspec`
- Loading branch information
Showing
3 changed files
with
89 additions
and
29 deletions.
There are no files selected for viewing
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
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
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