mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-09-20 00:02:03 +02:00
Cater for high core count systems
This commit is contained in:
parent
211e5ca90c
commit
c368e7ee9e
6
quickemu
6
quickemu
|
@ -282,7 +282,11 @@ function vm_boot() {
|
||||||
local CORES_VM="1"
|
local CORES_VM="1"
|
||||||
if [ -z "$cpu_cores" ]; then
|
if [ -z "$cpu_cores" ]; then
|
||||||
local CORES_HOST=$(nproc --all)
|
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"
|
CORES_VM="4"
|
||||||
elif [ ${CORES_HOST} -ge 4 ]; then
|
elif [ ${CORES_HOST} -ge 4 ]; then
|
||||||
CORES_VM="2"
|
CORES_VM="2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user