Skip to contentSkip to conversation

A Problem with Cache in Xen

DISCUSSION hxkhust 2 participants 3 messages Jan 13, 2012 – Jan 23, 2012

lore
Share & tools
lore

hxkhust

author
#0 lore raw

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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi,

Quoted 7 lines · hxkhust

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.

Quoted 5 lines

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.

author
#2 lore raw

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?

Quoted 15 lines · At 2012-01-19 19:07:38,"Tim Deegan" <[email protected]> wrote:

Hi,

Quoted 7 lines · hxkhust

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.

Quoted 5 lines

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?

Quoted 5 lines

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.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel