dom0/qmemman: allow balance when xen have low free memory (#563)

This commit is contained in:
Marek Marczykowski 2012-06-26 00:26:53 +02:00
parent 0008e71784
commit 29e3593a02

View File

@ -132,6 +132,9 @@ class SystemState:
total_memory_transfer = 0
MIN_TOTAL_MEMORY_TRANSFER = 150*1024*1024
MIN_MEM_CHANGE_WHEN_UNDER_PREF = 15*1024*1024
# If xenfree to low, return immediately
if self.XEN_FREE_MEM_LEFT - xenfree > MIN_MEM_CHANGE_WHEN_UNDER_PREF:
return True
for rq in memset_reqs:
dom, mem = rq
last_target = self.domdict[dom].last_target