]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
tools/libxc: Batch memory allocations for PV guests
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 15 Jun 2015 10:12:07 +0000 (11:12 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 17 Jun 2015 10:39:56 +0000 (11:39 +0100)
commit415b58c184b483ee31811a22d31bebcbb34b159c
tree59cef6d478b666fb4e0f0e7e97ae80a142c3703c
parentf8c72b526129ad2d8e0a1c578632d390380fd984
tools/libxc: Batch memory allocations for PV guests

The current code for allocating memory for PV guests batches the
hypercalls to allocate memory by allocating 1024*1024 extents of order 0
at a time. To make this faster, first try allocating extents of order 9
(2 MiB) before falling back to the order 0 allocating if the order 9
allocation fails.

On my test machine this reduced the time to start a 128 GiB PV guest by
about 60 seconds.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_dom_x86.c