Libvirt vs QEMU benefits

Daniel P. Berrangé berrange at redhat.com
Tue Apr 19 10:25:31 UTC 2022


On Wed, Apr 06, 2022 at 12:44:37PM +0000, M, Shivakumar wrote:
> Hello,
> 
> For one of our case validation, we were using direct QEMU commands before for VM creation as it was easier to configure the VMs. Inside VM we do run the real-time latency test.
> Recently we switched to libvirt for the VM creation and deletion. Surprisingly, we do see a significant increase in the real-time latency performance for the VMs launched through the libvirt.
> 
> W.r.t configuration wise both VMs are the same, we just converted the existing QEMU commands into libvirt XMLs.

It would be useful to share your QEMU command line args seen both
with directly running QEMU and via libvirt. I'd be really suprised
if your direct config was exactly the same as libvirt's.

> I am wondering what and all the features which libvirt has,
> improving this performance.

If it isn't related to QEMU configuration, then most likely candidate
is the use of cgroups for placing VMs.

With regards,
Daniel
-- 
|: 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