connection: Do non-VM polling on demand

The goal here is to reduce the amount of tick() polling that we do by default.
For things like pools, networks, and interfaces, the constant polling is
not very helpful and causes CPU churn and slowness for remote connections.

Switch to a more on demand style. Pages that want new information for
these objects now request a priority tick that only refreshes the info
we want.

This isn't perfect, but neither was the previous solution in the face of
things like XML updates behind our back. The real solution here is libvirt
event support across the board.
This commit is contained in:
Cole Robinson
2013-07-07 12:17:54 -04:00
parent 39a819c34b
commit 5e9e444dec
21 changed files with 138 additions and 60 deletions
+1 -1
View File
@@ -452,7 +452,7 @@ class vmmCreatePool(vmmGObjectUI):
self.err.show_err(error,
details=details)
else:
self.conn.schedule_priority_tick()
self.conn.schedule_priority_tick(pollpool=True)
self.close()
def _async_pool_create(self, asyncjob, build):