This commit is contained in:
parent
21eebaf1d1
commit
2d5b33b417
@ -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:" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user