Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp332722pxk; Wed, 9 Sep 2020 06:39:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUIJHa7wL/A8dqOpYx+uVoBKVHUcyAr8a49/sYPyIuJTDSx18KbAihVl3Cxkgbh94s0rVd X-Received: by 2002:a17:906:b0a:: with SMTP id u10mr3632182ejg.226.1599658751129; Wed, 09 Sep 2020 06:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599658751; cv=none; d=google.com; s=arc-20160816; b=jLjURVFlGa5g7gpAJTClGF46uZGrqHn6o3yiHBydTPx1Jrwkz3OUspME6irUoTeVI+ f2CIbqpj+BYKHYpOPRSaG93ZfKyYjpX7UO9IE02iDBYwcBZHAogqLH+emVBDIiDrMZtu Zzc5OXdKQzU5ZzqX3DmUY/Dmd1V+kia1h9dFy7m3Pbve+vv8wFJ5Av+M7MmzJ2do/joS uaV29zEx8o44Lq2VMWZfnYOu8WQeeIKZWaaGyIawakydcmyfi4rAAoMx4cq6qBGe6fL3 CUNww/FQmRhonbZIdfo/4n1M9MvJWxB6QQptmlGjTr81h3H6cQ5KTx0ggufUQ9KiDDF0 CfeQ== 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 :in-reply-to:date:cc:to:from:subject:message-id; bh=wKdeTBeVxCvzSekBOGd3g05BevoazUwmwq2wq66WLA4=; b=BPDHd2ldCz6+RXsTi4nnpqE+sosMBic4CrSppqSrJ31jWOSXAhpof8XGvtQNkhlmc8 Abdi9Bc/czF9evD9ofv+ey8VhqhbHia7DffxWhJIVZ2OMPjHzKUph95TTXdMVWnTPsEC T1iMslXrNIubwRejqP+hMTA5SnIs9JgHGH/fiBTo1at7dexf86Enjc6Kg+/lCU6Ltal4 FqmE3AHIoD1RyOsc7r2xpvZvnzvxt9nW21R6q3AaWv0WGGDRoIb3f3DwL4X2qHHsPH7j KD96tF4vN1RIGTGhVP3eicecOTa+ceMfglu84HhOxGAuPJHdGp8ukkyYxECSpUcs9UrB vwMA== ARC-Authentication-Results: i=1; mx.google.com; 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 x14si1394652edv.549.2020.09.09.06.38.47; Wed, 09 Sep 2020 06:39:11 -0700 (PDT) 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; 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 S1730262AbgIINd7 (ORCPT + 99 others); Wed, 9 Sep 2020 09:33:59 -0400 Received: from shelob.surriel.com ([96.67.55.147]:45342 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730355AbgIINTe (ORCPT ); Wed, 9 Sep 2020 09:19:34 -0400 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 1kG00L-0003w1-7V; Wed, 09 Sep 2020 09:19:17 -0400 Message-ID: <054d02f3b34d9946905929ff268b685c91494b3e.camel@surriel.com> Subject: Re: [RFC PATCH 00/16] 1GB THP support on x86_64 From: Rik van Riel To: Michal Hocko Cc: Zi Yan , 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: Wed, 09 Sep 2020 09:19:16 -0400 In-Reply-To: <20200909070445.GA7348@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> <7ed82cb06074b30c2956638082c515fb179f69a3.camel@surriel.com> <20200909070445.GA7348@dhcp22.suse.cz> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-a/joHFftty7+65yl3VYm" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-a/joHFftty7+65yl3VYm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2020-09-09 at 09:04 +0200, Michal Hocko wrote: > On Tue 08-09-20 10:41:10, Rik van Riel wrote: > > On Tue, 2020-09-08 at 16:35 +0200, Michal Hocko wrote: > >=20 > > > 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. > >=20 > > 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. >=20 > That CMA has to be pre-reserved, right? That requires a > configuration. To some extent, yes. However, because that pool can be used for movable 4kB and 2MB pages as well as for 1GB pages, it would be easy to just set the size of that pool to eg. 1/3 or even 1/2 of memory for every system. It isn't like the pool needs to be the exact right size. We just need to avoid the "highmem problem" of having too little memory for kernel allocations. --=20 All Rights Reversed. --=-a/joHFftty7+65yl3VYm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl9Y1lQACgkQznnekoTE 3oPHVQf/bgeq438Tq37bx4goKsEOaJmg8kdwGMi1Sa0MPj0rHzIqrrcpBGN7MoTB cJwWBXlXktTn7r9fdv3TVFu2DwctuUu3U8XA6tKveENqUqW/rZJfkayb6mCF8qDv deKHkCbDyFrp4ugPQ8Ey2QX8fPcqI02kHTGmJQQxohE7Y1Gim5qiLzkn5aYQVDK1 mC2AgQYpGISMW/hPJ8yAZl3mKaQ5MKqfrhlqRHbq8y8oibv4ttkSLTFKX5E+Xizn zRQ4Re4Ld/zou/xUVXYMUkA71eqoIb+qDhXFmomWrBxmdHirzgMqDpKX6L7Kxm4+ +s3riO3TZZP2YCwj5xbMWABajAf8Mw== =tW2I -----END PGP SIGNATURE----- --=-a/joHFftty7+65yl3VYm--