Accepting request 828307 from science

- revert the memoryperjob change. The build process really acquires
  that much memory per job and the workers cannot provide 3GB per
  CPU core. Sadly, we are limited by memory not by CPU cores.
- require 11 GB of RAM. This allows us to run 3 jobs in parallel and
  can be provided by all architectures
- Use memoryperjob constraint instead of %limit_build macro.
- Use only 1GB for memoryperjob.

OBS-URL: https://build.opensuse.org/request/show/828307
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/PrusaSlicer?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2020-08-21 17:08:28 +00:00 committed by Git OBS Bridge
commit 9fc6786669
3 changed files with 26 additions and 4 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu Aug 20 15:50:07 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- revert the memoryperjob change. The build process really acquires
that much memory per job and the workers cannot provide 3GB per
CPU core. Sadly, we are limited by memory not by CPU cores.
- require 11 GB of RAM. This allows us to run 3 jobs in parallel and
can be provided by all architectures
-------------------------------------------------------------------
Thu Aug 20 09:03:33 UTC 2020 - Martin Liška <mliska@suse.cz>
- Use memoryperjob constraint instead of %limit_build macro.
- Use only 1GB for memoryperjob.
-------------------------------------------------------------------
Mon Aug 10 08:12:10 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -67,7 +67,13 @@ It also works with Mach3, LinuxCNC and Machinekit controllers.
sed -i 's/UNKNOWN/OpenSUSE/' version.inc
%build
%limit_build -m 4096
# The build process really acquires that much memory per job. We are
# limited by memory not by CPU cores. Using memoryperjob in _constraints cannot
# provide any workers on some architectures. This is still better than not using
# parallel building at all.
# https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.build_job_constraints.html
# https://en.opensuse.org/openSUSE:Specfile_guidelines#Parallel_make
%limit_build -m 3072
# sse2 flags for 32-bit: see gh#prusa3d/PrusaSlicer#3781
%ifarch %ix86
export CFLAGS="%optflags -mfpmath=sse -msse2"

View File

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraints>
<hardware>
<disk>
<size unit="G">12</size>
</disk>
<memory>
<size unit="G">8</size>
</memory>
<physicalmemory>
<size unit="G">11</size>
</physicalmemory>
</hardware>
</constraints>