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

[Xen-devel] Re: [PATCH] tmem: fix to 20945 "When tmem is enabled, reserv

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] tmem: fix to 20945 "When tmem is enabled, reserve a fraction of memory"
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 17 Feb 2010 12:10:09 +0000
Cc: Jan Beulich <JBeulich@xxxxxxxxxx>
Delivery-date: Wed, 17 Feb 2010 04:10:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4f9cade6-4b13-41fd-bc34-7443fb06ece3@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: AcqvNirWD59Cl6OQSvGJpE26ulEf+AAk/s2/
Thread-topic: [PATCH] tmem: fix to 20945 "When tmem is enabled, reserve a fraction of memory"
User-agent: Microsoft-Entourage/12.23.0.091001
On 16/02/2010 18:30, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> -    if ( opt_tmem && ((order == 0) || (order >= 9)) &&
> -         (total_avail_pages <= midsize_alloc_zone_pages) )
> -        goto fail;
> +    if ( opt_tmem && (total_avail_pages <= midsize_alloc_zone_pages) )
> +    {
> +        if ( order == 0)
> +            goto try_tmem;
> +        if ( order >= 9)
> +            goto fail;

Why not try_tmem in the case that order>=9, too, rather than fail outright?

 -- Keir



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