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

Re: [Xen-users] Xen 4 - Page Sharing HowTo?

To: Nick Couchman <Nick.Couchman@xxxxxxxxx>
Subject: Re: [Xen-users] Xen 4 - Page Sharing HowTo?
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Fri, 9 Apr 2010 13:36:42 +0100
Cc: XEN Mailing List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 09 Apr 2010 05:38:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=62Mr+izE8EN4LfyFJHFKkLfd90RbGwP5tS+1vWBkdjQ=; b=XakqI5G3NNuR/08F8TB6DXjEUlFdm95DJEZ47RE7Xy9ZCp3Zk8puKEMc3dE79TZSws yL5bsLNI2nkJ5eWj4zrvfr2bazZ5pPrSUspYmyyQG2LI2rSDGYiYkcnQ+RAVS/1ztXhG 32jXMx4/jTDmOF/HUGSBFaTWAa8JXWJxL+Tbw=
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 :cc:content-type:content-transfer-encoding; b=hUChNc/jh2ukik5LTNvJbNIkSwTwT//2qgz4r6faBaE9ValrwCXGwvo3yo1IqvPf+H HSBamoyPkAB8ZQad62Iddg0v3XJ0IgadsBqNWH68whfgibm9AjWSRPwnSXbeWkYVs811 SJp7sSu7TRAy3Lek78cYQpRkX4IOiRy09OgBA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <w2sf4527be1004090526h9ba075a5ga75de2ee3077196d@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4BBDFDF5020000990004DEF5@xxxxxxxxxxxxxxxxxxxxx> <t2hf4527be1004090518y697afc43gbf3b2302e34c937f@xxxxxxxxxxxxxx> <w2sf4527be1004090526h9ba075a5ga75de2ee3077196d@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, Apr 9, 2010 at 1:26 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
> On Fri, Apr 9, 2010 at 1:18 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
>> On Thu, Apr 8, 2010 at 11:01 PM, Nick Couchman <Nick.Couchman@xxxxxxxxx> 
>> wrote:
>>> One of the features listed as having been added to Xen 4 is page sharing 
>>> for HVM domUs.  I was wondering if 1) this is automatic, or something that 
>>> must be enabled, and 2) if it must be enabled, how do you go about enabling 
>>> it?
>>>
>>> Thanks!
>>> -Nick
>>
>> See 
>> http://lists.xensource.com/archives/html/xen-changelog/2009-12/msg00192.html
>>
>> The setting you need to add is memory_sharing
>>
>> I think it may require hap but I am not sure yet.. just about to test it.
>>
>> Andy
>>
>
> I added memory_sharing=1 to two hvm guests and started them up, xm log
> shows that the setting was applied but there seems to be no change in
> the reported memory usage, is there any way to monitor shared memory
> performance?
>
> Andy
>

I don't think memory_sharing=1 works at all, the very first thing that
should happen when it is enabled is a printk:

void mem_sharing_init(void)
{
    printk("Initing memory sharing.\n");


But I've not seen that at all on my 4.x system.

Andy

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