xen/xenpaging.MRU_SIZE.patch

26 lines
674 B
Diff
Raw Normal View History

Subject: 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.
(xen-unstable changeset: 22447:aba70e59a90d)
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
tools/xenpaging/policy_default.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- xen-4.0.1-testing.orig/tools/xenpaging/policy_default.c
+++ xen-4.0.1-testing/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];