public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] f45: Set LLVM_RAM_PER_COMPILE_JOB to 1536
@ 2026-11-05 15:46 Tulio Magno Quites Machado Filho
0 siblings, 0 replies; 2+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2026-11-05 15:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/llvm
Branch : f45
Commit : 9dec45490f747babaf990dc970b8e704ad0d3f82
Author : Tulio Magno Quites Machado Filho <tuliom@redhat.com>
Date : 2026-10-02T14:14:08-03:00
Stats : +7/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/llvm/c/9dec45490f747babaf990dc970b8e704ad0d3f82?branch=f45
Log:
Set LLVM_RAM_PER_COMPILE_JOB to 1536
While testing on riscv64, one of the servers had 1024 MiB RAM / thread
and failed with OOM.
Set LLVM_RAM_PER_COMPILE_JOB to 1536 on all scenarios except RHEL 8
s390x in order to avoid hitting this same problem in other places.
[skip changelog]
---
diff --git a/llvm.spec b/llvm.spec
index 31508c5..6d2887f 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1964,17 +1964,13 @@ popd
%global cmake_config_args %{cmake_config_args} -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error"
%endif
-%if 0%{?rhel} == 8
-%ifnarch s390x
- # This option uses the NUMBER_OF_LOGICAL_CORES query in CMake which doesn't
- # work on s390x.
- # https://gitlab.kitware.com/cmake/cmake/-/issues/26619
- # The value 4096 was used after we've seen cases of memory exhaustion on a
- # system with 64GiB RAM and 16 jobs. It worked a few times after applied,
- # but we can't guarantee it's enough. It's important to remember that RHEL8
- # uses GCC. This value should not be applied to a build using clang.
- %global cmake_config_args %{cmake_config_args} -DLLVM_RAM_PER_COMPILE_JOB=4096
-%endif
+%if 0%{?rhel} > 8 || "%{_arch}" != "s390x"
+# This option uses the NUMBER_OF_LOGICAL_CORES query in CMake which doesn't
+# work on RHEL 8 s390x.
+# https://gitlab.kitware.com/cmake/cmake/-/issues/26619
+# We noticed errors on riscv64 where the amount of RAM/job available was
+# 1024MiB. Increase the RAM/compile job in order to avoid OOMs.
+%global cmake_config_args %{cmake_config_args} -DLLVM_RAM_PER_COMPILE_JOB=1536
%endif
#endregion misc options
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [rpms/llvm] f45: Set LLVM_RAM_PER_COMPILE_JOB to 1536
@ 2026-10-08 4:36 Tulio Magno Quites Machado Filho
0 siblings, 0 replies; 2+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2026-10-08 4:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/llvm
Branch : f45
Commit : 24454e2f036acace088e9038507abc7c0aedde12
Author : Tulio Magno Quites Machado Filho <tuliom@redhat.com>
Date : 2026-10-08T06:36:09+02:00
Stats : +7/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/llvm/c/24454e2f036acace088e9038507abc7c0aedde12?branch=f45
Log:
Set LLVM_RAM_PER_COMPILE_JOB to 1536
While testing on riscv64, one of the servers had 1024 MiB RAM / thread
and failed with OOM.
Set LLVM_RAM_PER_COMPILE_JOB to 1536 on all scenarios except RHEL 8
s390x in order to avoid hitting this same problem in other places.
[skip changelog]
---
diff --git a/llvm.spec b/llvm.spec
index 31508c5..6d2887f 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -1964,17 +1964,13 @@ popd
%global cmake_config_args %{cmake_config_args} -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS -Wl,-z,cet-report=error"
%endif
-%if 0%{?rhel} == 8
-%ifnarch s390x
- # This option uses the NUMBER_OF_LOGICAL_CORES query in CMake which doesn't
- # work on s390x.
- # https://gitlab.kitware.com/cmake/cmake/-/issues/26619
- # The value 4096 was used after we've seen cases of memory exhaustion on a
- # system with 64GiB RAM and 16 jobs. It worked a few times after applied,
- # but we can't guarantee it's enough. It's important to remember that RHEL8
- # uses GCC. This value should not be applied to a build using clang.
- %global cmake_config_args %{cmake_config_args} -DLLVM_RAM_PER_COMPILE_JOB=4096
-%endif
+%if 0%{?rhel} > 8 || "%{_arch}" != "s390x"
+# This option uses the NUMBER_OF_LOGICAL_CORES query in CMake which doesn't
+# work on RHEL 8 s390x.
+# https://gitlab.kitware.com/cmake/cmake/-/issues/26619
+# We noticed errors on riscv64 where the amount of RAM/job available was
+# 1024MiB. Increase the RAM/compile job in order to avoid OOMs.
+%global cmake_config_args %{cmake_config_args} -DLLVM_RAM_PER_COMPILE_JOB=1536
%endif
#endregion misc options
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-05 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05 15:46 [rpms/llvm] f45: Set LLVM_RAM_PER_COMPILE_JOB to 1536 Tulio Magno Quites Machado Filho
-- strict thread matches above, loose matches on Subject: below --
2026-10-08 4:36 Tulio Magno Quites Machado Filho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox