On Sun, May 03, 2020 at 05:04:10PM +0530, Ramesh B wrote: > Hi All, > > I started recently using QEMU for OS virtualization. > Want to know/understand about scheduling. > > Environment: > Host OS: Ubuntu 18.4 + KVM enable > QEMU: 4.2 > Workstation/Desktop: x86_64 > > Would like to understand, > > 1. How CPU scheduling works. > 2. Tools/commands to monitor. > 3. Tuning parameter/API > > Could you please suggest good reference or books or pointers.
Each guest CPU (vCPU) is a QEMU thread. The host scheduler decides when and where it runs. You can various features that influence scheduling like cgroups, CPU affinity, etc to control vCPU scheduling. But the main thing to understand is that vCPUs are just threads running on the host Linux scheduler. All the usual tools are at your disposal. Libvirt also provides support for configuring CPU scheduling/resource control. Stefan
signature.asc
Description: PGP signature