From 131ab74be8110dc1e3c532222e2fd9d28e938412 Mon Sep 17 00:00:00 2001 From: Gleb Novikov Date: Tue, 31 Dec 2024 16:34:17 +0000 Subject: [PATCH] effective_io_concurrency=0 on macos --- compute_tools/src/bin/fast_import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute_tools/src/bin/fast_import.rs b/compute_tools/src/bin/fast_import.rs index 0403ebdd54..c012826fad 100644 --- a/compute_tools/src/bin/fast_import.rs +++ b/compute_tools/src/bin/fast_import.rs @@ -202,7 +202,7 @@ pub(crate) async fn main() -> anyhow::Result<()> { .args(["-c", &format!("max_parallel_workers={nproc}")]) .args(["-c", &format!("max_parallel_workers_per_gather={nproc}")]) .args(["-c", &format!("max_worker_processes={nproc}")]) - .args(["-c", "effective_io_concurrency=100"]) + .args(["-c", &format!("effective_io_concurrency={}", if cfg!(target_os = "macos") { 0 } else { 100 })]) .env_clear() .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped())