From 5a21cba5848fec43d50c9e0219b38237ef945e63 Mon Sep 17 00:00:00 2001 From: avivg-starkware Date: Thu, 10 Oct 2024 16:55:43 +0300 Subject: [PATCH] fix(config): limit concurrency to prevent 'cargo test/build' crash due to excessive memory use (#1259) --- .cargo/config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index eb8a14bd9c..f12746cc84 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,3 +2,11 @@ LLVM_SYS_181_PREFIX = "/usr/lib/llvm-18/" MLIR_SYS_180_PREFIX = "/usr/lib/llvm-18/" TABLEGEN_180_PREFIX = "/usr/lib/llvm-18/" + +# Limit concurrency to prevent crash during "cargo build" due to excessive memory usage. Should be removed in the future. Slows down performance. +[build] +jobs = 8 + +# Limit concurrency to prevent crash during "cargo test" due to excessive memory usage. Should be removed in the future. Slows down performance. +[test] +jobs = 8