Re: [Xen-devel] [PATCH] tools/libxc: Batch memory allocations for PV guests

2015-06-10 Thread Wei Liu
On Wed, Jun 10, 2015 at 02:38:15PM +0100, Ross Lagerwall wrote: > 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 single extents of > order 9 (2 MiB) be

[Xen-devel] [PATCH] tools/libxc: Batch memory allocations for PV guests

2015-06-10 Thread Ross Lagerwall
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 single extents of order 9 (2 MiB) before falling back to the order 0 allocating if the order 9 allocation fa