diff options
| author | Ma Wupeng <[email protected]> | 2023-08-02 15:23:28 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-08-21 13:37:43 -0700 |
| commit | 0db31d63f27e5b8ca84b9fd5a3cff5b12ac88abf (patch) | |
| tree | 55ba23028df34aaf9829cbbdb0f3cbe7a92d47d4 /tools/perf/scripts/python/compaction-times.py | |
| parent | 18c59d58baa60a8bfaec58d29b6b94877664eed8 (diff) | |
mm: disable kernelcore=mirror when no mirror memory
For system with kernelcore=mirror enabled while no mirrored memory is
reported by efi. This could lead to kernel OOM during startup since all
memory beside zone DMA are in the movable zone and this prevents the
kernel to use it.
Zone DMA/DMA32 initialization is independent of mirrored memory and their
max pfn is set in zone_sizes_init(). Since kernel can fallback to zone
DMA/DMA32 if there is no memory in zone Normal, these zones are seen as
mirrored memory no mather their memory attributes are.
To solve this problem, disable kernelcore=mirror when there is no real
mirrored memory exists.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ma Wupeng <[email protected]>
Suggested-by: Kefeng Wang <[email protected]>
Suggested-by: Mike Rapoport <[email protected]>
Reviewed-by: Mike Rapoport (IBM) <[email protected]>
Reviewed-by: Kefeng Wang <[email protected]>
Cc: Levi Yun <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions