[libvirt-users] Running all my virtual machines with a low priority

Daniel P. Berrangé berrange at redhat.com
Wed May 1 09:47:37 UTC 2019

On Wed, May 01, 2019 at 11:41:17AM +0200, R. Diez wrote:
> > > I have an Ubuntu 18.04 system. What is the easiest way to run all of my virtual machines with a low priority? Say a "nice" level of 15.
> > 
> > You can use the  <vcpusched>  (and related elements) to control
> > the schedular nice level up or down
> > 
> >    https://libvirt.org/formatdomain.html#elementsCPUTuning
> Thanks for your quick answer.
> I took at look at that documentation, but I did not quite understand it. It
> talks about vCPUs and how they are scheduled. My guess is that it is all
> about how those virtual CPUs are scheduled against each other.
> However, I wanted to lower the priority of all virtual machines against other processes on the host system.

You would have to set the priority of all vCPUs in each guest, as well
as emulator threads in each guest (the latter needs very new libvirt).

|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

More information about the libvirt-users mailing list