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

Submitted by Dmitry Safonov on Dec. 12, 2016, 4:46 p.m.

Details

Message ID 20161212164642.1608-1-dsafonov@virtuozzo.com
State New
Series "kexec: reserve 256+64 = 320M for debug kernels"
Headers show

Commit Message

Dmitry Safonov Dec. 12, 2016, 4:46 p.m.
It succeed on 256M kdumping, but fires OOM - set 320M limit.

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

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

Patch hide | download patch | download mbox

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

Comments

Andrey Ryabinin Dec. 13, 2016, 11:50 a.m.
On 12/12/2016 07:46 PM, Dmitry Safonov wrote:
> It succeed on 256M kdumping, but fires OOM - set 320M limit.
> 
> https://jira.sw.ru/browse/PSBM-56847
> 
> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
> Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>

Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>