From c368e7ee9e05c5a4ebf0f0ee9447df32b516bb05 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 6 Sep 2021 15:30:41 +0100 Subject: [PATCH] Cater for high core count systems --- quickemu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 6ed4115..8a94fb2 100755 --- a/quickemu +++ b/quickemu @@ -282,7 +282,11 @@ function vm_boot() { local CORES_VM="1" if [ -z "$cpu_cores" ]; then local CORES_HOST=$(nproc --all) - if [ ${CORES_HOST} -ge 8 ]; then + if [ ${CORES_HOST} -ge 32 ]; then + CORES_VM="16" + elif [ ${CORES_HOST} -ge 16 ]; then + CORES_VM="8" + elif [ ${CORES_HOST} -ge 8 ]; then CORES_VM="4" elif [ ${CORES_HOST} -ge 4 ]; then CORES_VM="2"