"echo 1 > /proc/sys/vm/compact_memory" results in kernel panic with "RIP: fragmentation_index+114"
Issue
- During operation, an
echo 1 > /proc/sys/vm/compact_memory
was initiated on the system and resulted in a kernel panic. Vmcore analysis shows the following backtrace:
PID: 5034 TASK: ffff8800371e2ae0 CPU: 1 COMMAND: "bash"
#0 [ffff88007cfb7960] machine_kexec at ffffffff81035b7b
#1 [ffff88007cfb79c0] crash_kexec at ffffffff810c0db2
#2 [ffff88007cfb7a90] oops_end at ffffffff815111d0
#3 [ffff88007cfb7ac0] die at ffffffff8100f19b
#4 [ffff88007cfb7af0] do_trap at ffffffff81510a34
#5 [ffff88007cfb7b50] do_divide_error at ffffffff8100cf7f
#6 [ffff88007cfb7bf0] divide_error at ffffffff8100bdfb
[exception RIP: fragmentation_index+114]
RIP: ffffffff8113a3b2 RSP: ffff88007cfb7ca8 RFLAGS: 00010246
RAX: 00000000003be020 RBX: 000000000000000c RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff880000012c08
RBP: ffff88007cfb7ca8 R8: 0000000000000012 R9: 0000000000000f54
R10: 0000000000000000 R11: 0000000000000c00 R12: ffff880000012840
R13: 00000000ffffffff R14: 000000000000000e R15: ffff880000012840
ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018
#7 [ffff88007cfb7ca0] zone_watermark_ok at ffffffff8111de6f
#8 [ffff88007cfb7cb0] compaction_suitable at ffffffff811623d3
#9 [ffff88007cfb7ce0] compact_zone at ffffffff81162a25
#10 [ffff88007cfb7da0] compact_node at ffffffff8116344c
#11 [ffff88007cfb7e60] sysctl_compaction_handler at ffffffff811634ec
#12 [ffff88007cfb7e80] proc_sys_call_handler at ffffffff811f3097
#13 [ffff88007cfb7ee0] proc_sys_write at ffffffff811f30e4
#14 [ffff88007cfb7ef0] vfs_write at ffffffff81180f98
#15 [ffff88007cfb7f30] sys_write at ffffffff81181891
#16 [ffff88007cfb7f80] system_call_fastpath at ffffffff8100b072
RIP: 00007fcfabe10650 RSP: 00007fff902c1710 RFLAGS: 00010206
RAX: 0000000000000001 RBX: ffffffff8100b072 RCX: 0000000000000400
RDX: 0000000000000002 RSI: 00007fcfac709000 RDI: 0000000000000001
RBP: 00007fcfac709000 R8: 000000000000000a R9: 00007fcfac705700
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000002
R13: 00007fcfac0c2780 R14: 0000000000000002 R15: 00007fcfac0c2780
ORIG_RAX: 0000000000000001 CS: 0033 SS: 002b
Environment
- Red Hat Enterprise Linux 6.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.