[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenpaging: start paging in the middle of gfn range



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695643 -7200
# Node ID 1e44e75d889c736c602c4d7a62a7b6c259e3abe5
# Parent  4aaa90c1db4250964f7982fa7c59bf9518988e91
xenpaging: start paging in the middle of gfn range

Set the starting gfn to somewhere in the middle of the gfn range to
avoid paging during BIOS startup. This can speedup booting of a guest.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r 4aaa90c1db42 -r 1e44e75d889c tools/xenpaging/policy_default.c
--- a/tools/xenpaging/policy_default.c  Fri Jun 10 10:47:22 2011 +0200
+++ b/tools/xenpaging/policy_default.c  Fri Jun 10 10:47:23 2011 +0200
@@ -69,6 +69,10 @@
     /* Don't page out page 0 */
     set_bit(0, bitmap);
 
+    /* Start in the middle to avoid paging during BIOS startup */
+    current_gfn = max_pages / 2;
+    current_gfn -= paging->num_pages / 2;
+
     rc = 0;
  out:
     return rc;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.