Tomáš Chvátal 2018-04-06 11:22:57 +00:00 committed by Git OBS Bridge
parent 21eebaf1d1
commit 2d5b33b417

View File

@ -5,10 +5,10 @@
# rather than just giving you OOM # rather than just giving you OOM
# #
# m: memory limit in MBs per core; default is 1000 # m: memory limit in Bs per core; default is 1000000
%limit_build(m:) \ %limit_build(m:) \
_threads="`/usr/bin/getconf _NPROCESSORS_ONLN`" _threads="`/usr/bin/getconf _NPROCESSORS_ONLN`"
_core_memory="%{-m:%{-m*}}%{!-m:1000}" _core_memory="%{-m:%{-m*}}%{!-m:1000000}"
echo "Available memory:" \ echo "Available memory:" \
cat /proc/meminfo \ cat /proc/meminfo \
echo "System limits:" \ echo "System limits:" \