linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter
@ 2023-12-12 17:21 Vlastimil Babka
  2023-12-12 22:40 ` Kirill A. Shutemov
  2023-12-12 23:10 ` Tim Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Vlastimil Babka @ 2023-12-12 17:21 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: linux-doc, linux-kernel, linux-mm, Kirill A. Shutemov, Vlastimil Babka

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
+			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,
-- 
Vlastimil Babka <vbabka@suse.cz>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter
  2023-12-12 17:21 [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter Vlastimil Babka
@ 2023-12-12 22:40 ` Kirill A. Shutemov
  2023-12-12 23:10 ` Tim Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Kirill A. Shutemov @ 2023-12-12 22:40 UTC (permalink / raw)
  To: Vlastimil Babka; +Cc: Jonathan Corbet, linux-doc, linux-kernel, linux-mm

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>

-- 
  Kiryl Shutsemau / Kirill A. Shutemov


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter
  2023-12-12 17:21 [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter Vlastimil Babka
  2023-12-12 22:40 ` Kirill A. Shutemov
@ 2023-12-12 23:10 ` Tim Chen
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Chen @ 2023-12-12 23:10 UTC (permalink / raw)
  To: Vlastimil Babka, Jonathan Corbet
  Cc: linux-doc, linux-kernel, linux-mm, Kirill A. Shutemov

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,



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-12 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-12 17:21 [PATCH] Documentation, mm/unaccepted: document accept_memory kernel parameter Vlastimil Babka
2023-12-12 22:40 ` Kirill A. Shutemov
2023-12-12 23:10 ` Tim Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox