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: Re: [Xen-devel] Balloon driver for Linux/HVM

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, George Dunlap <dunlapg@xxxxxxxxx>
Subject: Re: Re: [Xen-devel] Balloon driver for Linux/HVM
From: Chu Rui <ruichu@xxxxxxxxx>
Date: Wed, 17 Nov 2010 10:28:01 +0800
Cc:
Delivery-date: Tue, 16 Nov 2010 18:28:53 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=OHQMr7qMUvPxDiwzKTTwYWVpW+1XriBN4d+iPvmpPJ8=; b=mW8rqs1dKZG9ppMGrYi5+pRqDJvLxnMMclOlCpzIw4Q/uaVq8502c8msEbWn6o0wXl qX6MIpuCp+quph2/wAxkQgUk7rUWflCLhRawp6uqguoD0hEHHMVMHsqUXsKbxO0dzIxb YrO6VeYmJaPEJYBgIZ5koW6TJZg/n7bp6wusM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Op0+9UPs5zA4Tj63qsRVcNq7w/MZOV0DIQuMm0a6WaJEIyjgQ+Ku/kyQE/IRoIC/89 Jtuxu4xH3kKJrzo/850EG8nuGeAUvMykf5R/3BkrYSr2fCK5jpUNd7quFtZiqXE5owX5 tjM0rOGnOJTxX6K2tHS+0rY0bMPL54+SjV1cY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <85512edc-3972-4a15-896a-66fb02665611@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>
References: <AANLkTimG5Z3FFrKc21Mtfg-q3eF-aEPEeWZ1cfEDqB7D@xxxxxxxxxxxxxx> <alpine.DEB.2.00.1011161133350.2373@kaball-desktop> <1ae18b.16279.12c547ff769.Coremail.topperxin@xxxxxxx> <AANLkTimgiR1a_BYQiTLK=5pKtfqH7LNaS2CNgYAimpeO@xxxxxxxxxxxxxx> <85512edc-3972-4a15-896a-66fb02665611@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thank you, Dan.
 
It is a pity that tmem cannot be used for Windows guest. But can we disable the guest Windows caching? If so, the guest OS is no longer a memory hog (as referred in your talk), and maybe we can manage its memory consumption on demand, as a ring3 application does.
 
BTW, as far as I am concerned, Windows XP does NOT zeros all of the memory at startup stage. Actually, even the memory allocated in ring3 application was not commited until it was really accessed. So PoD memory may work well in that case.
 
 
在 2010年11月17日 上午1:10,Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>写道:

FYI, Transcendent Memory does work with HVM, with a recent Xen and the proper Linux guest-side patches (including Stefano’s PV-on-HVM patchset).  There is extra overhead in an HVM for each tmem call due to vmenter/vmexit and I have not measured performance, but this overhead should not be too large on newer processors.  Also, of course, Transcendent Memory will not work with Windows guests (or any guests that do not have tmem patches), while PoD is primarily intended to work with Windows (because, IIRC, Windows zeroes all of memory).

 

I agree that guest IO cacheing is mostly useless for CLEAN pages if the dom0 page cache is large enough for all guests (or if tmem is working).  For dirty pages, using dom0 cacheing risks data integrity problems (e.g. the guest believes a transaction to disk is complete but the data is in a dom0 cache that has not been flushed to disk).


Dan

 

From: Chu Rui [mailto:ruichu@xxxxxxxxx]
Sent: Tuesday, November 16, 2010 8:37 AM
To: George Dunlap; Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: Re: [Xen-devel] Balloon driver for Linux/HVM

 

Thank you for your kind reply, George.

 

I am interested on the PoD memory. In my perspective, PoD mainly works in the system initialization stage. Before the balloon driver begins to work, it can limit the  memory consumption of the guests. However, after a while the guest OS will commit more memory, but PoD cannot reclaim any more at that time even when the committed pages is IO cache. While the balloon keeps work all of the time.

Would you please tell me whether my thought is correct?

Actually, in my opinion, the guest IO cache is mostly useless, since the Dom0 will cache the IO operations. Such a double-cache wastes the memory resources. Is there any good idea for that like Transcendent Memory while works with HVM?

20101116日 下午8:56George Dunlap <dunlapg@xxxxxxxxx>写道:

2010/11/16 牛立新 <topperxin@xxxxxxx>:

> o, it's strange, the old version have no this limitation.

No; unfortunately a great deal of functionality present in "classic
xen" has been lost in the process of getting the core dom0 support
into the pvops kernel.  I think the plan is, once we have the
necessary changes to non-xen code pushed up stream, we can start
working on getting feature parity with classic xen.


>
>
> At 2010-11-16 19:35:50"Stefano Stabellini" <stefano.stabellini@xxxxxxxxxxxxx> wrote:
>
>>On Tue, 16 Nov 2010, Chu Rui wrote:
>>> Hi,
>>> I have noticed that, in the code of linux/drivers/xen/balloon.c, there exists the snippet as this:
>>>
>>> static int __init balloon_init(void)
>>> {
>>> unsigned long pfn;
>>> struct page *page;
>>> if (!xen_pv_domain())
>>> return -ENODEV;
>>> .....
>>> }
>>>
>>> Does it means the driver will not work in HVM? If so, where is the HVN-enabled code for that?
>>
>>not yet, even though I have a patch ready to enable it:
>>
>>git://xenbits.xen.org/people/sstabellini/linux-pvhvm.git 2.6.36-rc7-pvhvm-v1
>
>
> ________________________________
> 网易163/126邮箱百分百兼容iphone ipad邮件收发

> _______________________________________________
> 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