From: Dan Magenheimer Subject: Re: reliable live migration of large and busy guests Date: Mon, 12 Nov 2012 09:12:33 -0800 (PST) Message-ID: References: <20121106202816.GA29655@aepfle.de> <20121106221806.GA1813@aepfle.de> <50999ACF.4040106@citrix.com> <721bf725-662f-41cb-a1a3-7c908e05c188@default> <509A65D6.6050505@citrix.com> <73e55d7f-737f-4690-8b69-0252e0b749dd@default> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap Cc: Andrew Cooper , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org > From: George Dunlap [mailto:George.Dunlap@eu.citrix.com] > Subject: Re: [Xen-devel] reliable live migration of large and busy guests > > On Wed, Nov 7, 2012 at 3:10 PM, Dan Magenheimer wrote: > > > > From an idealistic point of view, it might be quite nice to have several > > > live migrate mechanisms, so the user can choose whether they value > > minimum downtime, minimum network utilisation, or maximum safety. > > Agreed. IIRC, when post-copy was suggested for Xen years ago, > Ian Pratt was against it, though I don't recall why, so Michael > Hines work was never pursued (outside of academia). Probably > worth asking IanP before investing too much time into it. > > Was he against a hybrid approach, where you "push" things first, and then "pull" things later? Or > just against a pure "pull" approach? I'm pretty sure a pure "pull" approach would result in lower > performance during the migration. Sorry, I don't recall. > Just tossing another idea out there: What about throttling the VM if it's dirtying too many pages? > You can use the "cap" feature of the credit1 scheduler to reduce the amount of cpu time a given VM > gets, even if there is free cpu time available. You could play around with doing N iterations, and > then cranking down the cap on each iteration after that; then the application wouldn't have a several- > second pause, it would just be "running slowly" for some period of time. > > Overall doing a hybrid "send dirty pages for a while, then move and pull the rest in" seems like the > best approach in the long-run, but it's fairly complicated. A throttling approach is probably less > optimal but simpler to get working as a temporary measure. I agree there are lots of interesting hybrid possibilities worth exploring. There are side-effects to be considered though... for example, the current push approach is the only one that should be used when the goal of the migration is to evacuate a physical machine so that it can be powered off ASAP for maintenance or power management.