Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4407396ybb; Tue, 14 Apr 2020 06:45:35 -0700 (PDT) X-Google-Smtp-Source: APiQypIIpcB7hk5ux1MygZ9RJUYTEVr7kZASDXsMjt2RAauI3bdWwlRol4wMfg/vleS4Hfp6Zs1l X-Received: by 2002:a17:906:6050:: with SMTP id p16mr140957ejj.179.1586871935480; Tue, 14 Apr 2020 06:45:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586871935; cv=none; d=google.com; s=arc-20160816; b=f+PprfKm/tGpzOjsE8Cxkn1NYCRVCaQlBctqOfw0AtP1zE+G4C3rrNnUsIYfJu6KM3 khbo22cHkgg4JOM+FionWCigV5BqUK+j7PE0mIm+5GsUYVqJwTXiZQGOwQQaG0269G+w ZroagSBzhJtvNDU/W4GuDTGj+K9Kstmq5xqxFAlOSqfe1ikND0tMNGHZVyEzWzawxeR9 JGKTpplykSP94cyxD/gvvth5mxeZGgR6DNEp2eEp6hb0Mjpg7iYoDRDXbqgtAKXhqNch bfWK+oNfOK1b3H0xj6HYe1JWtgPwZ1lr4tyPOI8CWxaWACUZoG70RFJBO2Jo4sBfHQmK UKHA== 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 :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=Iab8a1FKfuOAzK+EtN5ksWX3Ch8SBZHLkolYH18vMow=; b=ZxX3vZSYJX/zSj7Hgb8nc6eIrUIvMyt/pZOvQoslMY9M8VEe3H/VKxvdOo4C1De/Ql pn99zZMxgoIPtOPYgjeYCEuof2i+jIgSYE2WihpQkgbBp5Inas4Rglrs5txbMvAJniAu VpJ+EielBswFOC7xPRMLHSu9DY8gCYJp/GPNAAhr7FyIpv3VklkcI3QwmDNYnQAJh6t7 JWVTWQdCEyC7yQvLVZR56Z9oJQ0B2f0QavB9+0jtz14I1fcb8JjBx+kOu7ZbmdQ/3yqP a9X47WiP2hFTLpQxI5cki/Lxitcm10Tx5s009RPZ0ZPjO+iUXGjPhOfsLVEbAYvJs3q6 AcWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lct5lXl+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si8195180ejq.495.2020.04.14.06.45.11; Tue, 14 Apr 2020 06:45:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lct5lXl+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390448AbgDNA2B (ORCPT + 99 others); Mon, 13 Apr 2020 20:28:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727914AbgDNA2A (ORCPT ); Mon, 13 Apr 2020 20:28:00 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66A24C0A3BDC for ; Mon, 13 Apr 2020 17:28:00 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id u65so5297219pfb.4 for ; Mon, 13 Apr 2020 17:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=Iab8a1FKfuOAzK+EtN5ksWX3Ch8SBZHLkolYH18vMow=; b=lct5lXl+IscuWLrw6XCAopB0jz61pOOckI0TmsidUgK4aX5mFUXIL+srhSrr7xsXiI R858On8eqIKqa3BXB4MJdWnfFhKywElGKTmO4z+5bqMcrhqViWsYCBSTHeu5VymTDvXy vzDM5SQexLRHSqiZTMW5uVEwHz6m0ToMk5ffxuaUr7dFrUjGIrbFJSlBk8RtMkG1HFta e9YzM1vFQZlEpZx+IwYLnAg7oi80UtsWCGSGE9hdWjS2nYrQr6DSDyUzhadbwcYpuzTu tfVONL2lwfWuYRw4uqk4mrPTFWRAPc4c1PM/LJ8V399ICf9ZbS1MhBB39wQOxCgx1dGp +4hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=Iab8a1FKfuOAzK+EtN5ksWX3Ch8SBZHLkolYH18vMow=; b=RliE2PAF9cHp2EHfVpHY5NNmSJQvVqnUe9dAxUy+77a9dbdHYCai6Bh0G1W+RSayXa qK6IlpsLBpbKT9mEY+9+nUxGO00NMzX78K+ynd764lkNWwDVZdphdl41N3g2f8BnC1DX RWMTzP/7zKf0n6sxblaM0/CCyhPv4keP1d4ykjUT1+dnCDNmlO1lWEih9klBTbspo9Ax ivZ/+JHzrpn4sgwWkiRt1KpYztXjRyE8FH9yfT1gzzAgd2u3opguZc8evgLAtzTEFc+C 1IrhNh/L4QCfuiRYbr9HvUzSGhQxMlAIdw+2FqqzgGbaEWGTzmbcqO4NemBt6mZimfWf BuqA== X-Gm-Message-State: AGi0PuacaeJWCPvH9XkA5q6EMF9h1y36S94ENlvko2KmsyWYm+rSj9zN uZ8FcZUGbFruxM07LCKVG9/Fj0GLUt8= X-Received: by 2002:a63:5724:: with SMTP id l36mr15697582pgb.366.1586824079677; Mon, 13 Apr 2020 17:27:59 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id 132sm9849909pfc.183.2020.04.13.17.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 17:27:59 -0700 (PDT) Date: Mon, 13 Apr 2020 17:27:58 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Nicholas Piggin cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Subject: Re: [PATCH v2 0/4] huge vmalloc mappings In-Reply-To: <20200413125303.423864-1-npiggin@gmail.com> Message-ID: References: <20200413125303.423864-1-npiggin@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 Apr 2020, Nicholas Piggin wrote: > We can get a significant win with larger mappings for some of the big > global hashes. > > Since RFC, relevant architectures have added p?d_leaf accessors so no > real arch changes required, and I changed it not to allocate huge > mappings for modules and a bunch of other fixes. > Hi Nicholas, Any performance numbers to share besides the git diff in the last patch in the series? I'm wondering if anything from mmtests or lkp-tests makes sense to try? > Nicholas Piggin (4): > mm/vmalloc: fix vmalloc_to_page for huge vmap mappings > mm: Move ioremap page table mapping function to mm/ > mm: HUGE_VMAP arch query functions cleanup > mm/vmalloc: Hugepage vmalloc mappings > > arch/arm64/mm/mmu.c | 8 +- > arch/powerpc/mm/book3s64/radix_pgtable.c | 6 +- > arch/x86/mm/ioremap.c | 6 +- > include/linux/io.h | 3 - > include/linux/vmalloc.h | 15 + > lib/ioremap.c | 203 +---------- > mm/vmalloc.c | 413 +++++++++++++++++++---- > 7 files changed, 380 insertions(+), 274 deletions(-) > > -- > 2.23.0 > > >