forked from pool/luabind
Accepting request 758138 from home:michel_mno:branches:devel:languages:lua
- ppc64le changes in threads limiting to avoid oom at build time OBS-URL: https://build.opensuse.org/request/show/758138 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/luabind?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 19 10:13:27 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||
|
||||
- ppc64le changes in threads limiting to avoid oom at build time
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 14:57:57 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package luabind
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -77,7 +77,12 @@ free
|
||||
echo "System limits:"
|
||||
ulimit -a
|
||||
if test -n "$limit_jobs" -a "$limit_jobs" -gt 1 ; then
|
||||
%ifarch ppc64le
|
||||
# tuned arbitrarily to avoid oom
|
||||
mem_per_process=1500
|
||||
%else
|
||||
mem_per_process=350
|
||||
%endif
|
||||
max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"`
|
||||
max_jobs="$(($max_mem / $mem_per_process))"
|
||||
test "$limit_jobs" -gt "$max_jobs" && limit_jobs="$max_jobs" echo "Warning: Reducing number of jobs to $max_jobs because of memory limits"
|
||||
|
Reference in New Issue
Block a user