Commit e5976ddf authored by Vermeeren's avatar Vermeeren

qemu: print actual meminfo page count after setting

At times the allocation fails for some reason and several allocations
are needed or even a reboot. This will print actual page count after
setting hugepages. May improve script to retry a few times when it is
not the expected value in the future.
parent 7e090211
......@@ -59,5 +59,7 @@ cp -v ./nvidia_10-monitor.conf /etc/X11/xorg.conf.d/10-monitor.conf
echo "releasing hugepages memory"
sudo sysctl vm.nr_hugepages=0
echo -n "page count: "
grep "HugePages_Total" < /proc/meminfo
exit 0
......@@ -44,7 +44,9 @@ done
echo "updating xorg monitor configuration"
cp -v "./radeon_10-monitor.conf" "/etc/X11/xorg.conf.d/10-monitor.conf"
echo "settings hugepages memory to 8192 pages or 16gb"
echo "setting hugepages memory to 8192 pages aka 16gb"
sysctl vm.nr_hugepages=8192
echo -n "page count: "
grep "HugePages_Total" < /proc/meminfo
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment