From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Lameter Subject: Re: [PATCH v5 02/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks Date: Tue, 8 Oct 2019 18:27:29 +0000 (UTC) Message-ID: References: <20191003013325.2614-1-leonardo@linux.ibm.com> <20191003013325.2614-3-leonardo@linux.ibm.com> <6e8877bff034603e75b35599797a39d9bc4840f1.camel@linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: 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 Cc: Song Liu , Michal Hocko , "Peter Zijlstra (Intel)" , Mahesh Salgaonkar , "Dmitry V. Levin" , Keith Busch , linux-mm@kvack.org, Paul Mackerras , Christian Brauner , Ira Weiny , Ingo Molnar , Elena Reshetova , linux-arch@vger.kernel.org, Santosh Sivaraj , Davidlohr Bueso , "Aneesh Kumar K.V" , Jann Horn , Mike Rapoport , Jason Gunthorpe , Allison Randal , Jesper Dangaard Brouer , Andrey Ryabinin , Alexey Dobriyan , Andrea List-Id: linux-arch.vger.kernel.org On Tue, 8 Oct 2019, Leonardo Bras wrote: > So you say that the performance impact of using my approach is the same > as using locks? (supposing that lock never waits) > > So, there are 'lockless pagetable walks' only for the sake of better > performance? I thought that was the major motivation here. > I thought they existed to enable doing pagetable walks in states where > locking was not safe. That sounds profoundly dangerous. Usually locking makes things safe to access. Accesses without locking require a lot of care.