Re: 答复: Help:Can libvirt restore several xen snapshots more faster at same time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/14/2017 03:34 AM, Chenjia (C) wrote:
> Dear libvirt expert:
> 	Thanks for your reply.
> 	May be our description is not suitable, in last message,'snapshot' means the domain state file which 'virsh save ' generate.
> 
> 	Our project detailed steps are as follows:
> 	1) create 40 xen guestOS by 'vrish create xen*.xml' 
> 	2) save 40 guest OS to domain state file by 'virsh save' cmd
> 	3) Start multiple processes, each process cycle to do the following job:
> 		a)virsh restore the domain state file

'virsh restore' has --bypass-cache option which basically enables
O_DIRECT. That can save you couple of seconds.

> 		b)do same job in guest OS in 20 seconds
> 		c)virsh destroy the guest OS
> 
> 	We need higher performance on the project , so our question is these as last message:
> 	1)	each our xen state file is almost same except IP address(Win7 OS with 1G memory), does there have some way to reduce the 40 state file space? 

I don't think so. I mean, I don't know about Xen that much, but for
instance in QEMU, the saved file contains memory for the guest (among
with the internal state of hypervisor). In general, no guest have the
same content of the memory. Also, you only *think* that the guests are
the same. There is a lot of subtle differences (e.g. internal kernel
state, RNG, network stack, stack randomization, etc.). So having some
shared base image is not really a way to go. But for saving some disk
space you can enable compression for the saved images (possibly not
implemented in Xen driver).

> 	2)	Do you have some suggestion to improve the performance of restore as much as  xen state file at same time?

See my replies above. But I'll let Jim reply as he knows more about Xen
than me.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux