Commit 2b6f34b
Pingfan Liu
kdump-lib: Extend _crashkernel_add() with a param
Currently, crashkernel_add() adjusts each range in the 'crashkernel='
command line by adding a delta value. This adjustment is necessary
because certain hardware features require significant additional memory
(up to 1GB on some ARM64 machines).
While this approach works well for traditional installations, OSTree
deployments present a challenge: kdump cannot detect the hardware
environment on the target platform. One solution is to maximize the
memory reserved for the kdump kernel. However, while this increased
allocation ensures kdump functionality, it raises the risk of OOM
conditions in the production kernel, particularly on small-memory
machines that typically lack such hardware features (Mellanox network
cards, SMMU, SME).
This patch extends crashkernel_add() with a parameter
to skip the first N ranges in the 'crashkernel=' command line. Later, we
can use it to skip the first range.
Signed-off-by: Pingfan Liu <[email protected]>1 parent 063548f commit 2b6f34b
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
972 | 973 | | |
973 | 974 | | |
974 | | - | |
| 975 | + | |
975 | 976 | | |
| 977 | + | |
976 | 978 | | |
977 | 979 | | |
978 | 980 | | |
| 981 | + | |
979 | 982 | | |
980 | 983 | | |
981 | 984 | | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
982 | 990 | | |
983 | 991 | | |
984 | 992 | | |
| |||
0 commit comments