Skip to content

Rust thread-per-host scheduler#2414

Merged
stevenengler merged 5 commits intoshadow:mainfrom
stevenengler:rust-thread-x-host-sched
Sep 26, 2022
Merged

Rust thread-per-host scheduler#2414
stevenengler merged 5 commits intoshadow:mainfrom
stevenengler:rust-thread-x-host-sched

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Sep 21, 2022

This replaces shadow's C thread-per-host scheduler with a Rust thread-per-host scheduler. The Rust scheduler is designed to behave very similarly to the C scheduler (each thread waits on its own semaphore, runs the task, then updates a count down latch). It uses the existing C affinity code to assign logical processors to OS cores.

run_time

@stevenengler stevenengler added the Component: Main Composing the core Shadow executable label Sep 21, 2022
@stevenengler stevenengler self-assigned this Sep 21, 2022
@github-actions github-actions bot added the Component: Build Build/install tools and dependencies label Sep 21, 2022
@stevenengler stevenengler force-pushed the rust-thread-x-host-sched branch from 0612c2e to 3722a4b Compare September 21, 2022 18:26
@stevenengler stevenengler force-pushed the rust-thread-x-host-sched branch from 3722a4b to 8c46843 Compare September 21, 2022 19:36
@stevenengler stevenengler force-pushed the rust-thread-x-host-sched branch from 8c46843 to 43a795d Compare September 26, 2022 15:35
@github-actions github-actions bot added the Component: Documentation In-repository documentation, under docs/ label Sep 26, 2022
@stevenengler stevenengler force-pushed the rust-thread-x-host-sched branch from 43a795d to 17da0a7 Compare September 26, 2022 15:52
Both are thread-per-host schedulers. The Rust scheduler is designed to behave
very similarly to the C scheduler (each thread waits on its own semaphore, runs
the task, then updates a count down latch).
@stevenengler stevenengler force-pushed the rust-thread-x-host-sched branch from 17da0a7 to 7c38475 Compare September 26, 2022 16:54
@stevenengler stevenengler merged commit d8b1850 into shadow:main Sep 26, 2022
@stevenengler stevenengler deleted the rust-thread-x-host-sched branch September 26, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build Build/install tools and dependencies Component: Documentation In-repository documentation, under docs/ Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants