GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
812 stars 263 forks source link

CPU sizing for Qemu VMs #1674

Open grossmj opened 5 years ago

grossmj commented 5 years ago

Idea from B3r3n: GNS3 offers cpu sizing + cpu throttling. Also using Proxmox, I see cpu limitation could avoid cpu throttling (painful) to consider more all cpu options : "-smp #,sockets=#,cores=#,maxcpus=#". On proxmox, these are enough to limit CPU consumption, without the cons of cputhrottling. If that is valuable, the requirement would just be to request details to size the overall cpus on the server and then define smp...

grossmj commented 4 years ago

Could also use CPU hotplug features. More info:

grossmj commented 4 years ago

I think we should implement QMP support first (see https://github.com/GNS3/gns3-server/issues/1605) before we can properly implement this.

This is because we need to use some QMP commands that are not available using Qemu monitor: https://github.com/qemu/qemu/blob/master/docs/cpu-hotplug.rst

Also, cpu-add command in Qemu monitor is deprecated.