Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp54937ybp; Thu, 3 Oct 2019 14:43:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBr0yEEunPk0ehgcMGHWA17fOfEtcCVs10oE0fFihAumM86K2YKtgxmweZRmBpdzmBoIcy X-Received: by 2002:a05:6402:35b:: with SMTP id r27mr11835026edw.140.1570139038183; Thu, 03 Oct 2019 14:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570139038; cv=none; d=google.com; s=arc-20160816; b=JxStEZxawf7MKFtxJC6/eu0TPjnq2FVL8wZ/CDVq1WZgSt/7hv/GHzMwXhFqDKgu60 ioj9NL2cCgvUwK3Xb/QwdfAF/uUgxM7YXbvAz2vbX7mAXLimEjOFT/+e2dNWxkZnY2hw 0ztz0fKEHOB56Aj7kZdZeelCkAagM4yJJfAZXJd5QRRZYJceOX0FVyDVxoC2Rs2VDZii XwkW3TGnOrhVFdW6UBupGmpsDKa+mPU7kEfd4Hfzl01VIQJmiX4Q6VFqvobF2fpOhEub Ff4H2VmIrESbn4K5Rgmi4sDZJwy3/H5SPiyP/+1rxLGWoZ3KTRsaty4X9TD467QTnmiw 7A5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=RgkHyOQAqdTP32OLeZHwwvZ3HJDdNAUcBuqGFkhBMe8=; b=hYT/9oNuLFWs04K+9ukNq3IWEsDN8Gezc+ulUIHSxZGgjPEi4bxslaiXFH1zzB6aYx K9C+nVyIYPNqL5mnC7AxLoMJdttD4rO2d6HcPukXc2PN9SBE6PCG8v814liwPYCPRacQ d0f59R0ZPACEUR3TKJviQ7/poywlx/s8DkVX739KPH83IwPS5KHgD7cbGH+cH+4UmiJJ Vq9w/vOailuYdetTr9exNWSKSrOminGFleWMtU1wUGbp/NMFajLpje2y6uOajLOZeUV5 sU6M8v2qzcw05ZTP57x25VCkTJnshPh30pKRCR1oSO+r8VqmP+j5UN4C+ewICGOtGnjR mhXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ot41si1850619ejb.215.2019.10.03.14.43.28; Thu, 03 Oct 2019 14:43:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389262AbfJCVkG (ORCPT + 99 others); Thu, 3 Oct 2019 17:40:06 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48228 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389234AbfJCVkF (ORCPT ); Thu, 3 Oct 2019 17:40:05 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x93LY6QW095049; Thu, 3 Oct 2019 17:38:54 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vdr8yhka7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Oct 2019 17:38:54 -0400 Received: from m0098396.ppops.net (m0098396.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x93LYAsl095218; Thu, 3 Oct 2019 17:38:52 -0400 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vdr8yhk9n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Oct 2019 17:38:52 -0400 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x93LaZRU030836; Thu, 3 Oct 2019 21:38:51 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma04dal.us.ibm.com with ESMTP id 2v9y58kdsw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Oct 2019 21:38:51 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x93Lcorl50135478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 Oct 2019 21:38:50 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8AFACAC059; Thu, 3 Oct 2019 21:38:50 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 37268AC05F; Thu, 3 Oct 2019 21:38:44 +0000 (GMT) Received: from leobras.br.ibm.com (unknown [9.18.235.190]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 3 Oct 2019 21:38:44 +0000 (GMT) Message-ID: <4e9e864856fc165b5dea8119eade871bc0e6f019.camel@linux.ibm.com> Subject: Re: [PATCH v5 00/11] Introduces new count-based method for tracking lockless pagetable walks From: Leonardo Bras To: John Hubbard , Peter Zijlstra Cc: Song Liu , Michal Hocko , "Dmitry V. Levin" , Keith Busch , linux-mm@kvack.org, Paul Mackerras , Christoph Lameter , Ira Weiny , Dan Williams , Elena Reshetova , linux-arch@vger.kernel.org, Santosh Sivaraj , Davidlohr Bueso , "Aneesh Kumar K.V" , Bartlomiej Zolnierkiewicz , Mike Rapoport , Jason Gunthorpe , Vlastimil Babka , Mahesh Salgaonkar , Andrey Ryabinin , Alexey Dobriyan , Ingo Molnar , Andrea Arcangeli , Ralph Campbell , Arnd Bergmann , Jann Horn , Jesper Dangaard Brouer , Nicholas Piggin , =?ISO-8859-1?Q?J=E9r=F4me?= Glisse , Mathieu Desnoyers , kvm-ppc@vger.kernel.org, Thomas Gleixner , Reza Arbab , Allison Randal , Christian Brauner , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Logan Gunthorpe , Souptick Joarder , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Roman Gushchin , "Kirill A. Shutemov" , Al Viro Date: Thu, 03 Oct 2019 18:38:40 -0300 In-Reply-To: <99754d82-33c5-a54f-8607-b6bf151069d4@nvidia.com> References: <20191003013325.2614-1-leonardo@linux.ibm.com> <20191003072952.GN4536@hirez.programming.kicks-ass.net> <99754d82-33c5-a54f-8607-b6bf151069d4@nvidia.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-+T6TWqK4ZitmnubF89r5" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-03_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910030173 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-+T6TWqK4ZitmnubF89r5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2019-10-03 at 13:49 -0700, John Hubbard wrote: > Yes. And to clarify, I was assuming that the changes to mm/gup.c were=20 > required in order to accomplish your goals. Given that assumption, I=20 > wanted the generic code to be "proper", and that's what that feedback > is about. You assumed right. On my counting approach it's necessary count all 'lockless pagetable walks', including the ones in generic code. And, I think even without the counting approach, it was a good way focus this 'lockless pagetable walk' routine in a single place. >=20 > Although the other questions about file-backed THP > make it sound like some rethinking across the board is required now. Yeap, I need to better understand how the file-backed THP problem works. Thanks, Leonardo Br=C3=A1s --=-+T6TWqK4ZitmnubF89r5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl2WamAACgkQlQYWtz9S ttT+5A//d6Der3cfKkY0anP/E6uyI6e77Kt+RWmN9+RuhxKKyMvN3vR0lOiAxvuE mr0LmRnING4Jsvhz54FB9xPIJzEH+5tPXrX9TkHYOFqQfkyvDtx8LaCHf+gN+xQx l2ukNHr6gqjA6Sb8eQEm0RKeiidLX6NPo03/OwiAWs44z+XofzyFuUa13VmE2+YE oe27ZXb/UsLlrO8rB7cG+DyGuRBTlivjCpDp+JEDkdRH8tePICRaAtV0nR+YxeA7 4NiBcgM9ONQeJOKViKmWdqhC/2K2gVeSFE7WpidAUOrRUJR9FyFisZ7x8MKrW06f GRSRrSisMdvHlgbZHcT+n0tqNPcRzmGmTnkZ/nlnoM7w5qKgsMGIBOBYH5CW2FPg 19xIRhUMX+ShhSPc8H8TIeaHxRmJrJYmnfib+MY4IZhrZmAUEqYDSnjzvypUSvFF HUly+f6MpQlOv+RHgi4BV/zdyO8ucaaSCMh2yGREJ5FEuDAEKm5AHz6RwtRMtoY0 v8Y+7IEPVKPdV4sL8z5vfInKDeRU3FP0CPlKCKg6FcRvGNMGCEkP9ZtuzHxVb/Xs JNa3VDiiijvnu/tDsdNS/6aHLtANNlLvaNGAuESrxAJRFzziLN92i+RXMLBaQCZo /pZH9phCxN/HZly4uA7Ek1TbRKsNstB/CvsXTJBF91f6L7m0Awc= =4hRX -----END PGP SIGNATURE----- --=-+T6TWqK4ZitmnubF89r5--