Skip to contentSkip to conversation

Documentation, mm/unaccepted: document accept_memory kernel parameter

PATCH Applied Vlastimil Babka 2 participants 3 messages Dec 14, 2023 – Dec 15, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Documentation, mm/unaccepted: document accept_memory kernel parameter

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.

---
changes since v1:
- use shorter sentences (Tim Chen)

---
 Documentation/admin-guide/kernel-parameters.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +11 -0
index 65731b060e3f..91bd74b2e203 100644
@@ -1,3 +1,14 @@
+	accept_memory=  [MM]
+			Format: { eager | lazy }
+			default: lazy
+			By default, unaccepted memory is accepted lazily to
+			avoid prolonged boot times. The lazy option will add
+			some runtime overhead until all memory is eventually
+			accepted. In most cases the overhead is negligible.
+			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: 20231214-accept_memory_param-af395e3a2d45

Best regards,

Signature · 1 line
Vlastimil Babka <[email protected]>
#1 lore raw

+CC linux-mm

Quoted 38 lines · 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.

---
changes since v1:
- use shorter sentences (Tim Chen)

---
 Documentation/admin-guide/kernel-parameters.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +11 -1
index 65731b060e3f..91bd74b2e203 100644
@@ -1,3 +1,14 @@
+	accept_memory=  [MM]
+			Format: { eager | lazy }
+			default: lazy
+			By default, unaccepted memory is accepted lazily to
+			avoid prolonged boot times. The lazy option will add
+			some runtime overhead until all memory is eventually
+			accepted. In most cases the overhead is negligible.
+			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: 20231214-accept_memory_param-af395e3a2d45

Best regards,

maintainer Applied
#2 lore raw
In reply to Vlastimil Babka
Quoted 19 lines · 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.

---
changes since v1:
- use shorter sentences (Tim Chen)

---
 Documentation/admin-guide/kernel-parameters.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +1 -0
index 65731b060e3f..91bd74b2e203 100644
@@ -1,3 +1,14 @@
+	accept_memory=  [MM]

Documentation/admin-guide/kernel-parameters.txt line 11

Quoted 10 lines
Documentation/admin-guide/kernel-parameters.txt +10 -0
+			Format: { eager | lazy }
+			default: lazy
+			By default, unaccepted memory is accepted lazily to
+			avoid prolonged boot times. The lazy option will add
+			some runtime overhead until all memory is eventually
+			accepted. In most cases the overhead is negligible.
+			For some workloads or for debugging purposes
+			accept_memory=eager can be used to accept all memory
+			at once during boot.
+

Applied, thanks.

jon