From 36b259f1e901a87814fa3e88c07ffe189130426e Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 11 Jan 2023 14:19:32 -0800 Subject: [PATCH] Increase ram usage estimate in multiproduct_kati multiproduct_kati assumed each build would take ~30GB of RAM, but it seems it's closer to 40GB now. The current build_test builds use 7 jobs, so this would bring us down to 5, which should still keep us under the 6 hour build time limit as currently these tests are at ~3 hours. Bug: 262629589 Test: Presubmits Change-Id: I51af364cc602a3bf7ba85fd8f92c4dd57585abbd --- cmd/multiproduct_kati/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/multiproduct_kati/main.go b/cmd/multiproduct_kati/main.go index d8d5e5d75..0115f4acc 100644 --- a/cmd/multiproduct_kati/main.go +++ b/cmd/multiproduct_kati/main.go @@ -321,7 +321,7 @@ func main() { jobs = runtime.NumCPU() / 4 ramGb := int(detectTotalRAM() / (1024 * 1024 * 1024)) - if ramJobs := ramGb / 30; ramGb > 0 && jobs > ramJobs { + if ramJobs := ramGb / 40; ramGb > 0 && jobs > ramJobs { jobs = ramJobs }