Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1383231 > unrolled thread

Re: [PATCH 0/5] userfaultfd: extension for non cooperative uffd usage

Started byPavel Emelyanov <xemul@virtuozzo.com>
First post2016-04-20 12:00 +0200
Last post2016-04-22 18:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 0/5] userfaultfd: extension for non cooperative uffd usage Pavel Emelyanov <xemul@virtuozzo.com> - 2016-04-20 12:00 +0200
    Re: [PATCH 0/5] userfaultfd: extension for non cooperative uffd usage Andrea Arcangeli <aarcange@redhat.com> - 2016-04-22 18:10 +0200

#1383231 — Re: [PATCH 0/5] userfaultfd: extension for non cooperative uffd usage

FromPavel Emelyanov <xemul@virtuozzo.com>
Date2016-04-20 12:00 +0200
SubjectRe: [PATCH 0/5] userfaultfd: extension for non cooperative uffd usage
Message-ID<rpX5p-5R6-23@gated-at.bofh.it>
On 03/20/2016 03:42 PM, Mike Rapoport wrote:
> Hi,
> 
> This set is to address the issues that appear in userfaultfd usage
> scenarios when the task monitoring the uffd and the mm-owner do not 
> cooperate to each other on VM changes such as remaps, madvises and 
> fork()-s.
> 
> The pacthes are essentially the same as in the prevoious respin (1),
> they've just been rebased on the current tree.

Hi, Andrea.

Hopefully one day after LSFMM is good time to try to get a bit of
your attention to this set :)

-- Pavel

[toc] | [next] | [standalone]


#1385327

FromAndrea Arcangeli <aarcange@redhat.com>
Date2016-04-22 18:10 +0200
Message-ID<rqLOx-4Dw-1@gated-at.bofh.it>
In reply to#1383231
Hello Pavel and Mike,

On Wed, Apr 20, 2016 at 12:44:48PM +0300, Pavel Emelyanov wrote:
> On 03/20/2016 03:42 PM, Mike Rapoport wrote:
> > Hi,
> > 
> > This set is to address the issues that appear in userfaultfd usage
> > scenarios when the task monitoring the uffd and the mm-owner do not 
> > cooperate to each other on VM changes such as remaps, madvises and 
> > fork()-s.
> > 
> > The pacthes are essentially the same as in the prevoious respin (1),
> > they've just been rebased on the current tree.

Thanks for the rebasing and the submit of these new features!

> 
> Hi, Andrea.
> 
> Hopefully one day after LSFMM is good time to try to get a bit of
> your attention to this set :)

Yes, at first glance this patchset looks fine. In fact I already
merged it in my tree at the time of last post. Just I didn't have much
time to review it in detail yet as I did with the wrprotect tracking
one, this is why I didn't answer yet, sorry.

As said I already reviewed the wrprotect tracking feature in detail
and it requires a few (but non trivial) fixes and I was planning to
fix that part first as the developer who sent the first implementation
a few months ago got busy with something else. But until those bugs
gets fixed I cannot ship it in my tree, nor in the way to -mm.

The other main reason of the delay is that I got sidetracked by other
issues (one internal) and the other notable one is the failure in
postcopy caused by the new THP refcounting introduced in 4.5 with THP
enabled, which apparently isn't the huge zeropage (tested with
use_zero_page = 0) nor the MADV_DONTNEED. I'm also unconvinced it's a
bug only in the userfaultfd interaction with the new THP refcounting,
perhaps it's something more generic that just happen to be reproduced
more easily by the heavy postcopy load, which makes it even more high
priority to track that down.

I'm afraid until that regression is fixed, I'll have to concentrate on
fixing that. At least I found a way to reproduce faster so I'm
optimistic it won't take long ;).

Andrea

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web