Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3547391pxk; Mon, 21 Sep 2020 17:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbIJ2lDScmnImpDgkTmCMtoOzS8PLIkCRkhBjmtL75a7WkVnTmeLyPylsu7d8DaDP5/OCF X-Received: by 2002:a17:906:7c82:: with SMTP id w2mr2087121ejo.87.1600734415915; Mon, 21 Sep 2020 17:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600734415; cv=none; d=google.com; s=arc-20160816; b=Lo2Mmf9hIB39TaqlsswhkxodOb9RtB626nhEdTYTUugAdEUvgF/cjv8CVbdB1pokAz OeUx/Nn1zYWRlYt0jSYx/tcGupscoX/a8Gu+isa33IWFZhzkzQGGXW3X2yK0gO5Br+xI v5Hc5qdTZ9VYpJd/Z5j5lRVb48zEjSWHBXcMaX5WhtAEK24UV4D+q1v55R9JL54fXrG7 wfhO8BXO6oRMGbdXsPWwqgPRYh0GARAltwPpn4oq5Wcr2XqOwGHekWHwlYuCu9yCmPNS c0UbQ2FDASS/ZO4g6gdeOdu6Th5eL40EBbDI+wUu9S0e0TaQXHd3Jp4C+TWHYv3FKA9g ohMg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hAo+V3tdE6NM9rSr7pdU5ho0+SwsVDoDaPUFfR8LM4I=; b=iHXGpEnn4JejXznUGK6Y1MXsJgxKy02CIN2W0tS3bvANCM2Nn6mTAUkuCnJqtBXB2v pocl4z3IES1WqDfCdgF1NwamajlnkqaEuQw5XggV1AoGJtiZT4u+ScZAQe2tzrOeJNRR qGHjIjsq/9VMRrXUE6qx3hof/b3XMn+fFjVCXMm8rzlanHxXRkatx9/yETxUetpUn16Z YLnpFmmJC7ILDXjSriOxGAV/OqZM/WQ7x922WzWXGSOR/rdMwLQQADOKRm2204WDKERA 8fDAoBUSJZT4InQHBjUk7AYFg/nrXTCGqd6sTpcC0xZKRakuHqx0GJijQjrRJ88lDzvr O2wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=tLvKt6RB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k1si9632487ejj.102.2020.09.21.17.26.32; Mon, 21 Sep 2020 17:26:55 -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; dkim=pass header.i=@ozlabs.org header.s=201707 header.b=tLvKt6RB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ozlabs.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728815AbgIUXTd (ORCPT + 99 others); Mon, 21 Sep 2020 19:19:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728704AbgIUXTc (ORCPT ); Mon, 21 Sep 2020 19:19:32 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99532C061755; Mon, 21 Sep 2020 16:19:32 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1003) id 4BwL4K2tFPz9sSt; Tue, 22 Sep 2020 09:19:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1600730369; bh=Gh/jGMCMQmrrfp+HhoHjE8q2QWpEvx5rxPTcdpfPEt4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tLvKt6RBA7E4vUVZYVD3O0hQckC/kqu0Y6WFB8O4lOYXfgvdTXK9gsmS2BD7ls6Xr A1w4ELvBsIAhbgPaFFbignPhVBc1+vqX+JLVk+i4hT/EJmapByfasDbtvk9ZdIRSiY VVBZFvHlCGQiUgyF/mZ9yP+i3k8ThJdX+sjKTRfWPcM8mzSoNZ9quQ9ynaUbGeGfwD zHkAT3JewA/O4SLmM/ZXDet68DJvmz2PUC/X2oxcj8Ee8mh4Y6Ut6o1RPksx6psUXi nbGOfz1G8iQA3tLtlpbbVNHjCbXyoRskt/SrPz3ILNA3SiwzpqzpxiLangK6IevOV/ epbK+jzQSZ3hw== Date: Tue, 22 Sep 2020 09:19:25 +1000 From: Paul Mackerras To: sathnaga@linux.vnet.ibm.com Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Michael Ellerman , Jonathan Corbet , Randy Dunlap Subject: Re: [PATCH V2] Doc: admin-guide: Add entry for kvm_cma_resv_ratio kernel param Message-ID: <20200921231925.GA348814@thinks.paulus.ozlabs.org> References: <20200921090220.14981-1-sathnaga@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921090220.14981-1-sathnaga@linux.vnet.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 02:32:20PM +0530, sathnaga@linux.vnet.ibm.com wrote: > From: Satheesh Rajendran > > Add document entry for kvm_cma_resv_ratio kernel param which > is used to alter the KVM contiguous memory allocation percentage > for hash pagetable allocation used by hash mode PowerPC KVM guests. > > Cc: linux-kernel@vger.kernel.org > Cc: kvm-ppc@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: Jonathan Corbet > Reviewed-by: Randy Dunlap > Signed-off-by: Satheesh Rajendran > --- > > V2: > Addressed review comments from Randy. > > V1: https://lkml.org/lkml/2020/9/16/72 > --- > Documentation/admin-guide/kernel-parameters.txt | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index a1068742a6df..932ed45740c9 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -2258,6 +2258,14 @@ > [KVM,ARM] Allow use of GICv4 for direct injection of > LPIs. > > + kvm_cma_resv_ratio=n [PPC] > + Reserves given percentage from system memory area for > + contiguous memory allocation for KVM hash pagetable > + allocation. > + By default it reserves 5% of total system memory. I am concerned that using the term "reserve" here could give the impression that this memory is then not available for any other use. It is in fact available for other uses as long as they are movable allocations. So this memory is available for uses such as process anonymous memory and page cache, just not for things like kmalloc. I'm not sure what would be a better term than "reserve", though. Perhaps we need to add a sentence something like "The reserved memory is available for use as process memory and page cache when it is not being used by KVM." Paul.