Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1166832pxb; Fri, 21 Jan 2022 11:16:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxz5zFGnoTowVQxjU9VP2+ApClevBhSO3OFtjl57dLg121HFK97gh8oz6T3K5yK76rAGow X-Received: by 2002:a17:902:70c3:b0:149:a78f:54ea with SMTP id l3-20020a17090270c300b00149a78f54eamr4888645plt.114.1642792575377; Fri, 21 Jan 2022 11:16:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792575; cv=none; d=google.com; s=arc-20160816; b=kJr1HLrJ3cSBvfeGfbkXztA67X3CJ9ZfTUmljG+VXPw5eltGoCG3xrnhU6OeaOWUuy aCDqN877ZaKCU6oaFJDuhhgBoy17aNKBemp1y7i3zDAgHAH8nPw7duXTCpdgw5n6A/h9 2fHTb2h9rDaxKQ9ihYkF/4yTsEiZcJY7yWOVKoknya0KR3HtiyAtQfbTk/stEZfmV6Op +pG/GVT9Lk3VdqxwJ+caUnZ19B43yQe2JrNFX/+k1TVpF2QKj0JrG1/+Oe9g+0YoTxEu cUxwiwdG+WcYH8pQX8D9C8Zo8Wl/tWlccDu85KCRlWvcp8GsbpMzDVrPCw5GfymXIyg2 XhFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XdBwF/RjhbWIU5o6Jz7HpuQNLjSadEnmWI/i7GCW5y0=; b=fIHQxmI6BiVdALOkk7BfGbQeHtrgDgSoVrT9uyAPQxC8TO1rs5z3GVuQnsw4nkae2M tCrgklOpph8fy1bCHlde72J0AtP51CLwrnzAswxq8v3dCYKKtq01Iw0sFpK/RPmqJWox NG6bWcJ4Rj8b88ePQHNqOLvXWPTK6C+qwOf6v8ih4hisNpP0uDg/T+VZTQVnM79gdNHk V5ycyShTeG4/TLHbLHBnIX0YM+y4HA1w0DZ/EHWKh+FRoPnwY5JuOLeMp+Uf3T1JGF2J IZSh0VZGuE4Ufb264GAWGFb/RT1NzolUdGirL2H2LSa72gO5+je8S5OrAOwazMxQJe29 oixw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Cc09zlkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id be11si6876431plb.94.2022.01.21.11.16.02; Fri, 21 Jan 2022 11:16:15 -0800 (PST) Received-SPF: pass (google.com: 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=@infradead.org header.s=casper.20170209 header.b=Cc09zlkL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354778AbiASNWW (ORCPT + 99 others); Wed, 19 Jan 2022 08:22:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232897AbiASNWT (ORCPT ); Wed, 19 Jan 2022 08:22:19 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E994DC061574; Wed, 19 Jan 2022 05:22:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=XdBwF/RjhbWIU5o6Jz7HpuQNLjSadEnmWI/i7GCW5y0=; b=Cc09zlkLM5/Ab6cb+M3cwSs7PG huGqk0aJjbCMfwx7cGINmtqiWpkOY2MZWDoKt5SA8m0jllV54qtTq+XMW167egJYN43cWA6wmB1kT NSiw6gsSlTYaYYCOytDuMJy4dFx/vs+lSzcFzo9SptNPM3xm07UEtjKPEEPZNEk8oivGNJkbVOLpd 5E4WhC0Wuj3mmjvZ3xxOdSBKLgCT1DGgCxproJPPwnGtPAjYjE7oVogDUTUmyoh8RSR3wa/r3oLCM BAkDt2EQRiO5AzaEt+RVfOvnIvPA1+sAN1KiGh40QWfqiVw95Gyi1Xn2ZGs2zJNxe5PnYpg//wkd6 sU6IJtWA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAAua-00AsKQ-Da; Wed, 19 Jan 2022 13:22:04 +0000 Date: Wed, 19 Jan 2022 13:22:04 +0000 From: Matthew Wilcox To: Kefeng Wang Cc: Nicholas Piggin , Andrew Morton , Jonathan Corbet , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, Benjamin Herrenschmidt , Borislav Petkov , Catalin Marinas , Christophe Leroy , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Michael Ellerman , Paul Mackerras , Thomas Gleixner , Will Deacon Subject: Re: [PATCH v2 1/3] mm: vmalloc: Let user to control huge vmalloc default behavior Message-ID: References: <20211227145903.187152-1-wangkefeng.wang@huawei.com> <20211227145903.187152-2-wangkefeng.wang@huawei.com> <1642473992.qrnqczjfna.astroid@bobo.none> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 19, 2022 at 08:57:58PM +0800, Kefeng Wang wrote: > Only parts of our products wants this feature,  we add some interfaces which > only > > alloc hugevmalloc for them, eg, > vmap_hugepage/vmalloc_hugepage/remap_vmalloc_hugepage_range.. > > for our products, but it's not the choice of most products, also add > nohugevmalloc > > for most products is expensive, so this is the reason for adding the patch. > > more config/cmdline are more flexible for test/products, But why do only some products want it? What goes wrong if all products enable it? Features should be auto-tuning, not relying on admins to understand them.