Re: Specify koji build machine mem req via. spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 04.10.23 um 12:19 schrieb Kalev Lember:
On Wed, Oct 4, 2023 at 11:44 AM Martin Stransky <stransky@xxxxxxxxxx <mailto:stransky@xxxxxxxxxx>> wrote:

    Hello guys,

    Is there's a way how to set requested amount of ram for koji builders?

    I'd like to use it as Firefox builds fail recently due low memory, like
    https://bugzilla.redhat.com/show_bug.cgi?id=2241690
    <https://bugzilla.redhat.com/show_bug.cgi?id=2241690>


I looked at the first linked build log in the ticket and it looks like the build failed in the debuginfo extraction step. In that log, find-debuginfo is called with -j3, and it could be that it ran out of memory because it was trying to do 3 debuginfo extractions in parallel. You could try to stick something like this in the spec file to tune it down:

# Require 32 GB of RAM per CPU core for debuginfo processing
%global _find_debuginfo_opts %limit_build -m 32768

... and see if it helps. With this, it should pass -j1 to find-debuginfo when the builder has 32 GB RAM, -j2 when it has 64 GB etc.

If that doesn't work, then there's also the option of using -g1 to reduce the binary sizes so they take less memory to process (but that makes backtraces much worse so I'd only leave it for emergencies if you can't get an important build out otherwise).

Does a hammer smaller than -g1 also exist for issues like:

relocation truncated to fit: R_X86_64_32 against `.debug_info'
https://kojipkgs.fedoraproject.org//work/tasks/1615/107091615/build.log

Thanks for the info in advance.

Best regards,
Julian
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux