From 8e5eb3ece2fcec6c7dda6aa67607a4cb7acd3f76 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Thu, 26 Jan 2012 01:16:56 +0100 Subject: [PATCH] dom0: qmemman: set MIN_PREFMEM to 200MB Apparently 100MB is not enough for fc15 template and it causes some VMs to be killed internally by OOM during their initialization. --- dom0/qmemman/qmemman_algo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qmemman/qmemman_algo.py b/dom0/qmemman/qmemman_algo.py index f0d3d95c..d8c1f6b2 100755 --- a/dom0/qmemman/qmemman_algo.py +++ b/dom0/qmemman/qmemman_algo.py @@ -58,7 +58,7 @@ def refresh_meminfo_for_domain(domain, untrusted_xenstore_key): def prefmem(domain): CACHE_FACTOR = 1.3 - MIN_PREFMEM = 100*1024*1024 + MIN_PREFMEM = 200*1024*1024 #dom0 is special, as it must have large cache, for vbds. Thus, give it a special boost if domain.id == '0': return min(domain.mem_used*CACHE_FACTOR + 350*1024*1024, domain.memory_maximum)