Skip to content

Commit 55a13db

Browse files
committed
[fadump] Update crashkernel recommendation
The crashkernel values for fadump is revised. This patch updates the crashkernel reservation table in fadump plugin. https://www.suse.com/support/kb/doc/?id=000019287 https://src.fedoraproject.org/rpms/kexec-tools/blob/rawhide/f/fadump-howto.txt https://access.redhat.com/articles/4923921 Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
1 parent f194bb5 commit 55a13db

1 file changed

Lines changed: 11 additions & 20 deletions

File tree

servicereportpkg/validate/plugins/fadump.py

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ def __init__(self):
3737
# (system mem, mem reservation needed)
3838
# (GB, MB)
3939
self.log = get_default_logger()
40-
self.capture_kernel_mem = [(4, 0),
41-
(64, 1024),
42-
(128, 2048),
43-
(1024, 4096),
44-
(2048, 6144),
45-
(4096, 12288),
46-
(8192, 20480),
47-
(16384, 36864),
48-
(32786, 65536),
49-
(65536, 131072),
40+
self.capture_kernel_mem = [(16384, 786),
41+
(65536, 1024),
42+
(131072, 2048),
43+
(1048576, 4096),
44+
(2097152, 6144),
45+
(4194304, 12288),
46+
(8388608, 20480),
47+
(16777216, 36864),
48+
(33554432, 65536),
49+
(67108864, 131072),
5050
(sys.maxsize, 184320)]
5151

5252
@classmethod
@@ -175,7 +175,7 @@ def get_crash_mem_needed(self):
175175
return None
176176

177177
# change from KB to MB
178-
ram = ram / 1024 / 1024
178+
ram = ram / 1024
179179

180180
for (sys_mem, mem_reservation_needed) in self.capture_kernel_mem:
181181
if ram <= sys_mem:
@@ -236,15 +236,6 @@ def __init__(self):
236236
FADump.__init__(self)
237237
self.initial_ramdisk = "/boot/initrd-" \
238238
+ self.kernel_release
239-
self.capture_kernel_mem = [(32768, 512),
240-
(65536, 1024),
241-
(131072, 2048),
242-
(1048576, 4096),
243-
(2097152, 6144),
244-
(4194304, 12288),
245-
(8388608, 20480),
246-
(16777216, 32768),
247-
(sys.maxsize, 65536)]
248239

249240
def check_kdump_sysconfig(self):
250241
"""Fadump attributes in /etc/sysconfig/kdump"""

0 commit comments

Comments
 (0)