GNOME Bugzilla – Bug 685900
libvirt-machine: Only gather stats in running state
Last modified: 2016-03-31 13:56:44 UTC
See patch and its log for details
Created attachment 226186 [details] [review] libvirt-machine: Only gather stats in running state There is no need to keep querying libvirt for stats/info on domain if domain is not running. Doing so only wastes host resources and even result in console getting spammed with warnings when host is under heavy load.
Review of attachment 226186 [details] [review]: ::: src/libvirt-machine.vala @@ +90,3 @@ case DomainState.BLOCKED: state = MachineState.RUNNING; + set_stats_enable (true); is this call necessary, since the notify["state"] handler does the same?
(In reply to comment #2) > Review of attachment 226186 [details] [review]: > > ::: src/libvirt-machine.vala > @@ +90,3 @@ > case DomainState.BLOCKED: > state = MachineState.RUNNING; > + set_stats_enable (true); > > is this call necessary, since the notify["state"] handler does the same? It would be redundant if notify was getting connected before this switch.
So shall I push this before 3.6.1?
Review of attachment 226186 [details] [review]: ack
Attachment 226186 [details] pushed as f2bdae3 - libvirt-machine: Only gather stats in running state