[libvirt] Horrible performance of virDomainGetInfo()

Jiri Denemark jdenemar at redhat.com
Wed Dec 7 14:45:10 UTC 2011

On Wed, Dec 07, 2011 at 14:30:10 +0000, Daniel P. Berrange wrote:
> While investigating the RPC problems I've noticed that we have had a
> huge performance regression for virDomainGetInfo() due to the change
> which makes virDomainEndJob() save the XML status file every time it
> is called.
> Previous to this change, 2000 calls to virDomainGetInfo() took ~2.5 seconds
> After this change, 2000 calls to virDomainGetInfo() take 2 *minutes* 45 secs
> I don't have an answer right now and it shouldnt block the release, but we
> have todo something to avoid this overhead.

I think we could change job APIs to only save XML status if async job is
active since we are currently not really interested in other jobs anyway.


More information about the libvir-list mailing list