Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754383AbcDVQGI (ORCPT ); Fri, 22 Apr 2016 12:06:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44819 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754257AbcDVQGF (ORCPT ); Fri, 22 Apr 2016 12:06:05 -0400 Date: Fri, 22 Apr 2016 12:05:57 -0400 From: Andrea Arcangeli To: Pavel Emelyanov Cc: Mike Rapoport , LKML , linux-mm@kvack.org, Mike Rapoport Subject: Re: [PATCH 0/5] userfaultfd: extension for non cooperative uffd usage Message-ID: <20160422160557.GB4282@redhat.com> References: <1458477741-6942-1-git-send-email-rapoport@il.ibm.com> <57174F90.7080109@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57174F90.7080109@virtuozzo.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2037 Lines: 48 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