git.annexia.org
/
supernested.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19e979e
)
Limit memory to 30000MB for ARM mach_virt.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 16 Mar 2016 13:37:54 +0000
(13:37 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 16 Mar 2016 13:42:57 +0000
(13:42 +0000)
run-supernested.sh.in
patch
|
blob
|
history
diff --git
a/run-supernested.sh.in
b/run-supernested.sh.in
index
9ed9b5b
..
445f960
100644
(file)
--- a/
run-supernested.sh.in
+++ b/
run-supernested.sh.in
@@
-115,6
+115,17
@@
if [ $memory -lt 2048 ]; then
fi
memory=$((memory - 1500))
+# ARM mach_virt (-M virt) model only supports 30GB of RAM.
+if [ $memory -gt 30000 ]; then
+ case "$arch" in
+ arm*|aarch64)
+ echo "$0: limiting memory to 30000 MB for ARM mach_virt"
+ memory=30000
+ ;;
+ *)
+ esac
+fi
+
# Get current nesting level from /proc/cmdline, increment it, add it
# to the command line.
level="$(