[Devel] [PATCH] kexec: reserve 256+64 = 320M for debug kernels

Dmitry Safonov dsafonov at virtuozzo.com
Mon Dec 12 08:46:42 PST 2016


It succeed on 256M kdumping, but fires OOM - set 320M limit.

https://jira.sw.ru/browse/PSBM-56847

Cc: Andrey Ryabinin <aryabinin at virtuozzo.com>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 include/asm-generic/kexec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-generic/kexec.h b/include/asm-generic/kexec.h
index ab22eaf20423..a4325eb15fc9 100644
--- a/include/asm-generic/kexec.h
+++ b/include/asm-generic/kexec.h
@@ -7,7 +7,7 @@
 #ifndef CONFIG_KASAN
 #define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<27) + (1ULL<<25)) /* 160M */
 #else
-#define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<27) + (1ULL<<26)) /* 196M */
+#define KEXEC_AUTO_RESERVED_SIZE ((1ULL<<28) + (1ULL<<26)) /* 320M */
 #endif
 #endif
 #ifndef KEXEC_AUTO_THRESHOLD
-- 
2.10.2



More information about the Devel mailing list