WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Xmalloc worst case performance and bad corner cases

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Xmalloc worst case performance and bad corner cases
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sat, 27 Sep 2008 04:15:19 +0100
Cc:
Delivery-date: Fri, 26 Sep 2008 20:15:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <18fe9415-24d1-4a7c-81f8-a34f3ec3fccb@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckgT0UQg7zW9IxCEd2bVQAWy6hiGQ==
Thread-topic: [Xen-devel] Xmalloc worst case performance and bad corner cases
User-agent: Microsoft-Entourage/11.4.0.080122
Yes, it's not a very good allocator!

 -- Keir

On 26/9/08 23:34, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> It appears that if xmalloc (Xen heap allocator) is
> used for a long sequence of n memory requests with
> the size of each request greater than a half-page,
> but less than a page, performance will be O(n**2).
> 
> True?
> 
> And because of space for a header and alignment,
> the interval is actually from slightly less than
> a half-page to slightly less than a full-page...
> and xmalloc of a few bytes less than a full-page will
> actually end up allocating two full pages!
> 
> True?
> 
> (Yes, I realize that xmalloc'ing a "long sequence"
> from Xen heap is not a good idea because the Xen
> heap is rather small, but I currently have a veneer
> using the xmalloc/xfree routines on top of the
> domain heap, and "future versions" of 64-bit combined
> heap allocation may reuse the existing allocation
> algorithm.)
> 
> Dan
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>