Commit 1285d76
committed
powerpc: consider CPU count while calculating crashkernel value
The next patch in the series adds more CPUs to the capture kernel,
which increases the memory requirement for the capture kernel.
Experiments show that powerpc needs 1 MB of additional memory for every
CPU added.
Therefore, while calculating the crashkernel size, make sure to include
an additional 1 MB for every CPU configured in the capture kernel.
The changes are implemented in such a way that if the user changes the
nr_cpus value in the kdump configuration, the script will adapt
accordingly.
If other architectures decide to enable more CPUs in the kdump kernel,
then defining the _pcpu_area variable in
kdump_get_arch_recommend_crashkernel()/kdump-lib.sh function will be
sufficient for this solution.
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>1 parent 063548f commit 1285d76
2 files changed
+32
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| 1003 | + | |
1003 | 1004 | | |
1004 | 1005 | | |
1005 | 1006 | | |
1006 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
1007 | 1010 | | |
1008 | 1011 | | |
1009 | 1012 | | |
| |||
1047 | 1050 | | |
1048 | 1051 | | |
1049 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1050 | 1056 | | |
1051 | 1057 | | |
1052 | 1058 | | |
| |||
1059 | 1065 | | |
1060 | 1066 | | |
1061 | 1067 | | |
| 1068 | + | |
1062 | 1069 | | |
1063 | 1070 | | |
1064 | 1071 | | |
| 1072 | + | |
1065 | 1073 | | |
1066 | 1074 | | |
1067 | 1075 | | |
1068 | 1076 | | |
1069 | 1077 | | |
1070 | 1078 | | |
1071 | | - | |
| 1079 | + | |
1072 | 1080 | | |
1073 | 1081 | | |
1074 | 1082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
150 | 165 | | |
151 | 166 | | |
152 | 167 | | |
| |||
1360 | 1375 | | |
1361 | 1376 | | |
1362 | 1377 | | |
1363 | | - | |
| 1378 | + | |
1364 | 1379 | | |
1365 | 1380 | | |
1366 | 1381 | | |
| |||
1456 | 1471 | | |
1457 | 1472 | | |
1458 | 1473 | | |
1459 | | - | |
| 1474 | + | |
1460 | 1475 | | |
1461 | 1476 | | |
1462 | 1477 | | |
| |||
1651 | 1666 | | |
1652 | 1667 | | |
1653 | 1668 | | |
1654 | | - | |
| 1669 | + | |
1655 | 1670 | | |
1656 | 1671 | | |
1657 | 1672 | | |
| |||
1675 | 1690 | | |
1676 | 1691 | | |
1677 | 1692 | | |
1678 | | - | |
| 1693 | + | |
1679 | 1694 | | |
1680 | 1695 | | |
1681 | 1696 | | |
| |||
1688 | 1703 | | |
1689 | 1704 | | |
1690 | 1705 | | |
1691 | | - | |
| 1706 | + | |
1692 | 1707 | | |
1693 | 1708 | | |
1694 | | - | |
| 1709 | + | |
1695 | 1710 | | |
1696 | 1711 | | |
1697 | 1712 | | |
| |||
1730 | 1745 | | |
1731 | 1746 | | |
1732 | 1747 | | |
1733 | | - | |
| 1748 | + | |
1734 | 1749 | | |
1735 | 1750 | | |
1736 | 1751 | | |
| |||
1981 | 1996 | | |
1982 | 1997 | | |
1983 | 1998 | | |
| 1999 | + | |
1984 | 2000 | | |
1985 | 2001 | | |
1986 | 2002 | | |
| |||
0 commit comments