Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp140333imm; Thu, 30 Aug 2018 18:29:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdblY2xPLEugvRzwiNdIkwALsEszV/rCmm67y7eGqVVVubTQIU82v2lP4YbWCxF1s59O+An5 X-Received: by 2002:a63:4f14:: with SMTP id d20-v6mr12152995pgb.121.1535678966771; Thu, 30 Aug 2018 18:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535678966; cv=none; d=google.com; s=arc-20160816; b=hXf+fD6DwYdRsB01iLVUvvCX2EjhITyU1BMGpZnvDenGFRK9GovgEaNgNsWj0VTPJN ME+qg4LBFvCZiZaFO19NYfBddmbvea5Vgg3Mf9XPgy9pkTuZeOzg5v8X4GZWdBFYAk7M K54T5Os3TgYHc3481ExO5h7pzJRtQ3zapMWVVJS+rO0CevhoXPUwhqC2ViLl142pRw7m PWDlmAmb8HJ/WmYC/lIjN+4rDR6IgYsK3iWGWIY+gR7XH460naHAbhpDrzhzOJhtnrNt 3myRkIpuwm9wuAG+9rXoda534GoWYSVhuJQfA/r+x8NtdXe+MQOjvZ+YKY1ewtnuUGGp cmfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=M2ZjtYtaV8SSqiDZxll0NkJ4carU4lsQItq1PJs2yhc=; b=rJ+2OiG/BH25a5xJhWs4oaV/SAvdkxgFvqwHZwuTDTfrP37VvR1rR70TK1aX+W2CxD MfZ718KPeYv/qt2vyvnmhFRp/qDbtVDPeAcQ6MnHvex5RcZ83rm/hzyBvPhwrfSjLXbY yilZUC2hfUANHJ8jcnUTkKChnSyudJ3qWHN8JaL+2+dxrSOk8wzqNWupcTuiAZljCfi0 yClYK12VNoQ/QTPA4hupylumkYLVv6A6i9TBU1cLd7v+UHgROCMd9E91iZBLS1cl4PK4 tgn4xfhBW+ntjhWEtAHIyB5QIXFne/HLMRA8b4HYJeOneVBDvKMb03F5s4+kswhmq0vS enLw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1-v6si8538593plb.387.2018.08.30.18.29.12; Thu, 30 Aug 2018 18:29:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbeHaFb5 (ORCPT + 99 others); Fri, 31 Aug 2018 01:31:57 -0400 Received: from gate.crashing.org ([63.228.1.57]:52115 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbeHaFb5 (ORCPT ); Fri, 31 Aug 2018 01:31:57 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id w7RMDkGx019084; Mon, 27 Aug 2018 17:13:47 -0500 Message-ID: <30def1abb307dc4a2d232e69717d6755a1369492.camel@kernel.crashing.org> Subject: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE From: Benjamin Herrenschmidt To: Nicholas Piggin Cc: Peter Zijlstra , Will Deacon , Linus Torvalds , Andrew Lutomirski , the arch/x86 maintainers , Borislav Petkov , Rik van Riel , Jann Horn , Adin Scannell , Dave Hansen , Linux Kernel Mailing List , linux-mm , David Miller , Martin Schwidefsky , Michael Ellerman Date: Tue, 28 Aug 2018 08:13:45 +1000 In-Reply-To: <20180827190213.6c7d85ca@roar.ozlabs.ibm.com> References: <20180822155527.GF24124@hirez.programming.kicks-ass.net> <20180823134525.5f12b0d3@roar.ozlabs.ibm.com> <776104d4c8e4fc680004d69e3a4c2594b638b6d1.camel@au1.ibm.com> <20180823133958.GA1496@brain-police> <20180824084717.GK24124@hirez.programming.kicks-ass.net> <20180824113214.GK24142@hirez.programming.kicks-ass.net> <20180824113953.GL24142@hirez.programming.kicks-ass.net> <20180827150008.13bce08f@roar.ozlabs.ibm.com> <20180827074701.GW24124@hirez.programming.kicks-ass.net> <20180827180458.4af9b2ac@roar.ozlabs.ibm.com> <4ef8a2aa44db971340b0bcc4f73d639455dd4282.camel@kernel.crashing.org> <20180827190213.6c7d85ca@roar.ozlabs.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-08-27 at 19:02 +1000, Nicholas Piggin wrote: > > More tlbies ? With the cost of the broadasts on the fabric ? I don't > > think so.. or I'm not understanding your point... > > More tlbies are no good, but there will be some places where it works > out much better (and fewer tlbies). Worst possible case for current code > is a big unmap with lots of scattered page sizes. We _should_ get that > with just a single PID flush at the end, but what we will get today is > a bunch of PID and VA flushes. > > I don't propose doing that though, I'd rather be explicit about > tracking start and end range of each page size. Still not "optimal" > but neither is existing single range for sparse mappings... anyway it > will need to be profiled, but my point is we don't really fit exactly > what x86/arm want. If we have an arch specific part, we could just remember up to N "large" pages there without actually flushing, and if that overflows, upgrade to a full flush. Cheers, Ben.