On Mon, 9 Apr 2018, Adam Majer wrote:
On 04/09/2018 09:40 AM, Richard Biener wrote:
On Mon, 9 Apr 2018, Adam Majer wrote:
On 04/06/2018 03:52 PM, Tomas Chvatal wrote:
BuildRequires: memory-constraints
%build # require 2GB mem per thread %limit_build -m 2000 make %{?_smp_mflags}
Great job!
This macro was sorely needed in OBS. I remember old boost has had some hax similar to this macro to try to limit number of parallel jobs. Of course, your version is much better.
I suspect this macro is mostly needed on non-x86_64 arches though.
Now we need this macro in SLE-15 too ;)
I still think this belongs to _constraints ...
https://github.com/openSUSE/open-build-service/issues/1953
The problem with having _constraints is that OBS uses these as a simple filter. So a big machine with many cores and memory would be filtered out by this _constraints while all we need is not use all of the available cores on such a machine.
But then you lave those cores without work...
So having thought about it, maybe the macro route is more flexible approach.
Not sure. I think the VMs should "simply" be allocated with less CPUs for the job and thus free up CPUs for other VMs that are not so constrained. But I'm probably deaming up this kind of flexible VM deployment and the setup is static... Richard. -- Richard Biener <rguenther@suse.de> SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org