Can I provide you something to test this? I am using a Debian 9 in a LXC container on Proxmox with a very simple systemd script.
(Possible previous email was me with stupid mail account please ignore) Am Samstag, 1. September 2018 20:07:30 UTC+2 schrieb mathieu.lonjaret: > > well ok, but it would be more interesting to be able to reproduce > Niklas system behaviour without any such tricks. > > On Sat, 1 Sep 2018 at 20:01, Euan Kemp <[email protected] <javascript:>> > wrote: > > > > 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] <javascript:>. > > For more options, visit https://groups.google.com/d/optout. > -- 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.
