Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Andrey Gruzdev
On 01.12.2020 21:54, Peter Xu wrote: On Tue, Dec 01, 2020 at 02:24:12PM +0300, Andrey Gruzdev wrote: On 01.12.2020 13:53, Peter Krempa wrote: On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: On 01.12.2020 10:08, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Andrey Gruzdev
On 01.12.2020 23:01, Dr. David Alan Gilbert wrote: * Peter Xu (pet...@redhat.com) wrote: On Tue, Dec 01, 2020 at 06:40:55PM +, Dr. David Alan Gilbert wrote: Yep, seems that current userfaultfd supports hugetlbfs and shared memory for missing pages but not for wr-protected.. For

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Andrey Gruzdev
On 01.12.2020 21:40, Dr. David Alan Gilbert wrote: * Andrey Gruzdev (andrey.gruz...@virtuozzo.com) wrote: On 01.12.2020 13:53, Peter Krempa wrote: On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: On 01.12.2020 10:08, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300,

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Tue, Dec 01, 2020 at 06:40:55PM +, Dr. David Alan Gilbert wrote: > > > Yep, seems that current userfaultfd supports hugetlbfs and shared memory > > > for > > > missing pages but not for wr-protected.. > > > > For hugepages, you'd need kernel support

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Tue, Dec 01, 2020 at 02:24:12PM +0300, Andrey Gruzdev wrote: > > On 01.12.2020 13:53, Peter Krempa wrote: > > > On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: > > > > On 01.12.2020 10:08, Peter Krempa wrote: > > > > > On Thu, Nov 26, 2020

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Peter Xu
On Tue, Dec 01, 2020 at 06:40:55PM +, Dr. David Alan Gilbert wrote: > > Yep, seems that current userfaultfd supports hugetlbfs and shared memory for > > missing pages but not for wr-protected.. > > For hugepages, you'd need kernel support - but also you'd want to make > sure you write the

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Peter Xu
On Tue, Dec 01, 2020 at 02:24:12PM +0300, Andrey Gruzdev wrote: > On 01.12.2020 13:53, Peter Krempa wrote: > > On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: > > > On 01.12.2020 10:08, Peter Krempa wrote: > > > > On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > >

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Dr. David Alan Gilbert
* Andrey Gruzdev (andrey.gruz...@virtuozzo.com) wrote: > On 01.12.2020 13:53, Peter Krempa wrote: > > On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: > > > On 01.12.2020 10:08, Peter Krempa wrote: > > > > On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > > > > >

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Andrey Gruzdev
On 01.12.2020 13:53, Peter Krempa wrote: On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: On 01.12.2020 10:08, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's [...]

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Peter Krempa
On Tue, Dec 01, 2020 at 11:42:18 +0300, Andrey Gruzdev wrote: > On 01.12.2020 10:08, Peter Krempa wrote: > > On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > > > This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas > > > he's [...] > > Note that in cases

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-12-01 Thread Andrey Gruzdev
On 01.12.2020 10:08, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's implemented in his series '[PATCH v0 0/4] migration: add background snapshot'. Hi, I gave this a try when

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-30 Thread Peter Krempa
On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's > implemented in his series '[PATCH v0 0/4] migration: add background snapshot'. Hi, I gave this a try when attempting to implement the libvirt code for

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-30 Thread Andrey Gruzdev
On 28.11.2020 01:04, Peter Xu wrote: On Thu, Nov 26, 2020 at 06:17:28PM +0300, Andrey Gruzdev wrote: Changes v3->v4: * 1. Renamed migrate capability 'track-writes-ram'->'background-snapshot'. * 2. Use array of incompatible caps to replace bulky 'if' constructs. * 3. Moved UFFD low-level code

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-27 Thread Peter Xu
On Thu, Nov 26, 2020 at 06:17:28PM +0300, Andrey Gruzdev wrote: > Changes v3->v4: > > * 1. Renamed migrate capability 'track-writes-ram'->'background-snapshot'. > * 2. Use array of incompatible caps to replace bulky 'if' constructs. > * 3. Moved UFFD low-level code to the separate module

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-27 Thread Andrey Gruzdev
On 27.11.2020 18:45, Peter Xu wrote: On Fri, Nov 27, 2020 at 01:00:48PM +0300, Andrey Gruzdev wrote: On 27.11.2020 12:49, Peter Krempa wrote: On Fri, Nov 27, 2020 at 11:21:39 +0300, Andrey Gruzdev wrote: On 26.11.2020 18:47, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-27 Thread Peter Xu
On Fri, Nov 27, 2020 at 01:00:48PM +0300, Andrey Gruzdev wrote: > On 27.11.2020 12:49, Peter Krempa wrote: > > On Fri, Nov 27, 2020 at 11:21:39 +0300, Andrey Gruzdev wrote: > > > On 26.11.2020 18:47, Peter Krempa wrote: > > > > On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > >

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-27 Thread Andrey Gruzdev
On 27.11.2020 12:49, Peter Krempa wrote: On Fri, Nov 27, 2020 at 11:21:39 +0300, Andrey Gruzdev wrote: On 26.11.2020 18:47, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-27 Thread Peter Krempa
On Fri, Nov 27, 2020 at 11:21:39 +0300, Andrey Gruzdev wrote: > On 26.11.2020 18:47, Peter Krempa wrote: > > On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > > > This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas > > > he's > > > implemented in his series

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-27 Thread Andrey Gruzdev
On 26.11.2020 18:47, Peter Krempa wrote: On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's implemented in his series '[PATCH v0 0/4] migration: add background snapshot'. Currently the only way to make

Re: [PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-26 Thread Peter Krempa
On Thu, Nov 26, 2020 at 18:17:28 +0300, Andrey Gruzdev via wrote: > This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's > implemented in his series '[PATCH v0 0/4] migration: add background snapshot'. > > Currently the only way to make (external) live VM snapshot is using

[PATCH v4 0/6] UFFD write-tracking migration/snapshots

2020-11-26 Thread Andrey Gruzdev via
This patch series is a kind of 'rethinking' of Denis Plotnikov's ideas he's implemented in his series '[PATCH v0 0/4] migration: add background snapshot'. Currently the only way to make (external) live VM snapshot is using existing dirty page logging migration mechanism. The main problem is that