[Spice-devel] [PATCH 3/7] Release resources before allocating
Yonit Halperin
yhalperi at redhat.com
Tue Aug 24 04:05:42 PDT 2010
On 08/24/2010 11:41 AM, alexl at redhat.com wrote:
> From: Alexander Larsson<alexl at redhat.com>
>
> Before trying to allocate memory we free a large chunk of
> freeable resources. Leaving the resources unfreed before allocating
> increases the risks of unnecessarily fragmenting the heap, which
> is bad, especially for the vram which needs large free contiguous
> allocations for surfaces.
>
> We do somewhat limit the number of resources we free on each call
> to ensure that we get an approximately even spread of the cost of
> allocations.
> ---
Ack
More information about the Spice-devel
mailing list