public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tulio Magno Quites Machado Filho <tuliom@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] f45: Set LLVM_RAM_PER_COMPILE_JOB to 1536
Date: Thu, 05 Nov 2026 15:46:47 GMT	[thread overview]
Message-ID: <179389360767.1.7140697730201809920.rpms-llvm-9dec45490f74@fedoraproject.org> (raw)

            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
 

             reply	other threads:[~2026-11-05 15:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 15:46 Tulio Magno Quites Machado Filho [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-10-08  4:36 [rpms/llvm] f45: Set LLVM_RAM_PER_COMPILE_JOB to 1536 Tulio Magno Quites Machado Filho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179389360767.1.7140697730201809920.rpms-llvm-9dec45490f74@fedoraproject.org \
    --to=tuliom@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox