-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rt: initial implementation of new threaded runtime (#5823)
This patch includes an initial implementation of a new multi-threaded runtime. The new runtime aims to increase the scheduler throughput by speeding up how it dispatches work to peer worker threads. This implementation improves most benchmarks by about ~10% when the number of threads is below 16. As threads increase, mutex contention deteriorates performance. Because the new scheduler is not yet ready to replace the old one, the patch introduces it as an unstable runtime flavor with a warning that it isn't production ready. Work to improve the scalability of the runtime will most likely require more intrusive changes across Tokio, so I am opting to merge with master to avoid larger conflicts.
- Loading branch information
1 parent
63577cd
commit 4165601
Showing
45 changed files
with
5,415 additions
and
105 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,28 @@ | ||
|
||
R-loom: | ||
R-loom-sync: | ||
- tokio/src/sync/* | ||
- tokio/src/sync/**/* | ||
- tokio-util/src/sync/* | ||
- tokio-util/src/sync/**/* | ||
- tokio/src/runtime/* | ||
- tokio/src/runtime/**/* | ||
|
||
R-loom-time-driver: | ||
- tokio/src/runtime/time/* | ||
- tokio/src/runtime/time/**/* | ||
|
||
R-loom-current-thread: | ||
- tokio/src/runtime/scheduler/* | ||
- tokio/src/runtime/scheduler/current_thread/* | ||
- tokio/src/runtime/task/* | ||
- tokio/src/runtime/task/** | ||
|
||
R-loom-multi-thread: | ||
- tokio/src/runtime/scheduler/* | ||
- tokio/src/runtime/scheduler/multi_thread/* | ||
- tokio/src/runtime/scheduler/multi_thread/** | ||
- tokio/src/runtime/task/* | ||
- tokio/src/runtime/task/** | ||
|
||
R-loom-multi-thread-alt: | ||
- tokio/src/runtime/scheduler/* | ||
- tokio/src/runtime/scheduler/multi_thread_alt/* | ||
- tokio/src/runtime/scheduler/multi_thread_alt/** | ||
- tokio/src/runtime/task/* | ||
- tokio/src/runtime/task/** |
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
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
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
Oops, something went wrong.