From: hxkhust Subject: Re: A Problem with Page Cache in Xen Date: Tue, 31 Jan 2012 15:01:37 +0800 (CST) Message-ID: <78371237.7e0e.13532919b2f.Coremail.hxkhust@126.com> References: <20120130094722.GB96325@ocelot.phlegethon.org> <298edff9.10461.1352dabac58.Coremail.hxkhust@126.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5477655499241936633==" Return-path: In-Reply-To: <20120130094722.GB96325@ocelot.phlegethon.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============5477655499241936633== Content-Type: multipart/alternative; boundary="----=_Part_85121_106923213.1327993297711" ------=_Part_85121_106923213.1327993297711 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Is the (prototype) memory-sharing code mentioned in your last email already offered in Xen resource code? Thank you for your help. At 2012-01-30 17:47:31,"Tim Deegan" wrote: >Hi, > >At 16:11 +0800 on 30 Jan (1327939919), hxkhust wrote: >> On a physical machine with xen virtualization platform installed ,VM >> A,VM B are VM C's virtual disks are all image files,among which VM A >> and VM B's virtual disks are QCOW2 format and VM C's disk is RAW >> format. And VM A and VM B's virtual disk image files are based on VM >> C's virtual disk image file.Now these three VMs are running on the >> same physical machine with xen installed. In the process of running VM >> A get a page data from VM C's virtual disk image file. After that ,VM >> B also need to get the same page data as VM A got just now.Under this >> situation, does VMM copy the page data from VM A's memory to VM B's >> memory or get the page data from VM C's virtual disk image file in the >> physical disk again? > >It reads it from the disk again, unless you're using the (prototype) >memory-sharing code that's in blktap. > >> Or if I would like to figure out this problem,what shall I do? > >Instrument the disk, or read the code. > >Tim. ------=_Part_85121_106923213.1327993297711 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
Is the (prototype) memory-sharing code mentioned in your last email already offered in Xen resource code?
Thank you for your help.

At 2012-01-30 17:47:31,"Tim Deegan" <tim@xen.org> wrote:
>Hi,
>
>At 16:11 +0800 on 30 Jan (1327939919), hxkhust wrote:
>> On a physical machine with xen virtualization platform installed ,VM
>> A,VM B are VM C's virtual disks are all image files,among which VM A
>> and VM B's virtual disks are QCOW2 format and VM C's disk is RAW
>> format. And VM A and VM B's virtual  disk image files are based on VM
>> C's virtual disk image file.Now these three VMs are running on the
>> same physical machine with xen installed. In the process of running VM
>> A get a page data from VM C's virtual disk image file. After that ,VM
>> B also need to get the same page data as VM A got just now.Under this
>> situation, does VMM copy the page data from VM A's memory to&n bsp;VM B's
>> memory or get the page data from VM C's virtual disk image file in the
>> physical disk again?
>
>It reads it from the disk again, unless you're using the (prototype)
>memory-sharing code that's in blktap.
>
>> Or if I would like to figure out this problem,what shall I do?
>
>Instrument the disk, or read the code.
>
>Tim.




------=_Part_85121_106923213.1327993297711-- --===============5477655499241936633== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============5477655499241936633==--