dom0/qmemman: Check for memory_maximum also for dom0
This commit is contained in:
parent
bd447308fe
commit
9ed6b94d63
@ -60,7 +60,7 @@ def prefmem(domain):
|
||||
CACHE_FACTOR = 1.3
|
||||
#dom0 is special, as it must have large cache, for vbds. Thus, give it a special boost
|
||||
if domain.id == '0':
|
||||
return domain.mem_used*CACHE_FACTOR + 350*1024*1024
|
||||
return min(domain.mem_used*CACHE_FACTOR + 350*1024*1024, domain.memory_maximum)
|
||||
return min(domain.mem_used*CACHE_FACTOR, domain.memory_maximum)
|
||||
|
||||
def memory_needed(domain):
|
||||
|
Loading…
Reference in New Issue
Block a user