aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenpaging/xenpaging.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-01-11 10:32:05 +0000
committerKeir Fraser <keir@xen.org>2011-01-11 10:32:05 +0000
commit2dc5d916ff3b77a44bff7c5cef97c723eaf01367 (patch)
treeca0e281264e3604838c4e2dab815d010b6b55d83 /tools/xenpaging/xenpaging.h
parent56f2a91b86c48d976d9e7908b218575da740016d (diff)
downloadxen-2dc5d916ff3b77a44bff7c5cef97c723eaf01367.tar.gz
xen-2dc5d916ff3b77a44bff7c5cef97c723eaf01367.tar.bz2
xen-2dc5d916ff3b77a44bff7c5cef97c723eaf01367.zip
xenpaging: specify policy mru_size at runtime
The environment variable XENPAGING_POLICY_MRU_SIZE will change the mru_size in the policy at runtime. Specifying the mru_size at runtime allows the admin to keep more pages in memory so guests can make more progress. Its also good for development to reduce the value to put more pressure on the paging related code paths. Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'tools/xenpaging/xenpaging.h')
-rw-r--r--tools/xenpaging/xenpaging.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/xenpaging/xenpaging.h b/tools/xenpaging/xenpaging.h
index a6bf556200..f4ebcefca8 100644
--- a/tools/xenpaging/xenpaging.h
+++ b/tools/xenpaging/xenpaging.h
@@ -45,6 +45,7 @@ typedef struct xenpaging {
unsigned long *bitmap;
mem_event_t mem_event;
+ int policy_mru_size;
} xenpaging_t;