Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1259718ybp; Wed, 9 Oct 2019 11:12:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyif5wkZgj1zzJvYNIaDsan2mcdXXujCllgkP4oyzxuks1dKIW2aUyDCOhvZt2n7KPbTj54 X-Received: by 2002:aa7:ce08:: with SMTP id d8mr4351979edv.260.1570644736298; Wed, 09 Oct 2019 11:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570644736; cv=none; d=google.com; s=arc-20160816; b=bbkAHH7C8CJbBWbKrYqJCTYYc1dTPz8GZr5TWdqx/047p2typAMFSNElT0oI2+Vu0B gW7SVg84PXqgqjFAGcuTjhKkKvcJpSj4C4W6A4fN/u1yqcy7a+tNq23J1aSMkiU9XRh0 mwh+HYpFwwsZ+VaU10iqSc/ybmQzWqWpfLCDmcOwni692OJ5f0xRjPScEqGtJYTtPYPk UGO/bWvkC2gRjGmxEk5ZZK1LgSJTwpcc7Cnrf5NorDLvC4layv+I6H6/AvsLv0rykMIj 1+/PUI+WDHNUYuyyeTJ7htBTy0S+B3W3/1qDPEdq+vidN+8OxVA7IyUG0naOJl8Qc2Q1 7JZQ== 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=JC6JdBBJ312g2opTCD0DaL216XVFYsEr2ks+mL4Mdy0=; b=XkJ+dxhf7oQQOqR8D3cBURXLPn3FzyHtrIUj7EYSpPfWyxYiQkskNNViuZpyV2J5SZ 35GV5bCMNcv7C55bFvHPwEueDE9WHamQJkeSiUfP9rSHhJNEY/NPNjYxVOJk66GWNiSz zYILtg/p4QVGGXDy7CcbVM+bVyReha+lVlSfR5aQSdH/vza3Upy93DHCUCRkYMUHysiu wCaLddZeP4vwfj3atCBlSuLGTqs/NTrQvElTecM5J/Dv9xZu2eAa8pazq3Je2bwJqAUQ rTcqYgD22ZZmB2B3P8YagffXyFgpvm4dXzrSHzciaeqnID2k0Cw29JvB36iaWzUV+6jP v7Vw== 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 r24si1633281edy.417.2019.10.09.11.11.39; Wed, 09 Oct 2019 11:12:16 -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 S1731173AbfJISLX (ORCPT + 99 others); Wed, 9 Oct 2019 14:11:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50836 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbfJISLW (ORCPT ); Wed, 9 Oct 2019 14:11:22 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x99I9owp129875; Wed, 9 Oct 2019 14:10:14 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vhjs9m70u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2019 14:10:13 -0400 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.27/8.16.0.27) with SMTP id x99IA150131746; Wed, 9 Oct 2019 14:10:12 -0400 Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vhjs9m6mn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2019 14:10:12 -0400 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id x99I5Y9f024475; Wed, 9 Oct 2019 18:09:57 GMT Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by ppma03dal.us.ibm.com with ESMTP id 2vejt7mrc4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2019 18:09:57 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x99I9ueU31654326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 9 Oct 2019 18:09:56 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 35CA0AC05B; Wed, 9 Oct 2019 18:09:56 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 95788AC059; Wed, 9 Oct 2019 18:09:46 +0000 (GMT) Received: from LeoBras (unknown [9.80.237.3]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 9 Oct 2019 18:09:46 +0000 (GMT) Message-ID: Subject: Re: [PATCH v5 01/11] asm-generic/pgtable: Adds generic functions to monitor lockless pgtable walks From: Leonardo Bras To: 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 , John Hubbard , 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: Wed, 09 Oct 2019 15:09:41 -0300 In-Reply-To: <20191004112844.GC19463@hirez.programming.kicks-ass.net> References: <20191003013325.2614-1-leonardo@linux.ibm.com> <20191003013325.2614-2-leonardo@linux.ibm.com> <20191003071145.GM4536@hirez.programming.kicks-ass.net> <20191003115141.GJ4581@hirez.programming.kicks-ass.net> <20191004112844.GC19463@hirez.programming.kicks-ass.net> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-lwxk+g4NX3v4aiRY1x8z" 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-09_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=830 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910090151 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-lwxk+g4NX3v4aiRY1x8z Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2019-10-04 at 13:28 +0200, Peter Zijlstra wrote: > > Could you please explain it? > > I mean, why this breaks tmpfs-thp? > > Also, why mm_cpumask() is also broken? >=20 > Because shared pages are not bound by a mm; or does it not share the thp > state between mappings? By what I could understand, even though the memory is shared, the mapping may differ for different processes (i.e. the same physical memory that is mapped as a hugepage in process A can be mapped as a lot of smallpages in process B). Did I miss something here? =20 > And once you (re)figure it out, please write it down. It is a crucial > bit of the puzzle and needs to be part of the Changelogs. I am still investing time studying this. More on this later :) Thanks! --=-lwxk+g4NX3v4aiRY1x8z Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl2eImUACgkQlQYWtz9S ttRfWhAA4tFyyNfL3tzIUMnu8uw6K7QisutRwYllutuFzPwBZqnh8+20uDzo8fp0 eA/nbsP+kFkkBEjmx/jugDsXJnT3dpXW+E48iqr0HJpRBDbARAY6WA1qx26ETJHz c+MiB+agAJ2rfYAkE3FUEKVNZgyybhBhIlTuYhLvi1UWtqFIqncT5CA5OsgXFIU5 vpJWMCFzDr/ZMWivf2bH06LlCTOIq85q+MzrPEKdxknUiG3U8nXKWgmbLeiqK/zt 9soJaF83cDkrYCkko8vTAadVOS7KDgn+iwucU0DTsvB7NoJbrIJsSRl2+33DWoz1 bD1cyw6yks+h+qFUjlq19Q6n6aVBy0em2uiIr7HNoYff5YIulrfsdcneNcwnp0Jv tzKOaCvajRE9PfH0bNyoWI9BSXNbY4RqcWnnwOWM2uPRNGUIUpoIJbWKl7VRKRuC t3ojliLkUWGvNkTMdFzg3XJl2+ZU05/o8UdXJ21pwhArJDkb6DmKZU4dMz9YQ9fc B38gZY1N8rthws2UgK1frOgHjUtzHuAkoo89aAnkQwVyQ6e61JfKTgxkb/0dabDs Gsn+Yd/b36oQK6jOxhsef+zTzawX0pWrq49dJzmB2wD4oyQl10I5JWFiSdboGGJs uItrX4TN3i1fvlsyVE0b4ZwM5Nwzzd8yC+cTXHTQJOAm8PWh5Vk= =xgUX -----END PGP SIGNATURE----- --=-lwxk+g4NX3v4aiRY1x8z--