[pve-devel] [PATCH 2/2] monitor diskio with qmp command

Alexandre DERUMIER aderumier at odiso.com
Tue Jul 10 14:03:16 CEST 2012


>>The problem with that is that vmstatus needs to be fast, and should never block.
>>What if a KVM process hangs?

Yes, I have see some qmp error when vm is shutting down,  in vm->summary->status.


>>Maybe we can add a flag to vmstatus: 
>>
>>sub vmstatus { 
>>my ($opt_vmid, $details) = @_; 
>>
>>And only gather details if they are really needed. So far only pvestatd required diskread/diskwrite 
>>
>>What do you think? 

So,yes,good idea. only pvestatd should check disk detail.


Another thing, is it possible to launch vmstatus with some kind of parallelism ? 
I'm not expert in perl, but something  which works like LWP::Parallel.
So, if a kvm process take time to respond, it doesn't impact other vm stats.
Also I didn't have benched qmp call, but maybe with a lot of vms,it can take too much time if called sequentially ?



-- 

-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 



More information about the pve-devel mailing list