Skip to content

Commit

Permalink
Update crates/server-config/src/defaults.rs
Browse files Browse the repository at this point in the history
Co-authored-by: folex <[email protected]>
  • Loading branch information
justprosh and folex authored Sep 17, 2024
1 parent e508cce commit 4491bf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/server-config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ pub fn default_system_cpu_count() -> usize {
pub fn default_cpus_range() -> Option<CoreRange> {
let total = num_cpus::get_physical();

// Leave 1 core to OS
// always leave 0th core to OS
// we use a simple constant here to make the behaviour as predictable as possible
let left = 1;
Some(
CoreRange::try_from(Vec::from_iter(left..total).as_slice())
Expand Down

0 comments on commit 4491bf7

Please sign in to comment.