On 2/20/21 7:37 AM, Adrian Schröter wrote:
On Freitag, 19. Februar 2021, 17:04:21 CET Normand wrote:
I am able to use "osc build vm-memory 14336" for a package build on my local machine.
Is there a way to pass the vm-memory parameter when package is built in OBS workers ?
I did not found anything about that in online OBS doc https://openbuildservice.org/files/manuals/obs-user-guide.pdf (the <memory> in _constraints is not used for that)
constraints are limiting to assign the jobs to workers only if they have sufficient memory.
But you can configure your workers providing any amount of memory by specifing
OBS_INSTANCE_MEMORY=".."
in /etc/buildhost.config
or
/etc/sysconfig/obs-server
Thank you Adrian for the answer, My understanding of setting OBS_INSTANCE_MEMORY in buildhost.config is that it will set this value for all the jobs submitted to this host; is it true ? If true then that is a drawback for the number of parallel jobs that could be run on this host. My use case is the envoy-proxy package that do not build for ppc64le for "Out of memory" failure as tracked by https://bugzilla.suse.com/show_bug.cgi?id=1182423 -- Michel Normand