Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4548686ybb; Tue, 14 Apr 2020 09:23:53 -0700 (PDT) X-Google-Smtp-Source: APiQypKTI1PdbcdIeMIp6Bx/Ci/x1rlvWcYMAXtFSAYlZkQY79aBJx+bB35LAPM2uTsaNQx5Pjtd X-Received: by 2002:a05:6402:32e:: with SMTP id q14mr21446617edw.84.1586881433576; Tue, 14 Apr 2020 09:23:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586881433; cv=none; d=google.com; s=arc-20160816; b=fXAfBjYZvypJMbm/0G2mmgnFHZbJgLMrE7+g8/kbBtmoxw4e9CJf36rqAhwp0HOQhk 5seMEQdMgLCo9IqcgN0s0R4BlHrUO+7a6BTLURnjxpx6ruXH9LYv3jdWNT44jChaxbgm +MziNX7Ibn+j99rKeQ37FW3MfCop//KHfyT6O5Zw9Oqh2dmRz/gHpey5yr2qJP9+fJKf nSsFWHuc9fTfRQxxgxfnwfzJ9G0qN7lh3dsiFXfm0V5BagPHhgUmH2EdEujMAJg4WqPU +0aHEzpsQexMFGN2rEvzAYvgO3Wav4x3kVK6c1xdmoWk6AhXDaL0shWP7YcCQTDXuhZC kotw== 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:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=L6wwBLpMMetY/zxOEci/JVLuRBV/3LI/LldPvH06RfY=; b=TIPmTSxrk6GoVABWdvcYnrRQC3FZeZzyeox7TP6EK8Fav6Uq3MVti4My2jDkX8an5w G59VUoTaOBITpSxFfMKmydNQrYnid1mOUxcv1aZUEzCWcAMeWg79qS0lnVmBHsqCVBdY hLhkb96HZIPVw54gr3eLR3T8QJnutLTV00kO39HqOpqzSOMcnQwow1SgK6mamBdGy1vq KhYx8Xh39eXWn6hWlJ0Js421Vn2uoWTgFm2FuxVAe/iath76uNGugJNm1KmQLo3vAavD 1YM79WZhWEHHxZThcSC+NmPMPsxw5RMqyx0avdRfE1SN7kNZainnBRYBWLtJ0m27Yu8Y Kbug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jbyVR3i6; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si10201434edp.327.2020.04.14.09.23.29; Tue, 14 Apr 2020 09:23:53 -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=@gmail.com header.s=20161025 header.b=jbyVR3i6; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405090AbgDNOsY (ORCPT + 99 others); Tue, 14 Apr 2020 10:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404893AbgDNOsT (ORCPT ); Tue, 14 Apr 2020 10:48:19 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7320DC061A0C; Tue, 14 Apr 2020 07:48:19 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id h69so3556867pgc.8; Tue, 14 Apr 2020 07:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :message-id:content-transfer-encoding; bh=L6wwBLpMMetY/zxOEci/JVLuRBV/3LI/LldPvH06RfY=; b=jbyVR3i63K7T908IixpVArje1gguIVF9o17an2Ju6P4xd56heYoFmO/WcdvYUGOw83 7DsRgEXQ7GdDOshFt28h6IZryHi6pCoL9TxpwNMwOPQ1WwJTF7JTL9c2RLAhjn11+Qtp 81zgUeMjSRjvbeaU+lfmouqsrC6Fr6iqJFDEiznZAV1GOr4656U3Wr5nQootJ2ZQFOWS HzUhnCiHoZIIV8+m2lFOeHdd0TIJ4MPu25GdxxAiCtY8PSM3nTP3iBUlJWWpsDaARXRV 7mWxg96+Qw9Kqu5tSPqHXEfSOUh6hwqt5xIdzBQ9ngUs43LWc7bZzpLIK5dfh+q7KRpc C80A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:message-id:content-transfer-encoding; bh=L6wwBLpMMetY/zxOEci/JVLuRBV/3LI/LldPvH06RfY=; b=igIZC2ygC1bklltKSTFjfvS57G7cwdVoxJHQ8tO904m9P4HtlpRvG9ixt6nAOUmRsU sZ3DqUgWbHU26vnhwcvUUAQtgzvKiHhMILqlSefUP4OmTIQ7FkI+BSP1ScMoOZYZ1Y8k BLoxwxc5tATVeqFPH81Gh8qwVZuUC3v62z0J9jAOcMzqBG9zoS41vlrWB4jT2SEU4eSr YDxKkVYhfInGk9Ss4WxBHsRTOADWok7GAKrNNmBqgEvmdIPhHe+sRTbyk48eyhuh8Z5z FZgLgGRIBeqJ2KpTIhu4nSdU+YS23oaQ9+E8/ELH6KU9vZszzZEqvYtA8CkZallnjdrr Nwcg== X-Gm-Message-State: AGi0PuahLJdpzme9o5s3J/bpqDr6KEYCF10jVsGSw9YP47wJDORRt2GX HBf9A9PVfh1nZlcSrsl09BI= X-Received: by 2002:a65:688c:: with SMTP id e12mr1438881pgt.194.1586875698800; Tue, 14 Apr 2020 07:48:18 -0700 (PDT) Received: from localhost ([203.18.28.220]) by smtp.gmail.com with ESMTPSA id k12sm10439963pgj.33.2020.04.14.07.48.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 07:48:17 -0700 (PDT) Date: Wed, 15 Apr 2020 00:48:13 +1000 From: Nicholas Piggin Subject: Re: [PATCH v2 4/4] mm/vmalloc: Hugepage vmalloc mappings To: Christoph Hellwig Cc: Borislav Petkov , Catalin Marinas , "H. Peter Anvin" , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, Ingo Molnar , Thomas Gleixner , Will Deacon , x86@kernel.org References: <20200413125303.423864-1-npiggin@gmail.com> <20200413125303.423864-5-npiggin@gmail.com> <20200414072316.GA5503@infradead.org> <1586864403.0qfilei2ft.astroid@bobo.none> <20200414130203.GA20867@infradead.org> In-Reply-To: <20200414130203.GA20867@infradead.org> MIME-Version: 1.0 Message-Id: <1586875675.f8q1grbltc.astroid@bobo.none> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Excerpts from Christoph Hellwig's message of April 14, 2020 11:02 pm: > On Tue, Apr 14, 2020 at 10:13:44PM +1000, Nicholas Piggin wrote: >> Which case? Usually the answer would be because you don't want to use >> contiguous physical memory and/or you don't want to use the linear=20 >> mapping. >=20 > But with huge pages you do by definition already use large contiguous > areas. So you want allocations larger than "small" huge pages but not > using gigantic pages using vmalloc? Yes. Thanks, Nick