You can reproduce a kernel oom-kill of a specific progress using oom_adj and the magic-sysrq hotkey or file.
For example, to make pid $pid get oomkilled, you can do the following: $ echo 1000 | sudo tee /proc/$pid/oom_score_adj $ echo f | sudo tee /proc/sysrq-trigger This assumes you haven't adjusted the oom score for any other pids significantly up (unlikely) and that you have CONFIG_MAGIC_SYSRQ in your kernel (very likely). Another way to do it would be to run the process in a specific cgroup (e.g. with cgexec) and enforce a very low memory limit on that cgroup, and that's probably a bit more robust though also a little more complicated. -- You received this message because you are subscribed to the Google Groups "Perkeep" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
