Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5916283imm; Mon, 27 Aug 2018 06:38:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBgzrNk2qDtg5rdYTjdfYGX/W0Lg4QfjdEfEk41+0TQHHASIEJA/wJh1iXwP7gZSrnmbsk X-Received: by 2002:a63:5a13:: with SMTP id o19-v6mr2568491pgb.75.1535377107434; Mon, 27 Aug 2018 06:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535377107; cv=none; d=google.com; s=arc-20160816; b=dCDimWj+VWVki3OexbF7/w+a3bXvhi3OJxTf+in5L2qxYoKuXbQEdN81323VKjSkAe 7ecazdUOxKKR45rfusAX+ehp06Kl8HjS49Cd9DMTA7F6vozBiF6Zfi6DbxxSVWondq1s ZUh7rBGUFBC9mPq2Or45pZAMJnQInGUX66d4WCXFHRFzmURG2oTtbLzojbvr3Hcy+cJM lZM17jJIii+Rdp3Xi/+x7ATVK0krpCN5NDtW5i0U6N6jjEyho5+KLckkQoJYlr7rH7Vd fRomBn9h4mx6ZMmFrY0NvQsb8QYVbSlDlMTs/9zbzyuR2tjze4CjE3rfb/0toaE7rByQ /+Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:date :cc:to:from:subject:message-id:arc-authentication-results; bh=UttNMp7pC7oK3JG9HYozsGTiXXa0x3Qoe1F3+U0dQ0A=; b=zMU+WFFF2npd2N8ElLi8i3COBO6GrfxLFKuamY8lNio6L48SZdsEIE9iFKNxW/rKEZ zkZiL84H2vAdTpBYdx5VQHulhqHNCckp3jngA6J98maHJBU7gGgYfnuQHtbX7alITisY gLwORuk1mbaOR900sFzQNf3+6s2yiCs+jOg/uzfcQbXP0pivX8dw4uUENKlRgnvp3pzg RTnZuzGozulYzLU/uMMTP8/PbcAY1EQaIRvPIkhDmLgYZ5KaWMAXf30v81IWLFd8wVQt Dt/fG05KAOkRNfbCLS/01AQjBoY3UAvbN2bbNooiTGb0Deavk8ntgAO5xUv1qTktbHTv vu5w== 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 i7-v6si13640851plt.433.2018.08.27.06.38.11; Mon, 27 Aug 2018 06:38:27 -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 S1727379AbeH0RXq (ORCPT + 99 others); Mon, 27 Aug 2018 13:23:46 -0400 Received: from shelob.surriel.com ([96.67.55.147]:50090 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbeH0RXq (ORCPT ); Mon, 27 Aug 2018 13:23:46 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fuHhK-0007z0-MT; Mon, 27 Aug 2018 09:36:50 -0400 Message-ID: <405ba257e730d4f0ad9007490e7ac47cc343c720.camel@surriel.com> Subject: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE From: Rik van Riel To: Nicholas Piggin , Peter Zijlstra Cc: Will Deacon , Linus Torvalds , Benjamin Herrenschmidt , Andrew Lutomirski , the arch/x86 maintainers , Borislav Petkov , Jann Horn , Adin Scannell , Dave Hansen , Linux Kernel Mailing List , linux-mm , David Miller , Martin Schwidefsky , Michael Ellerman Date: Mon, 27 Aug 2018 09:36:50 -0400 In-Reply-To: <20180827180458.4af9b2ac@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> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-CjA5zgmeZESrmuJDh+sg" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-CjA5zgmeZESrmuJDh+sg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > It could do that. It requires a tlbie that matches the page size, > so it means 3 sizes. I think possibly even that would be better > than current code, but we could do better if we had a few specific > fields in there. Would it cause a noticeable overhead to keep track of which page sizes were removed, and to simply flush the whole TLB in the (unlikely?) event that multiple page sizes were removed in the same munmap? Once the unmap is so large that multiple page sizes were covered, you may already be looking at so many individual flush operations that a full flush might be faster. Is there a point on PPC where simply flushing the whole TLB, and having other things be reloaded later, is faster than flushing every individual page mapping that got unmapped? --=20 All Rights Reversed. --=-CjA5zgmeZESrmuJDh+sg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAluD/nIACgkQznnekoTE 3oPuoAgAgYYUxuaSllsIwNGF9TwctKvO64J9eWJukeqnJu357LE/C4ku0xwCXmhV 51RiEMNOpnTEQ/DWfPXjnCzY/Uah4nBXPTIwBjHCKC57tJGcIt1V9PsvnyRgtBDR hf05gT/oO+Cuj4KAATK5gjfUpuNt3w/xg3Gsoxqv7fRcDH5czAu74JpSY1U1IrGP Ck2UVC9AARlmeAhnonEnBw+dFkZsMgIvIZyvVSY9ZL01r3zdXuieEzeeDRV8t4IG w0ccBoWSO07Si+zZNrvk7Bo3SpHolzZbov8SLGqi1jnNplO25xw/Fkx2kVgMMXmB aTdmEoWMISm8Gr7LshmkZ1RhAVQWrA== =vAtB -----END PGP SIGNATURE----- --=-CjA5zgmeZESrmuJDh+sg--