Re: [PATCH] migration/dirtyrate: use QEMU_CLOCK_HOST to report start-time

2023-09-19 Thread gudkov . andrei--- via
On Tue, Sep 19, 2023 at 11:14:52AM +0200, Markus Armbruster wrote: > Philippe Mathieu-Daudé writes: > > > Hi Andrei, > > > > On 5/9/23 11:18, Andrei Gudkov via wrote: > >> Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as > >> the source for start-time field. This translates to > >> clock_ge

Re: [PATCH v2] migration/calc-dirty-rate: millisecond-granularity period

2023-08-27 Thread gudkov . andrei--- via
On Sat, Aug 26, 2023 at 04:32:01PM +0800, Yong Huang wrote: > Hi, Andrei. I'm preparing a patchset for a pull request. > > For this patch, would you mind if I? > 1. Generate a single patch from the optimization partition. > 2. In the patch above, include my comment and my "Reviewed-by". > 3. Add i

Re: [PATCH v2] migration/calc-dirty-rate: millisecond-granularity period

2023-08-09 Thread gudkov . andrei--- via
On Sun, Aug 06, 2023 at 02:16:34PM +0800, Yong Huang wrote: > On Fri, Aug 4, 2023 at 11:03 PM Andrei Gudkov > wrote: > > > Introduces alternative argument calc-time-ms, which is the > > the same as calc-time but accepts millisecond value. > > Millisecond granularity allows to make predictions whe

Re: [PATCH v2] migration/calc-dirty-rate: millisecond-granularity period

2023-08-09 Thread gudkov . andrei--- via
On Sun, Aug 06, 2023 at 02:31:43PM +0800, Yong Huang wrote: > On Sat, Aug 5, 2023 at 2:05 AM Markus Armbruster wrote: > > > Andrei Gudkov writes: > > > > > Introduces alternative argument calc-time-ms, which is the > > > the same as calc-time but accepts millisecond value. > > > Millisecond gran

Re: [PATCH] migration/calc-dirty-rate: millisecond precision period

2023-08-01 Thread gudkov . andrei--- via
On Mon, Jul 31, 2023 at 04:06:24PM -0400, Peter Xu wrote: > Hi, Andrei, > > On Mon, Jul 31, 2023 at 05:51:49PM +0300, gudkov.and...@huawei.com wrote: > > On Mon, Jul 17, 2023 at 03:08:37PM -0400, Peter Xu wrote: > > > On Tue, Jul 11, 2023 at 03:38:18PM +0300, gudkov.and...@huawei.com wrote: > > >

Re: [PATCH] migration/calc-dirty-rate: millisecond precision period

2023-07-31 Thread gudkov . andrei--- via
On Mon, Jul 17, 2023 at 03:08:37PM -0400, Peter Xu wrote: > On Tue, Jul 11, 2023 at 03:38:18PM +0300, gudkov.and...@huawei.com wrote: > > On Thu, Jul 06, 2023 at 03:23:43PM -0400, Peter Xu wrote: > > > On Thu, Jun 29, 2023 at 11:59:03AM +0300, Andrei Gudkov wrote: > > > > Introduces alternative arg

Re: [PATCH] migration/calc-dirty-rate: millisecond precision period

2023-07-11 Thread gudkov . andrei--- via
On Thu, Jul 06, 2023 at 03:23:43PM -0400, Peter Xu wrote: > On Thu, Jun 29, 2023 at 11:59:03AM +0300, Andrei Gudkov wrote: > > Introduces alternative argument calc-time-ms, which is the > > the same as calc-time but accepts millisecond value. > > Millisecond precision allows to make predictions whe

Re: [PATCH v2 4/4] migration/calc-dirty-rate: tool to predict migration time

2023-06-02 Thread gudkov . andrei--- via
On Tue, May 30, 2023 at 11:21:38AM +0800, Wang, Lei wrote: > On 4/27/2023 20:43, Andrei Gudkov via wrote: > > +deadline constraint. > > + > > +:param model: `MemoryModel` object for a given VM > > +:param bandwidth: Bandwidth available for migration [bytes/s] > > +:param downtime: M

Re: [PATCH v2 0/4] Migration time prediction using calc-dirty-rate

2023-05-31 Thread gudkov . andrei--- via
On Tue, May 30, 2023 at 11:46:50AM -0400, Peter Xu wrote: > Hi, Andrei, > > On Thu, Apr 27, 2023 at 03:42:56PM +0300, Andrei Gudkov via wrote: > > Afterwards we tried to migrate VM after randomly selecting max downtime > > and bandwidth limit. Typical prediction error is 6-7%, with only 180 out >

Re: [PATCH] qapi: better docs for calc-dirty-rate and friends

2023-05-26 Thread gudkov . andrei--- via
On Thu, May 25, 2023 at 03:08:35PM +0200, Markus Armbruster wrote: > Andrei Gudkov writes: > > > Rewrote calc-dirty-rate documentation. Briefly described > > different modes of dirty page rate measurement. Added some > > examples. Fixed obvious grammar errors. > > > > Signed-off-by: Andrei Gudkov

Re: [PATCH v2 2/4] migration/calc-dirty-rate: detailed stats in sampling mode

2023-05-18 Thread gudkov . andrei--- via
On Mon, May 15, 2023 at 10:22:43AM +0200, Juan Quintela wrote: > wrote: > > On Wed, May 10, 2023 at 07:36:33PM +0200, Juan Quintela wrote: > >> Andrei Gudkov wrote: > >> > Collect number of dirty pages for progresseively increasing time > >> > periods starting with 125ms up to number of seconds s

Re: [PATCH v2 2/4] migration/calc-dirty-rate: detailed stats in sampling mode

2023-05-12 Thread gudkov . andrei--- via
On Thu, May 11, 2023 at 08:14:29AM +0200, Markus Armbruster wrote: > Andrei Gudkov via writes: > > > Collect number of dirty pages for progresseively increasing time > > periods starting with 125ms up to number of seconds specified with > > calc-dirty-rate. Report through qmp and hmp: 1) vector o

Re: [PATCH v2 2/4] migration/calc-dirty-rate: detailed stats in sampling mode

2023-05-12 Thread gudkov . andrei--- via
On Wed, May 10, 2023 at 07:36:33PM +0200, Juan Quintela wrote: > Andrei Gudkov wrote: > > Collect number of dirty pages for progresseively increasing time > > periods starting with 125ms up to number of seconds specified with > > calc-dirty-rate. Report through qmp and hmp: 1) vector of dirty page

Re: [PATCH 1/3] migration: Teach dirtyrate about qemu_target_page_size()

2023-05-11 Thread gudkov . andrei--- via
On Thu, May 11, 2023 at 03:12:24PM +0200, Juan Quintela wrote: > Richard Henderson wrote: > > On 5/11/23 10:22, Juan Quintela wrote: > >> Signed-off-by: Juan Quintela > >> --- > >> migration/dirtyrate.c | 11 ++- > >> 1 file changed, 6 insertions(+), 5 deletions(-) > >> diff --git a/mi

RE: [PATCH 0/2] Migration time prediction using calc-dirty-rate

2023-04-27 Thread Gudkov Andrei via
Thank you for the review. I submitted new version of the patch: https://patchew.org/QEMU/cover.1682598010.git.gudkov.and...@huawei.com/ > -Original Message- > From: Daniel P. Berrangé [mailto:berra...@redhat.com] > Sent: Tuesday, April 18, 2023 20:18 > To: Gudkov Andrei > Cc: qemu-devel@n

RE: [PATCH 0/2] Migration time prediction using calc-dirty-rate

2023-04-18 Thread Gudkov Andrei via
ping5 https://patchew.org/QEMU/cover.1677589218.git.gudkov.and...@huawei.com/ -Original Message- From: Gudkov Andrei Sent: Monday, April 10, 2023 18:19 To: 'qemu-devel@nongnu.org' Cc: 'quint...@redhat.com' ; 'dgilb...@redhat.com' ; 'js...@redhat.com' ; 'ebl...@redhat.com' Subject: RE

RE: [PATCH 0/2] Migration time prediction using calc-dirty-rate

2023-04-10 Thread Gudkov Andrei via
ping4 https://patchew.org/QEMU/cover.1677589218.git.gudkov.and...@huawei.com/ -Original Message- From: Gudkov Andrei Sent: Monday, April 3, 2023 17:42 To: 'qemu-devel@nongnu.org' Cc: 'quint...@redhat.com' ; 'dgilb...@redhat.com' Subject: RE: [PATCH 0/2] Migration time prediction using

RE: [PATCH 0/2] Migration time prediction using calc-dirty-rate

2023-04-03 Thread Gudkov Andrei via
ping3 https://patchew.org/QEMU/cover.1677589218.git.gudkov.and...@huawei.com/ -Original Message- From: Gudkov Andrei Sent: Monday, March 27, 2023 17:09 To: 'qemu-devel@nongnu.org' Cc: 'quint...@redhat.com' ; 'dgilb...@redhat.com' Subject: RE: [PATCH 0/2] Migration time prediction usin

RE: [PATCH 0/2] Migration time prediction using calc-dirty-rate

2023-03-27 Thread Gudkov Andrei via
ping2 https://patchew.org/QEMU/cover.1677589218.git.gudkov.and...@huawei.com/ -Original Message- From: Gudkov Andrei Sent: Friday, March 17, 2023 16:29 To: qemu-devel@nongnu.org Cc: quint...@redhat.com; dgilb...@redhat.com Subject: RE: [PATCH 0/2] Migration time prediction using calc-dir

RE: [PATCH 0/2] Migration time prediction using calc-dirty-rate

2023-03-17 Thread Gudkov Andrei via
ping https://patchew.org/QEMU/cover.1677589218.git.gudkov.and...@huawei.com/ -Original Message- From: Gudkov Andrei Sent: Tuesday, February 28, 2023 16:16 To: qemu-devel@nongnu.org Cc: quint...@redhat.com; dgilb...@redhat.com; Gudkov Andrei Subject: [PATCH 0/2] Migration time predictio