use logical core count for rocksdb parallelism
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -22,7 +22,7 @@ pub(crate) fn db_options(config: &Config, env: &mut Env, row_cache: &Cache, col_
|
|||||||
|
|
||||||
// Processing
|
// Processing
|
||||||
let threads = if config.rocksdb_parallelism_threads == 0 {
|
let threads = if config.rocksdb_parallelism_threads == 0 {
|
||||||
num_cpus::get_physical() // max cores if user specified 0
|
num_cpus::get() // max cores if user specified 0
|
||||||
} else {
|
} else {
|
||||||
config.rocksdb_parallelism_threads
|
config.rocksdb_parallelism_threads
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user