aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenpaging/xenpaging.h
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2012-02-20 21:18:44 +0100
committerOlaf Hering <olaf@aepfle.de>2012-02-20 21:18:44 +0100
commit2484d09e2a4574e181df58de6a44bafc6c663a40 (patch)
tree293391884f7d3718493abb9066f042cea2a708a3 /tools/xenpaging/xenpaging.h
parent8e37ea4bb89f91593d7a07ebc049da540f6279ac (diff)
downloadxen-2484d09e2a4574e181df58de6a44bafc6c663a40.tar.gz
xen-2484d09e2a4574e181df58de6a44bafc6c663a40.tar.bz2
xen-2484d09e2a4574e181df58de6a44bafc6c663a40.zip
xenpaging: implement stack of free slots in pagefile
Scanning the slot_to_gfn[] array for a free slot is expensive because evict_pages() always needs to scan the whole array. Remember the last slots freed during page-in requests and reuse them in evict_pages(). Signed-off-by: Olaf Hering <olaf@aepfle.de> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/xenpaging/xenpaging.h')
-rw-r--r--tools/xenpaging/xenpaging.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/xenpaging/xenpaging.h b/tools/xenpaging/xenpaging.h
index 746556b1a0..e348db63c5 100644
--- a/tools/xenpaging/xenpaging.h
+++ b/tools/xenpaging/xenpaging.h
@@ -60,6 +60,8 @@ struct xenpaging {
int policy_mru_size;
int use_poll_timeout;
int debug;
+ int stack_count;
+ int *free_slot_stack;
unsigned long pagein_queue[XENPAGING_PAGEIN_QUEUE_SIZE];
};