Skip to content
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

fix: set the default thread-pool size by the available concurrency #1931

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

Stebalien
Copy link
Member

And default to 8 if we can't get this information. This isn't a perfect metric (e.g., it doesn't take IO into account) but it's better than nothing).

And default to 8 if we can't get this information. This isn't a perfect
metric (e.g., it doesn't take IO into account) but it's better than
nothing).
@Stebalien Stebalien force-pushed the steb/default-thread-pool branch from 3a993a9 to dbaa69e Compare November 29, 2023 18:23
@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2023

Codecov Report

Merging #1931 (6a0ac8f) into master (97b45db) will decrease coverage by 21.00%.
Report is 11 commits behind head on master.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1931       +/-   ##
===========================================
- Coverage   75.45%   54.46%   -21.00%     
===========================================
  Files         156      157        +1     
  Lines       15234    15480      +246     
===========================================
- Hits        11495     8431     -3064     
- Misses       3739     7049     +3310     
Files Coverage Δ
fvm/src/executor/threaded.rs 0.00% <0.00%> (-82.36%) ⬇️

... and 75 files with indirect coverage changes

@Stebalien Stebalien requested review from arajasek and fridrik01 and removed request for arajasek December 6, 2023 11:36
Copy link
Contributor

@fridrik01 fridrik01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm,

@@ -9,10 +9,10 @@ use super::{ApplyKind, ApplyRet, Executor};

lazy_static! {
static ref EXEC_POOL: yastl::Pool = yastl::Pool::with_config(
8,
std::thread::available_parallelism().map(|n|n.get()).unwrap_or(8),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably mention this change in fvm/CHANGELOG.md

@Stebalien Stebalien closed this Dec 13, 2023
@Stebalien Stebalien reopened this Dec 13, 2023
@Stebalien Stebalien enabled auto-merge (squash) December 13, 2023 17:46
@Stebalien Stebalien merged commit 3d238f1 into master Dec 13, 2023
@Stebalien Stebalien deleted the steb/default-thread-pool branch December 13, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants