-
Notifications
You must be signed in to change notification settings - Fork 22
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
Turn down the volume on tokio threads #699
base: master
Are you sure you want to change the base?
Conversation
Due to the unknown performance implications when it comes to crucible upstairs, this should not be merged until measurement can be performed on that front. |
Rather than letting Tokio go wild with its default of spawning worker threads equal to the number of visible host CPUs, we constrain that number to the number of guest vCPUs (down to a minimum of 8). Fixes oxidecomputer#686
5975d94
to
d5c4cfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me whenever we've done the requisite performance analysis!
@@ -42,6 +42,7 @@ use std::{ | |||
time::Duration, | |||
}; | |||
|
|||
use anyhow::Context as AnyhowContext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hot tip: if you need trait methods to be in-scope but the name is colliding, you can do
use anyhow::Context as AnyhowContext; | |
use anyhow::Context as _; |
Picks up: * 9f69dea - Actually provision read-only downstairs! (#728) * 92ae012 - crutest use SIGUSR1 to stop tests (oxidecomputer#699) * 47f3569 - Add build info and version commands (oxidecomputer#709) * 07f0a9e - Give up on a downstairs (#725) * 9985a4c - Slightly better versioning between upstairs and downstairs (oxidecomputer#705) * 0b34a53 - Fix paths in method scripts (oxidecomputer#703) * 12b65eb - [smf] Allow Crucible Zones to be self-assembling (oxidecomputer#498) Also updates uuid dep to 1.3.2.
Rather than letting Tokio go wild with its default of spawning worker threads equal to the number of visible host CPUs, we constrain that number to the number of guest vCPUs (down to a minimum of 8).
Fixes #686