Re: [Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-04-18 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH RFC 07/20] migration: defer precopy policy to libxl"): > On Thu, Mar 30, 2017 at 01:19:41AM -0400, Joshua Otto wrote: > > Is the memcpy() really significant here? If this were a tight > > loop, sure, but every invocation of the policy callback implies > > both a 4MB ne

Re: [Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-04-12 Thread Wei Liu
On Thu, Mar 30, 2017 at 01:19:41AM -0400, Joshua Otto wrote: > > > > > +}; > > > + > > > /* callbacks provided by xc_domain_save */ > > > struct save_callbacks { > > > /* Called after expiration of checkpoint interval, > > > @@ -46,6 +54,17 @@ struct save_callbacks { > > > */ > > >

Re: [Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-03-29 Thread Joshua Otto
On Wed, Mar 29, 2017 at 07:54:15PM +0100, Jennifer Herbert wrote: > I would like to encourage this patch - as I have use for it outside > of your postcopy work. Glad to hear that! > Some things people will comment on: > You've used 'unsigned' without the int keyword, which people don't like. > Al

Re: [Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-03-29 Thread Joshua Otto
On Wed, Mar 29, 2017 at 09:18:10PM +0100, Andrew Cooper wrote: > On 27/03/17 10:06, Joshua Otto wrote: > > The precopy phase of the xc_domain_save() live migration algorithm has > > historically been implemented to run until either a) (almost) no pages > > are dirty or b) some fixed, hard-coded max

Re: [Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-03-29 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > The precopy phase of the xc_domain_save() live migration algorithm has > historically been implemented to run until either a) (almost) no pages > are dirty or b) some fixed, hard-coded maximum number of precopy > iterations has been exceeded. This policy and

Re: [Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-03-29 Thread Jennifer Herbert
Hi, I would like to encourage this patch - as I have use for it outside of your postcopy work. Some things people will comment on: You've used 'unsigned' without the int keyword, which people don't like. Also on line 324, your missing space between 'if (' and 'ctx->save.policy_decision'. Also

[Xen-devel] [PATCH RFC 07/20] migration: defer precopy policy to libxl

2017-03-27 Thread Joshua Otto
The precopy phase of the xc_domain_save() live migration algorithm has historically been implemented to run until either a) (almost) no pages are dirty or b) some fixed, hard-coded maximum number of precopy iterations has been exceeded. This policy and its implementation are less than ideal for a