aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenpaging/policy_default.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-11-26 14:25:30 +0000
committerKeir Fraser <keir@xen.org>2010-11-26 14:25:30 +0000
commit375547eb7607a65674756356337418793b13ab0c (patch)
tree3b12b6e1f73fb5b71eba73adf5f0828fc8fb692a /tools/xenpaging/policy_default.c
parent88267ccbbf47b8ecf7ac081874cc31b347e53412 (diff)
downloadxen-375547eb7607a65674756356337418793b13ab0c.tar.gz
xen-375547eb7607a65674756356337418793b13ab0c.tar.bz2
xen-375547eb7607a65674756356337418793b13ab0c.zip
xenpaging: increase recently used pages from 4MB to 64MB
Increase recently used pages from 4MB to 64MB. Keeping more pages in memory allows the guest to make more progress if the paging file spans the entire guest memory. Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'tools/xenpaging/policy_default.c')
-rw-r--r--tools/xenpaging/policy_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenpaging/policy_default.c b/tools/xenpaging/policy_default.c
index 5768e691e9..a2182d16fc 100644
--- a/tools/xenpaging/policy_default.c
+++ b/tools/xenpaging/policy_default.c
@@ -26,7 +26,7 @@
#include "policy.h"
-#define MRU_SIZE 1024
+#define MRU_SIZE (1024 * 16)
static unsigned long mru[MRU_SIZE];