mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user