Skip to contentSkip to conversation

Documentation: kdump: Clarify the default size of memory reserved by crashkernel low

PATCH In review Pingfan Liu 2 participants 3 messages Dec 18, 2023 – Jan 16, 2024

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

PATCH 1/1 Documentation: kdump: Clarify the default size of memory reserved by crashkernel low

From: Pingfan Liu <[email protected]>

The default size reserved for crashkernel=,low is decided by the macro DEFAULT_CRASH_KERNEL_LOW_SIZE, which is based on arch.

Cc Baoquan He <[email protected]>
Cc Dave Young <[email protected]>

To: [email protected]
To: [email protected]

---
 Documentation/admin-guide/kdump/kdump.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kdump/kdump.rst +3 -2
index 5762e7477a0c..a021ff155012 100644
@@ -310,8 +310,9 @@ crashkernel syntax
    region above 4G, low memory under 4G is needed in this case. There are
    three ways to get low memory:
 
-      1) Kernel will allocate at least 256M memory below 4G automatically
-         if crashkernel=Y,low is not specified.
+      1) Kernel will allocate a chunk of default size memory, which is based on
+         architecture, below 4G automatically if crashkernel=Y,low is not
+         specified.
       2) Let user specify low memory size instead.
       3) Specified value 0 will disable low memory allocation::
 
Signature · 1 line
2.31.1
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Pingfan Liu

From: Pingfan Liu <[email protected]>

The default size reserved for crashkernel=,low is decided by the macro DEFAULT_CRASH_KERNEL_LOW_SIZE, which is based on arch.

Cc Baoquan He <[email protected]>
Cc Dave Young <[email protected]>

To: [email protected]
To: [email protected]

---
 Documentation/admin-guide/kdump/kdump.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kdump/kdump.rst +0 -0
index 5762e7477a0c..a021ff155012 100644

Documentation/admin-guide/kdump/kdump.rst crashkernel syntax · line 315

Quoted 8 lines
Documentation/admin-guide/kdump/kdump.rst +3 -2
@@ -310,8 +310,9 @@ crashkernel syntax
    region above 4G, low memory under 4G is needed in this case. There are
    three ways to get low memory:
 
-      1) Kernel will allocate at least 256M memory below 4G automatically
-         if crashkernel=Y,low is not specified.
+      1) Kernel will allocate a chunk of default size memory, which is based on
+         architecture, below 4G automatically if crashkernel=Y,low is not
+         specified.

Good catch, thx.

Quoted 6 lines
Documentation/admin-guide/kdump/kdump.rst +0 -0
       2) Let user specify low memory size instead.
       3) Specified value 0 will disable low memory allocation::
 
Signature · 1 line
2.31.1
#2 lore raw
In reply to Pingfan Liu

Hi Jonathan, Andrew,

Quoted 19 lines · Pingfan Liu

From: Pingfan Liu <[email protected]>

The default size reserved for crashkernel=,low is decided by the macro DEFAULT_CRASH_KERNEL_LOW_SIZE, which is based on arch.

Cc Baoquan He <[email protected]>
Cc Dave Young <[email protected]>

To: [email protected]
To: [email protected]

---
 Documentation/admin-guide/kdump/kdump.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/admin-guide/kdump/kdump.rst +0 -0
index 5762e7477a0c..a021ff155012 100644

Documentation/admin-guide/kdump/kdump.rst crashkernel syntax · line 315

Quoted 8 lines
Documentation/admin-guide/kdump/kdump.rst +3 -2
@@ -310,8 +310,9 @@ crashkernel syntax
    region above 4G, low memory under 4G is needed in this case. There are
    three ways to get low memory:
 
-      1) Kernel will allocate at least 256M memory below 4G automatically
-         if crashkernel=Y,low is not specified.
+      1) Kernel will allocate a chunk of default size memory, which is based on
+         architecture, below 4G automatically if crashkernel=Y,low is not
+         specified.

This is a good catch in the obsolete section. Could any of you help take this?

Thanks
Baoquan

Quoted 6 lines
Documentation/admin-guide/kdump/kdump.rst +0 -0
       2) Let user specify low memory size instead.
       3) Specified value 0 will disable low memory allocation::
 
Signature · 1 line
2.31.1