From: Ian Pratt Subject: Re: Xen Roadmap Date: Wed, 25 Feb 2004 15:49:52 +0000 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: References: <403CAB52.4070805@cs.rutgers.edu> Return-path: In-reply-to: Your message of "Wed, 25 Feb 2004 09:04:02 EST." <403CAB52.4070805@cs.rutgers.edu> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Aniruddha Bohra Cc: Ian Pratt , xen-devel@lists.sf.netIan.Pratt@cl.cam.ac.uk List-Id: xen-devel@lists.xenproject.org > Does this live migration include migration of open files, > sockets, pipes etc ? Or is this limited to the process migration. We mean migration of whole operating systems and applications running in a VM. > What I mean is : > If I have a VM running a web server, and I try to migrate, > will I lose the connection, or will it continue seamlessly? It should continue seamlessly. > Some other questions that arise if the above is true are: > 1) If it does, will the client application/server application change > in any way ? No. > 2) How do the TCP bytestreams get synchronized after migration? When the VM migrates to a new host, the LAN switch/router is tricked into sending packets for the VMs IP address to the new host.[*] Some packets could get lost in the changeover period, but TCP will just deal with this in the normal way. We could forward packets that arrive at the old host to the new one for a period, but this is probably unnecessary in most circumstances. > 3) How big a state do you envision you would need to transfer ? If the VM has xMB of memory in use, we'll have to transfer at least that much [**]. However, it won't be transfered in one go, but incrementally while the VM is still running. [The disk state is another issue -- its probably best to either use a SAN, iSCSI or an NFS filesystem] Ian [*] There are two ways of doing this (assuming same physical subnet). 1) Have the new machine spoof an arp reply for itself to the broadcast address 2) Give the VM its own MAC address and migrate that to the new host. The LAN switch will update its CAM when it spots the MAC active on a new port. [**] We could exploit para-virtualization and patch the guest such that it prepares itself for migration by 'forking' itself and then purging the buffer cache to minimise it's memory footprint. It would probably just mean a whole lot more page faults on the destination machine, though. ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click