From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFDB3C43461 for ; Tue, 8 Sep 2020 14:46:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3672722B4B for ; Tue, 8 Sep 2020 14:46:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3672722B4B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=surriel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A87336B0062; Tue, 8 Sep 2020 10:46:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A37DF6B0068; Tue, 8 Sep 2020 10:46:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8D7826B006C; Tue, 8 Sep 2020 10:46:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0153.hostedemail.com [216.40.44.153]) by kanga.kvack.org (Postfix) with ESMTP id 788216B0062 for ; Tue, 8 Sep 2020 10:46:54 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 2C0832492 for ; Tue, 8 Sep 2020 14:46:54 +0000 (UTC) X-FDA: 77240171148.17.spark27_2511389270d5 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 47F72180CF0B8 for ; Tue, 8 Sep 2020 14:41:19 +0000 (UTC) X-HE-Tag: spark27_2511389270d5 X-Filterd-Recvd-Size: 3306 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Tue, 8 Sep 2020 14:41:18 +0000 (UTC) Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kFeo2-0006cU-Li; Tue, 08 Sep 2020 10:41:10 -0400 Message-ID: <7ed82cb06074b30c2956638082c515fb179f69a3.camel@surriel.com> Subject: Re: [RFC PATCH 00/16] 1GB THP support on x86_64 From: Rik van Riel To: Michal Hocko , Zi Yan Cc: David Hildenbrand , Roman Gushchin , "Kirill A. Shutemov" , linux-mm@kvack.org, "Kirill A . Shutemov" , Matthew Wilcox , Shakeel Butt , Yang Shi , David Nellans , linux-kernel@vger.kernel.org Date: Tue, 08 Sep 2020 10:41:10 -0400 In-Reply-To: <20200908143503.GE26850@dhcp22.suse.cz> References: <20200902180628.4052244-1-zi.yan@sent.com> <20200903142300.bjq2um5y5nwocvar@box> <20200903163020.GG60440@carbon.dhcp.thefacebook.com> <8e677ead-206d-08dd-d73e-569bd3803e3b@redhat.com> <7E20392E-5ED7-4C22-9555-F3BAABF3CBE9@nvidia.com> <20200908143503.GE26850@dhcp22.suse.cz> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-HmZ0JwxcSySelV603cbZ" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 X-Rspamd-Queue-Id: 47F72180CF0B8 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --=-HmZ0JwxcSySelV603cbZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2020-09-08 at 16:35 +0200, Michal Hocko wrote: > A global knob is insufficient. 1G pages will become a very precious > resource as it requires a pre-allocation (reservation). So it really > has > to be an opt-in and the question is whether there is also some sort > of > access control needed. The 1GB pages do not require that much in the way of pre-allocation. The memory can be obtained through CMA, which means it can be used for movable 4kB and 2MB allocations when not being used for 1GB pages. That makes it relatively easy to set aside some fraction of system memory in every system for 1GB and movable allocations, and use it for whatever way it is needed depending on what workload(s) end up running on a system. --=20 All Rights Reversed. --=-HmZ0JwxcSySelV603cbZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl9XmAYACgkQznnekoTE 3oPusgf+KYtjStpu2k6nGhAuqUIseqcegs+043d5sH5mf1WmjXjYBhXiW678SiXK J137Qohunxq1FcxOp6kiTjvh7PUotCSD4pa90valFEt4jkZz8G1EXk1aumwBp03W KKEafjxD2lBm29k8vujhDI1+SUiH6tqi5iNENXgkpm19ytGU7/4uwUgcOhojT5tX c+tZM0a17pCICjWBmHkUMxflUpkOFg2uLRrceWnH7Tlb4dJzGvkp2XMmbj9/k0Zt k2tfQqGRgi6VKEziAQ3J3cVbudHXXkOx/3wlp2iCEzhdSugFNgnkxWXPaRWEvGlr 22DoGnG2WXhCZFDcNu/BC/NkAQ+ucQ== =h2Ab -----END PGP SIGNATURE----- --=-HmZ0JwxcSySelV603cbZ--