Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1015833ybh; Tue, 10 Mar 2020 12:49:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuqTSYyaJ2zrUXe3QD9zN3Wj+97R1aiUnDm7NBAoNlEL/me4UWjc/jc0b9KwdI09w7pLtIN X-Received: by 2002:a05:6830:11d8:: with SMTP id v24mr18548428otq.288.1583869779843; Tue, 10 Mar 2020 12:49:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583869779; cv=none; d=google.com; s=arc-20160816; b=DNpAFI1V591ilqUhuf0Z22UcZJRu6jd83H5rgWljAoPHE561amz7aK66yuHpumlI1z FWapm6bDBK/v7rPUJFwGrLCLcM1G0+XO5gZDFPnWTtjQENSpve0P3RtbqDZl9r/rps8D B2oOoMbZ5deOwcSi3NSkEQTyCg6UyTkD33f6VDe/1jybLe3Vhglr4XQEQd+R7T9lMd0q 7QyRY6PIW2jbrPy16//IPqFZB7Z1/eoA31nSRF4phok/dLsDJeulVIzELtSGiU+X4p8X MykjFTZHitXrx9Exaf3Ly18LgdXlBbvWki4+YE8taBIX0CGuFhf/SY4SfOH+An1n8rS1 z98Q== 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=ebx0mae1L2hKvUQCyOg3Jc/nOupu4jFZpQQnSqypSQw=; b=0ZVK2za8/lez5l1MW7q06nn4auquO1M0ARl1JZE838IExoBrDafl65OK+6vAH4PtA7 gqln8MrRuqSfT9Z1mr2bAa4uLOlt6RDpHs0M/Zf7X3J3d6bRTBUEokZFOXk97a4qTN9b f3dQ1VeZYH4VAYBbhamKnIontbGBlZWZL6sDxzVreTScHWlMOY0Z3bzgQPhtHMbeqLcr RtH23Z27uJ8K/SSTxrPiUu50Y/lBbFTKRGiCQ2NZDR/CZ8r4xNH6vw8AtFE+KSorVcsZ SG+e57MaOV/4HEoeYKlFq4CFGaDn2VYNYQ5x+GosUcl3r1gu+93uQa4rWScvv6CTMM6j ImVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17si7728007otl.278.2020.03.10.12.49.28; Tue, 10 Mar 2020 12:49:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727082AbgCJTrO (ORCPT + 99 others); Tue, 10 Mar 2020 15:47:14 -0400 Received: from shelob.surriel.com ([96.67.55.147]:50306 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbgCJTrO (ORCPT ); Tue, 10 Mar 2020 15:47:14 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jBkqJ-0000Fp-Qs; Tue, 10 Mar 2020 15:47:07 -0400 Message-ID: <43e2e8443288260aa305f39ba566f81bf065d010.camel@surriel.com> Subject: Re: [PATCH v2] mm: hugetlb: optionally allocate gigantic hugepages using cma From: Rik van Riel To: Michal Hocko , Roman Gushchin Cc: Mike Kravetz , Andrew Morton , Johannes Weiner , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org Date: Tue, 10 Mar 2020 15:46:51 -0400 In-Reply-To: <20200310193622.GC8447@dhcp22.suse.cz> References: <20200310002524.2291595-1-guro@fb.com> <5cfa9031-fc15-2bcc-adb9-9779285ef0f7@oracle.com> <20200310180558.GD85000@carbon.dhcp.thefacebook.com> <4b78a8a9-7b5a-eb62-acaa-2677e615bea1@oracle.com> <20200310191906.GA96999@carbon.dhcp.thefacebook.com> <20200310193622.GC8447@dhcp22.suse.cz> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-nkTzW+dTroZRzhK+ANyt" User-Agent: Evolution 3.34.3 (3.34.3-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 --=-nkTzW+dTroZRzhK+ANyt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2020-03-10 at 20:36 +0100, Michal Hocko wrote: > On Tue 10-03-20 12:19:06, Roman Gushchin wrote: > [...] > > > I found this out by testing code and specifying > > > hugetlb_cma=3D2M. Messages > > > in log were: > > > kernel: hugetlb_cma: reserve 2097152, 1048576 per node > > > kernel: hugetlb_cma: successfully reserved 1048576 on node 0 > > > kernel: hugetlb_cma: successfully reserved 1048576 on node 1 > > > But, it really reserved 1GB per node. > >=20 > > Good point! In the passed size is too small to cover a single huge > > page, > > we should probably print a warning and bail out. >=20 > Or maybe you just want to make the interface the unit size rather > than > overall size oriented. E.g. I want 10G pages per each numa node. How would that work for architectures that have multiple possible hugetlbfs gigantic page sizes, where the admin can allocate different numbers of differently sized pages after bootup? --=20 All Rights Reversed. --=-nkTzW+dTroZRzhK+ANyt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl5n7qsACgkQznnekoTE 3oNPgAf/WwM7t19gfs8VgvGYuxQB6n6Cej1p3fn/Vt33tpr5NTsNhSYGXd5Fkk6z TJLqGmGSm1yIfl9A+zu5faSdhZ4WWPGwbDclmyninsndL8fq/hXnlms0LvNuFV4M xgzIfCppKwldxAINa87dLbA5WWstSLK+rWMCOghhbOxnsGk0JxltTFTmR7vZxG/s 9yvMK+Q2gfhxByVkmd8olXb0BIE5TpDzmvBy6OQE0MMD5BNPBijzPodF9/Xeq003 NjQfxAzVGukmIkJEL7waRt+FkcO+IoDve7I94ZWcJ0F1w4HaZN62RTh37YCGpql1 hnUpkr+EHWLlvuhAxNa+1PTU/D9HGg== =f+4d -----END PGP SIGNATURE----- --=-nkTzW+dTroZRzhK+ANyt--