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][1/4] Enable 1GB for Xen HVM host page

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] RE: [PATCH][1/4] Enable 1GB for Xen HVM host page
From: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
Date: Wed, 24 Feb 2010 12:25:24 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Huang2, Wei" <Wei.Huang2@xxxxxxx>
Delivery-date: Tue, 23 Feb 2010 20:26:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0AB1D1E0373373489DEAD26DC9B006FFBF38189B@xxxxxxxxxxxxxxxxxxx>
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>
References: <4B82BC38.5090008@xxxxxxx> <C7A93ABE.AF26%keir.fraser@xxxxxxxxxxxxx> <0AB1D1E0373373489DEAD26DC9B006FFBF38189B@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acqz43NZ+iZXkzh8RO6muJPvzzHYTgAekt6uAA4vG0AAFqvWEA==
Thread-topic: [PATCH][1/4] Enable 1GB for Xen HVM host page
Huang2, Wei wrote:
> The performance gain depends on applications. We have seen 5%
> performance improvement for certain benchmarks. But some have no
> perf. gains over 2MB (no performance degradation either). That is why
> I add an option to turn it off in case people don't want 1GB.   
> 
> I didn't have access to my guest QEMU until applying this patch from
> Dongxiao. Dongxiao might have other comments. 

When allocating guest memory without the patch, Xend will treat 3G-4G
as normal memory, ignoring the 3.75-4G MMIO hole. This patch modifies
MMIO start address to be 1GB aligned and could fix the issue.

Indeed, this patch may have some influence to pure 32bit guest,
changing its max memory from 3.75G to 3G.

Anyway, we can change it to alloc 2M pages between 3G and 4G if you
think this particular patch is improper. 

Thanks!
Dongxiao


> 
> -Wei
> 
> -----Original Message-----
> From: Keir Fraser [mailto:keir.fraser@xxxxxxxxxxxxx]
> Sent: Tuesday, February 23, 2010 1:57 AM
> To: Huang2, Wei; 'xen-devel@xxxxxxxxxxxxxxxxxxx'; Xu, Dongxiao
> Subject: Re: [PATCH][1/4] Enable 1GB for Xen HVM host page
> 
> What's the performance gain from 1GB mappings in HAP tables like?
> What about 
> just the (possible) extra 1GB mapping from this particular patch? Is
> it 
> worth making guest-visible efforts like this (admittedly small) one?
> After 
> all, the probably most frequently accessed 1GB starting at address 0x0
> cannot be done with a 1GB mapping and we live with it.
> 
>  -- Keir
> 
> On 22/02/2010 17:17, "Wei Huang" <wei.huang2@xxxxxxx> wrote:
> 
>> To support 1GB host page, this patch changes the MMIO starting
>> address to 1GB boundary. 
>> 
>> Signed-off-by: Dongxiao Xu <dongxiao.xu@xxxxxxxxx>
>> Signed-off-by: Wei Huang <wei.huang2@xxxxxxx>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel