|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 08 of 12] xenpaging: start paging in the middle of gf
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307437217 -7200
# Node ID f5203dded3b13a33716ae50ef12d766c394f81f5
# Parent 5aae4431bfc0970fd48f856fc4ede547ed4860f3
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 5aae4431bfc0 -r f5203dded3b1 tools/xenpaging/policy_default.c
--- a/tools/xenpaging/policy_default.c Tue Jun 07 11:00:16 2011 +0200
+++ b/tools/xenpaging/policy_default.c Tue Jun 07 11:00:17 2011 +0200
@@ -76,6 +76,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;
+
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 00 of 12] xenpaging fixes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 01 of 12] xenpaging: correct dropping of pages to avoid full ring buffer, Olaf Hering
- [Xen-devel] [PATCH 03 of 12] xenpaging: remove srand call, Olaf Hering
- [Xen-devel] [PATCH 04 of 12] xenpaging: remove return values from functions that can not fail, Olaf Hering
- [Xen-devel] [PATCH 05 of 12] xenpaging: catch xc_mem_paging_resume errors, Olaf Hering
- [Xen-devel] [PATCH 06 of 12] xenpaging: remove local domain_id variable, Olaf Hering
- [Xen-devel] [PATCH 08 of 12] xenpaging: start paging in the middle of gfn range,
Olaf Hering <=
- [Xen-devel] [PATCH 07 of 12] xenpaging: move num_pages into xenpaging struct, Olaf Hering
- [Xen-devel] [PATCH 09 of 12] xenpaging: pass integer to xenpaging_populate_page, Olaf Hering
- [Xen-devel] [PATCH 11 of 12] xenpaging: add watch thread to catch guest shutdown, Olaf Hering
- [Xen-devel] [PATCH 10 of 12] xenpaging: add helper function for unlinking pagefile, Olaf Hering
- [Xen-devel] [PATCH 02 of 12] xenpaging: do not bounce p2mt to xenpaging, Olaf Hering
- [Xen-devel] [PATCH 12 of 12] xenpaging: implement stopping of pager by sending SIGTERM/SIGINT, Olaf Hering
- Re: [Xen-devel] [PATCH 00 of 12] xenpaging fixes for xen-unstable, Keir Fraser
|
|
|
|
|