xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* A Problem with Cache in Xen
@ 2012-01-13  0:55 hxkhust
  2012-01-19 11:07 ` Tim Deegan
  2012-01-23 17:56 ` hxkhust
  0 siblings, 2 replies; 3+ messages in thread
From: hxkhust @ 2012-01-13  0:55 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 940 bytes --]

Hi,
 
I am a second-year graduate student.Recently,i have done some research on xen and encounter a problem.Thus i send this e-mail to you for help.
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 B and VM C's virtual disk image files are based on VM A'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 B get a page data from VM A's virtual disk image file. After that ,VM C also need to get the same page data as VM B got just now.Under this situation, does VMM copy the page data from VM B's memory to VM C's memory or get the page data from VM A's virtual disk image file in the physical disk again? 
 
 
HXK
Huazhong University of Science and Technology
Wuhan, 430074, China






[-- Attachment #1.2: Type: text/html, Size: 1643 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: A Problem with Cache in Xen
  2012-01-13  0:55 A Problem with Cache in Xen hxkhust
@ 2012-01-19 11:07 ` Tim Deegan
  2012-01-23 17:56 ` hxkhust
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Deegan @ 2012-01-19 11:07 UTC (permalink / raw)
  To: hxkhust; +Cc: xen-devel

Hi, 
At 08:55 +0800 on 13 Jan (1326444953), 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 B and VM C's virtual disk image files are based on VM
>  A'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 B get a page data from VM A's virtual
>  disk image file. After that ,VM C also need to get the same page data
>  as VM B got just now.Under this situation, does VMM copy the page
>  data from VM B's memory to VM C's memory or get the page data from VM
>  A's virtual disk image file in the physical disk again?

Since VM C's disk is not QCOW, reads will always come directly from VM
C's image -- never from VM A's image (since the tools wouldn't know how
to do that) and never by copying from VM B.

Tim.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: A Problem with Cache in Xen
  2012-01-13  0:55 A Problem with Cache in Xen hxkhust
  2012-01-19 11:07 ` Tim Deegan
@ 2012-01-23 17:56 ` hxkhust
  1 sibling, 0 replies; 3+ messages in thread
From: hxkhust @ 2012-01-23 17:56 UTC (permalink / raw)
  To: Tim Deegan; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1925 bytes --]

I am terribly sorry for the mistake that i made in my last latter.I express my question incorrectly.
The following is the correct one:
 
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? 

At 2012-01-19 19:07:38,"Tim Deegan" <tim@xen.org> wrote:
>Hi, 
>At 08:55 +0800 on 13 Jan (1326444953), 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 B and VM C's virtual disk image files are based on VM
>>  A'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 B get a page data from VM A's virtual
>>  disk image file. After that ,VM C also need to get the same page data
>>  as VM B got just now.Under this situation, does VMM copy the page
>>  data from VM B's memory to VM C's memory or get the page data from VM
>>  A's virtual disk image file in the physical disk again?
>
>Since VM C's disk is not QCOW, reads will always come directly from VM
>C's image -- never from VM A's image (since the tools wouldn't know how
>to do that) and never by copying from VM B.
>
>Tim.

[-- Attachment #1.2: Type: text/html, Size: 3387 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-23 17:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13  0:55 A Problem with Cache in Xen hxkhust
2012-01-19 11:07 ` Tim Deegan
2012-01-23 17:56 ` hxkhust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).