From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hubbard Subject: Re: [PATCH v4 01/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks Date: Sun, 29 Sep 2019 16:17:20 -0700 Message-ID: References: <20190927234008.11513-1-leonardo@linux.ibm.com> <20190927234008.11513-2-leonardo@linux.ibm.com> <4ff1e8e8-929b-9cfc-9bf8-ee88e34de888@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4ff1e8e8-929b-9cfc-9bf8-ee88e34de888@nvidia.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: Leonardo Bras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Cc: Keith Busch , Thomas Gleixner , Arnd Bergmann , Greg Kroah-Hartman , YueHaibing , Nicholas Piggin , Mike Rapoport , Mahesh Salgaonkar , Jason Gunthorpe , Paul Mackerras , "Aneesh Kumar K.V" , Ganesh Goudar , Andrew Morton , Ira Weiny , Dan Williams , Allison Randal List-Id: linux-arch.vger.kernel.org On 9/29/19 3:40 PM, John Hubbard wrote: > On 9/27/19 4:39 PM, Leonardo Bras wrote: ... > +config LOCKLESS_PAGE_TABLE_WALK_TRACKING > +=C2=A0=C2=A0=C2=A0 bool "Tracking (and optimization) of lockless page ta= ble walkers" > +=C2=A0=C2=A0=C2=A0 default n > + > +=C2=A0=C2=A0=C2=A0 help > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Maintain a reference count of active lock= less page table > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 walkers. This adds 4 bytes to struct mm s= ize, and two atomic > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 operations to calls such as get_user_page= s_fast(). Some > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 architectures can optimize page table ope= rations if this > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 is enabled. > + > =C2=A0endmenu Actually, the above should be an internal-only config option (PPC arch can auto-select it), so just: +config LOCKLESS_PAGE_TABLE_WALK_TRACKING + bool ...because it's entirely up to other code (as opposed to other people) as to whether this should be selected. I got carried away. :) thanks, --=20 John Hubbard NVIDIA