|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 17 of 22] xenpaging: start paging in the middle of gf
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695643 -7200
# Node ID 6c7c51f831bfe143093146d67a205b6660490021
# Parent 6fafd6e85a20f667c9546d76569049d411b96fb1
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>
diff -r 6fafd6e85a20 -r 6c7c51f831bf 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 @@ int policy_init(xenpaging_t *paging)
/* 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 09 of 22] xenpaging: drop xc.c, remove xc files, (continued)
- [Xen-devel] [PATCH 09 of 22] xenpaging: drop xc.c, remove xc files, Olaf Hering
- [Xen-devel] [PATCH 05 of 22] xenpaging: drop xc.c, remove xc_platform_info_t, Olaf Hering
- [Xen-devel] [PATCH 07 of 22] xenpaging: drop xc.c, move xc_mem_paging_flush_ioemu_cache, Olaf Hering
- [Xen-devel] [PATCH 13 of 22] xenpaging: remove return values from functions that can not fail, Olaf Hering
- [Xen-devel] [PATCH 14 of 22] xenpaging: catch xc_mem_paging_resume errors, Olaf Hering
- [Xen-devel] [PATCH 15 of 22] xenpaging: remove local domain_id variable, Olaf Hering
- [Xen-devel] [PATCH 16 of 22] xenpaging: move num_pages into xenpaging struct, Olaf Hering
- [Xen-devel] [PATCH 18 of 22] xenpaging: pass integer to xenpaging_populate_page, Olaf Hering
- [Xen-devel] [PATCH 19 of 22] xenpaging: add helper function for unlinking pagefile, Olaf Hering
- [Xen-devel] [PATCH 20 of 22] xenpaging: add watch thread to catch guest shutdown, Olaf Hering
- [Xen-devel] [PATCH 17 of 22] xenpaging: start paging in the middle of gfn range,
Olaf Hering <=
- [Xen-devel] [PATCH 21 of 22] xenpaging: implement stopping of pager by sending SIGTERM/SIGINT, Olaf Hering
- [Xen-devel] [PATCH 22 of 22] xenpaging: remove private mem_event.h, Olaf Hering
|
|
|
|
|