Message ID | 20231212-accept_memory_param-v1-1-a9012402b887@suse.cz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7875136vqy; Tue, 12 Dec 2023 09:22:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGA5okD4/gpv72T1UunXwb96BL559wSIYDuhWDFy97gXUjpHsPFvOzAPb3zp6UfVDk8Z+HT X-Received: by 2002:a17:902:7c03:b0:1d0:8554:5dd5 with SMTP id x3-20020a1709027c0300b001d085545dd5mr5882859pll.37.1702401736568; Tue, 12 Dec 2023 09:22:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401736; cv=none; d=google.com; s=arc-20160816; b=IzIaP2NW9iP4/pRAwRqdSJk5YGQeIwXTCDm2U5ssNF5RwXddF6Aa+8Towp45NFKiqr CmccRG1DQWYEm6FCuezO+jPj+M2BASEplu88grCDJCOhX0nnHvgrpuoDofzrPU5M9zAV xkWndTcAbrxPjMm+dWIfyzbC7CQ5+UcZI34qFS+e6xdIfWwm3SmDWuP+LmKejRS3pp7K JCh5ZRi9rS7X59TTU+2aE+7ezogpIgkEnZtSx5xlz5SMu+nxoExM5c2cbDTP8z3ni0ho tH/P/ST18Q0bXC24fQGO5mUPJ9O+Nlhw4TW29KzqALENGS0W+Uz0Jx4xovar/5DYPYKW AyXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=EYeLNxxcRpZBsoYcrMasPjbq5v48kbxiKxQZBxiyMNE=; fh=YUHCwqQ6wkoCzVns36pLXr6F46ds/qpaOPFYt36gCO4=; b=N61whP4hZPSYTPouuOI4xEYCL//Xzfcw9ErBSo/vdpTmfr6Ss31skDfLYkFXJyHCHO HEZXynmi9eIPfY53zJxJtCpClikEwzkUMRg2oSdXilkD24Nq7CDua+HW6PbVtQH7TI1X QjCqgkflqoM8yFv2+0Tl1UG/SBsppGpNTl2wkdPNXjwEG1UKSfityWoUMyLgv4CieqgT qHohA7chEVI+CYq8hJoLMmQf91Qos8sobjfWC/EprUEdrC9OPqrpI1XuhcZjfhWxkIeN nDGQtbW0acjnioNpOB+TCYw4XZc5NFmofe8eXb+LYbelgAmfAoPtFNgBl21a7P76sGeh D4zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ng9xggNY; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=YM4XbS5l; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=r8qTDk+G; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=n3JMvRKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id m3-20020a170902db0300b001d05efd818fsi8391399plx.58.2023.12.12.09.22.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:22:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ng9xggNY; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=YM4XbS5l; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=r8qTDk+G; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=n3JMvRKN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CE02E80A565A; Tue, 12 Dec 2023 09:22:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376562AbjLLRVu (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Tue, 12 Dec 2023 12:21:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346693AbjLLRVr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Dec 2023 12:21:47 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8914AFE; Tue, 12 Dec 2023 09:21:50 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DE51B1FB77; Tue, 12 Dec 2023 17:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702401708; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EYeLNxxcRpZBsoYcrMasPjbq5v48kbxiKxQZBxiyMNE=; b=ng9xggNYDzAm/v8vqtZGMmLKDskuz7qlLuWHgfqYF1tqpLHRQhXmhUhFQNxTfEcs/BI9vx +y8prtl6hH3ojbHkUW4tm7OCCF/LNI5PLUoqoSWmrtGyFBxCnFy4GyGJiJMJgXaobTJ5L+ J8SGsCU2LRxB6obam1m0YSk/il6tWPY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702401708; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EYeLNxxcRpZBsoYcrMasPjbq5v48kbxiKxQZBxiyMNE=; b=YM4XbS5lkmKbHQVNKll196bMoyPlGmz2ELvMPlffWShv6p6u4OQOeQ2xJuu1jFxRrD234L nEy0p6O0P/2gjxCQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1702401706; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EYeLNxxcRpZBsoYcrMasPjbq5v48kbxiKxQZBxiyMNE=; b=r8qTDk+GdcbEkYv8KEIw/zD5dtgvE4xb7BhzW3ls/XNQhoEFKqq63m8p7dtkpGzdMEFqJY mCKCjLyqbgdfPG4AIPAElSrNt2Byqf/pRl2diFlM/Cj5v0iu42ES8XOSoU5pFnTOPI1ZQC 63sJybP1cFTNgmhGw9fo4KF+iXA8XYc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1702401706; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EYeLNxxcRpZBsoYcrMasPjbq5v48kbxiKxQZBxiyMNE=; b=n3JMvRKNUuh0UZWuqTFyXdpFNaMFZ81h9bnUETg7gj/146SIhjqFosNgK23PZZaaPwzaaw AtHOxDvFIkEyoyBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C9DC1136C7; Tue, 12 Dec 2023 17:21:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id jqmsMKqWeGXvOQAAD6G6ig (envelope-from <vbabka@suse.cz>); Tue, 12 Dec 2023 17:21:46 +0000 From: Vlastimil Babka <vbabka@suse.cz> Date: Tue, 12 Dec 2023 18:21:43 +0100 Subject: [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231212-accept_memory_param-v1-1-a9012402b887@suse.cz> X-B4-Tracking: v=1; b=H4sIAKaWeGUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDI0Mj3cTk5NSCkvjc1Nz8osr4gsSixFxdk0TzxJRk01RTUwsjJaDOgqL UtMwKsKnRsbW1AJp1SqRlAAAA To: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>, Vlastimil Babka <vbabka@suse.cz> X-Mailer: b4 0.12.4 X-Spam-Level: X-Spam-Score: -1.42 Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -1.40 X-Spamd-Result: default: False [-1.40 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_HAM(-0.10)[64.97%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[6]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-0.999]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:email,intel.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:22:12 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785097603426795960 X-GMAIL-MSGID: 1785097603426795960 |
Series |
Documentation, mm/unaccepted: document accept_memory kernel parameter
|
|
Commit Message
Vlastimil Babka
Dec. 12, 2023, 5:21 p.m. UTC
The accept_memory kernel parameter was added in commit dcdfdd40fa82
("mm: Add support for unaccepted memory") but not listed in the
kernel-parameters doc. Add it there.
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
---
Documentation/admin-guide/kernel-parameters.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
---
base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9
change-id: 20231212-accept_memory_param-4a7adc5e5582
Best regards,
Comments
On Tue, Dec 12, 2023 at 06:21:43PM +0100, Vlastimil Babka wrote: > The accept_memory kernel parameter was added in commit dcdfdd40fa82 > ("mm: Add support for unaccepted memory") but not listed in the > kernel-parameters doc. Add it there. > > Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
On Tue, 2023-12-12 at 18:21 +0100, Vlastimil Babka wrote: > The accept_memory kernel parameter was added in commit dcdfdd40fa82 > ("mm: Add support for unaccepted memory") but not listed in the > kernel-parameters doc. Add it there. > > Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> > Signed-off-by: Vlastimil Babka <vbabka@suse.cz> > --- > Documentation/admin-guide/kernel-parameters.txt | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 65731b060e3f..3a4ebb46073c 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -1,3 +1,13 @@ > + accept_memory= [MM] > + Format: { eager | lazy } > + default: lazy > + By default, unaccepted memory is accepted lazily to > + avoid prolonged boot at the cost of some runtime Suggest rephrasing this line. Breaking up long line makes reading easier. avoid prolonged boot. The lazy option will add some runtime Thanks. Tim > + overhead until all memory is eventually accepted. In > + most cases the overhead is negligible but for some > + workloads or for debugging purposes accept_memory=eager > + can be used to accept all memory at once during boot. > + > acpi= [HW,ACPI,X86,ARM64,RISCV64] > Advanced Configuration and Power Interface > Format: { force | on | off | strict | noirq | rsdt | > > --- > base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 > change-id: 20231212-accept_memory_param-4a7adc5e5582 > > Best regards,
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 65731b060e3f..3a4ebb46073c 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -1,3 +1,13 @@ + accept_memory= [MM] + Format: { eager | lazy } + default: lazy + By default, unaccepted memory is accepted lazily to + avoid prolonged boot at the cost of some runtime + overhead until all memory is eventually accepted. In + most cases the overhead is negligible but for some + workloads or for debugging purposes accept_memory=eager + can be used to accept all memory at once during boot. + acpi= [HW,ACPI,X86,ARM64,RISCV64] Advanced Configuration and Power Interface Format: { force | on | off | strict | noirq | rsdt |