Merge pull request #12432 from swordqiu/hotfix/qj-set-cpu-sockets-to-two

fix: set qemu cpu sockets to 2 for x86 cpu
This commit is contained in:
Zexi Li
2021-10-15 09:36:07 +08:00
committed by GitHub
+1 -1
View File
@@ -513,7 +513,7 @@ function nic_mtu() {
cmd += fmt.Sprintf(" -machine %s,accel=%s", s.getMachine(), accel)
cmd += " -k en-us"
// #cmd += " -g 800x600"
cmd += fmt.Sprintf(" -smp %d,maxcpus=255", cpu)
cmd += fmt.Sprintf(" -smp cpus=%d,sockets=2,cores=64,maxcpus=128", cpu)
cmd += fmt.Sprintf(" -name %s", name)
// #cmd += fmt.Sprintf(" -uuid %s", self.desc["uuid"])
cmd += fmt.Sprintf(" -m %dM,slots=4,maxmem=524288M", mem)