Output when running the testcase from the command line. sudo ./min_free_k min_free_kbytes 0 TINFO : set overcommit_memory to 2 min_free_kbytes 0 TINFO : set min_free_kbytes to 3624 memfree is 2976072 kB before eatup mem memfree is 80376 kB after eatup mem min_free_kbytes 0 TINFO : set min_free_kbytes to 1513804 [ 386.395436] Out of memory: Kill process 266 (upstart-udev-br) score 1 or sacrifice child [ 386.403632] Killed process 266 (upstart-udev-br) total-vm:1960kB, anon-rss:0kB, file-rss:0kB [ 386.555048] Out of memory: Kill process 424 (upstart-socket-) score 1 or sacrifice child [ 386.563195] Killed process 424 (upstart-socket-) total-vm:1892kB, anon-rss:0kB, file-rss:0kB [ 386.724271] Out of memory: Kill process 469 (dhclient3) score 1 or sacrifice child [ 386.731900] Killed process 469 (dhclient3) total-vm:1884kB, anon-rss:0kB, file-rss:0kB [ 387.914502] Out of memory: Kill process 669 (dbus-daemon) score 1 or sacrifice child [ 387.922307] Killed process 669 (dbus-daemon) total-vm:2324kB, anon-rss:0kB, file-rss:0kB [ 388.913183] Out of memory: Kill process 677 (rsyslogd) score 1 or sacrifice child [ 388.920719] Killed process 677 (rsyslogd) total-vm:30204kB, anon-rss:40kB, file-rss:100kB [ 388.984618] Out of memory: Kill process 690 (rs:main Q:Reg) score 1 or sacrifice child [ 388.992595] Killed process 690 (rs:main Q:Reg) total-vm:30204kB, anon-rss:240kB, file-rss:160kB [ 389.332725] Out of memory: Kill process 729 (getty) score 1 or sacrifice child [ 389.340002] Killed process 729 (getty) total-vm:3836kB, anon-rss:0kB, file-rss:8kB [ 389.912061] Out of memory: Kill process 738 (getty) score 1 or sacrifice child [ 389.919332] Killed process 738 (getty) total-vm:3836kB, anon-rss:0kB, file-rss:8kB [ 390.862432] Out of memory: Kill process 748 (getty) score 1 or sacrifice child [ 390.869715] Killed process 748 (getty) total-vm:3836kB, anon-rss:0kB, file-rss:8kB [ 391.033211] Out of memory: Kill process 751 (getty) score 1 or sacrifice child [ 391.040482] Killed process 751 (getty) total-vm:3836kB, anon-rss:0kB, file-rss:8kB [ 391.156255] Out of memory: Kill process 756 (getty) score 1 or sacrifice child [ 391.163504] Killed process 756 (getty) total-vm:3836kB, anon-rss:0kB, file-rss:8kB [ 391.276823] Out of memory: Kill process 768 (cron) score 1 or sacrifice child [ 391.283986] Killed process 768 (cron) total-vm:1836kB, anon-rss:0kB, file-rss:0kB [ 391.378061] Out of memory: Kill process 769 (atd) score 1 or sacrifice child [ 391.385146] Killed process 769 (atd) total-vm:1708kB, anon-rss:0kB, file-rss:0kB [ 391.496240] Out of memory: Kill process 772 (acpid) score 1 or sacrifice child [ 391.503489] Killed process 772 (acpid) total-vm:1328kB, anon-rss:0kB, file-rss:4kB [ 392.063055] Out of memory: Kill process 774 (irqbalance) score 1 or sacrifice child [ 392.070760] Killed process 774 (irqbalance) total-vm:2600kB, anon-rss:52kB, file-rss:172kB [ 392.132300] Out of memory: Kill process 781 (whoopsie) score 1 or sacrifice child [ 392.139831] Killed process 781 (whoopsie) total-vm:20500kB, anon-rss:252kB, file-rss:680kB [ 392.901843] Out of memory: Kill process 785 (getty) score 1 or sacrifice child [ 392.909115] Killed process 785 (getty) total-vm:3836kB, anon-rss:0kB, file-rss:8kB [ 393.981540] Out of memory: Kill process 787 (login) score 1 or sacrifice child [ 393.988817] Killed process 919 (bash) total-vm:9120kB, anon-rss:4kB, file-rss:16kB [ 394.912544] Out of memory: Kill process 787 (login) score 1 or sacrifice child [ 394.919819] Killed process 787 (login) total-vm:2808kB, anon-rss:68kB, file-rss:144kB [ 395.945755] Out of memory: Kill process 1060 (sudo) score 1 or sacrifice child [ 395.953027] Killed process 1061 (min_free_kbytes) total-vm:1352kB, anon-rss:48kB, file-rss:132kB [ 396.851644] Kernel panic - not syncing: Out of memory and no killable processes... [ 396.851650] [ 396.860778] [] (unwind_backtrace+0x0/0xec) from [] (dump_stack+0x20/0x24) [ 396.869350] [] (dump_stack+0x20/0x24) from [] (panic+0x64/0x19c) [ 396.877141] [] (panic+0x64/0x19c) from [] (out_of_memory+0x140/0x224) [ 396.885355] [] (out_of_memory+0x140/0x224) from [] (__alloc_pages_nodemask+0x5c0/0x75c) [ 396.895146] [] (__alloc_pages_nodemask+0x5c0/0x75c) from [] (kmem_getpages.isra.34+0x3c/0xc0) [ 396.905459] [] (kmem_getpages.isra.34+0x3c/0xc0) from [] (cache_grow.constprop.36+0x98/0x208) [ 396.915771] [] (cache_grow.constprop.36+0x98/0x208) from [] (cache_alloc_refill+0x23c/0x290) [ 396.925997] [] (cache_alloc_refill+0x23c/0x290) from [] (kmem_cache_alloc+0x80/0x12c) [ 396.935611] [] (kmem_cache_alloc+0x80/0x12c) from [] (getname_flags+0x30/0x114) [ 396.944703] [] (getname_flags+0x30/0x114) from [] (getname+0x20/0x24) [ 396.952922] [] (getname+0x20/0x24) from [] (do_sys_open+0xb8/0x1e0) [ 396.960968] [] (do_sys_open+0xb8/0x1e0) from [] (sys_open+0x30/0x34) [ 396.969104] [] (sys_open+0x30/0x34) from [] (ret_fast_syscall+0x0/0x30) [ 396.977500] CPU1: stopping [ 396.980232] [] (unwind_backtrace+0x0/0xec) from [] (dump_stack+0x20/0x24) [ 396.988790] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x104/0x188) [ 396.997086] [] (handle_IPI+0x104/0x188) from [] (do_IPI+0x18/0x1c) [ 397.005038] [] (do_IPI+0x18/0x1c) from [] (__irq_svc+0x34/0x100) [ 397.012806] Exception stack(0xf20d1c58 to 0xf20d1ca0) [ 397.017873] 1c40: 00000000 00000000 [ 397.026080] 1c60: 00000000 00000000 f20be540 f20e07a0 00000000 00000000 00000000 00000004 [ 397.034287] 1c80: c0a755b0 f20d1d74 00000002 f20d1ca0 c0057dc8 c0057dfc 60070113 ffffffff [ 397.042497] [] (__irq_svc+0x34/0x100) from [] (find_busiest_group+0x260/0x804) [ 397.051490] [] (find_busiest_group+0x260/0x804) from [] (load_balance+0xa4/0x3d4) [ 397.060743] [] (load_balance+0xa4/0x3d4) from [] (rebalance_domains+0xfc/0x194) [ 397.069822] [] (rebalance_domains+0xfc/0x194) from [] (nohz_idle_balance+0xa0/0x10c) [ 397.079337] [] (nohz_idle_balance+0xa0/0x10c) from [] (run_rebalance_domains+0x58/0x64) [ 397.089115] [] (run_rebalance_domains+0x58/0x64) from [] (__do_softirq+0x11c/0x230) [ 397.098542] [] (__do_softirq+0x11c/0x230) from [] (irq_exit+0x58/0xa8) [ 397.106837] [] (irq_exit+0x58/0xa8) from [] (scheduler_ipi+0xf8/0x104) [ 397.115133] [] (scheduler_ipi+0xf8/0x104) from [] (handle_IPI+0xc4/0x188) [ 397.123689] [] (handle_IPI+0xc4/0x188) from [] (do_IPI+0x18/0x1c) [ 397.131549] [] (do_IPI+0x18/0x1c) from [] (__irq_svc+0x34/0x100) [ 397.139316] Exception stack(0xf20d1f18 to 0xf20d1f60) [ 397.144385] 1f00: 0006c950 00001f40 [ 397.152592] 1f20: 00000000 50218fac c2ac8180 00000000 00000000 00000000 c0a810cc 562f5842 [ 397.160799] 1f40: 00000001 f20d1f84 1a826270 f20d1f60 c0089558 c0046964 20070013 ffffffff [ 397.169013] [] (__irq_svc+0x34/0x100) from [] (armadaxp_enter_idle+0x78/0xac) [ 397.177924] [] (armadaxp_enter_idle+0x78/0xac) from [] (cpuidle_idle_call+0x17c/0x2c4) [ 397.187616] [] (cpuidle_idle_call+0x17c/0x2c4) from [] (cpu_idle+0x88/0xdc) [ 397.196348] [] (cpu_idle+0x88/0xdc) from [] (secondary_start_kernel+0x130/0x154) [ 397.205513] [] (secondary_start_kernel+0x130/0x154) from [<006ced94>] (0x6ced94) [ 397.213806] CPU2: stopping [ 397.216535] [] (unwind_backtrace+0x0/0xec) from [] (dump_stack+0x20/0x24) [ 397.225092] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x104/0x188) [ 397.233387] [] (handle_IPI+0x104/0x188) from [] (do_IPI+0x18/0x1c) [ 397.241336] [] (do_IPI+0x18/0x1c) from [] (__irq_svc+0x34/0x100) [ 397.249103] Exception stack(0xef515b10 to 0xef515b58) [ 397.254172] 5b00: c0b7454c 800f0013 00000000 00000001 [ 397.262380] 5b20: c0b7454c ef41f000 ef41f000 00000001 00000000 ef515cc0 00000000 ef515b6c [ 397.270585] 5b40: ef515b58 ef515b58 c012ac40 c012ac40 600f0013 ffffffff [ 397.277228] [] (__irq_svc+0x34/0x100) from [] (put_super+0x24/0x48) [ 397.285262] [] (put_super+0x24/0x48) from [] (drop_super+0x28/0x2c) [ 397.293296] [] (drop_super+0x28/0x2c) from [] (prune_super+0x158/0x164) [ 397.301681] [] (prune_super+0x158/0x164) from [] (shrink_slab+0xa8/0x33c) [ 397.310239] [] (shrink_slab+0xa8/0x33c) from [] (do_try_to_free_pages+0x174/0x2e0) [ 397.319580] [] (do_try_to_free_pages+0x174/0x2e0) from [] (try_to_free_pages+0xdc/0x140) [ 397.329446] [] (try_to_free_pages+0xdc/0x140) from [] (__alloc_pages_nodemask+0x4a0/0x75c) [ 397.339484] [] (__alloc_pages_nodemask+0x4a0/0x75c) from [] (find_or_create_page+0x50/0x94) [ 397.349615] [] (find_or_create_page+0x50/0x94) from [] (grow_dev_page+0x44/0x170) [ 397.358869] [] (grow_dev_page+0x44/0x170) from [] (__getblk_slow+0x138/0x194) [ 397.367774] [] (__getblk_slow+0x138/0x194) from [] (__getblk+0x4c/0x54) [ 397.376161] [] (__getblk+0x4c/0x54) from [] (jbd2_journal_get_descriptor_buffer+0x44/0xa4) [ 397.386199] [] (jbd2_journal_get_descriptor_buffer+0x44/0xa4) from [] (jbd2_journal_commit_transaction+0x534/0x1140) [ 397.398501] [] (jbd2_journal_commit_transaction+0x534/0x1140) from [] (kjournald2+0xc8/0x248) [ 397.408803] [] (kjournald2+0xc8/0x248) from [] (kthread+0x98/0xa0) [ 397.416753] [] (kthread+0x98/0xa0) from [] (kernel_thread_exit+0x0/0x8) [ 397.425132] CPU0: stopping [ 397.427861] [] (unwind_backtrace+0x0/0xec) from [] (dump_stack+0x20/0x24) [ 397.436419] [] (dump_stack+0x20/0x24) from [] (handle_IPI+0x104/0x188) [ 397.444714] [] (handle_IPI+0x104/0x188) from [] (do_IPI+0x18/0x1c) [ 397.452662] [] (do_IPI+0x18/0x1c) from [] (__irq_svc+0x34/0x100) [ 397.460429] Exception stack(0xc0a73ef0 to 0xc0a73f38) [ 397.465498] 3ee0: 0006c957 00001f40 00000000 50218fac [ 397.473704] 3f00: c2ac0180 00000000 00000000 00000000 c0a810cc 562f5842 00000000 c0a73f5c [ 397.481909] 3f20: 1a827d40 c0a73f38 c0089558 c0046964 200f0013 ffffffff [ 397.488554] [] (__irq_svc+0x34/0x100) from [] (armadaxp_enter_idle+0x78/0xac) [ 397.497461] [] (armadaxp_enter_idle+0x78/0xac) from [] (cpuidle_idle_call+0x17c/0x2c4) [ 397.507152] [] (cpuidle_idle_call+0x17c/0x2c4) from [] (cpu_idle+0x88/0xdc) [ 397.515884] [] (cpu_idle+0x88/0xdc) from [] (rest_init+0x6c/0x84) [ 397.523748] [] (rest_init+0x6c/0x84) from [] (start_kernel+0x2f0/0x350)