# supervisorctl stop all unix:///var/run/supervisor.sock no such file # dmesg -T [Thu Jun 6 00:53:53 2024] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/supervisor.service,task=python3,pid=1823,uid=0 [Thu Jun 6 00:53:53 2024] Out of memory: Killed process 1823 (python3) total-vm:2665068kB, anon-rss:1624352kB, file-rss:4kB, shmem-rss:0kB, UID:0 pgtables:5104kB oom_score_adj:0 # cat supervisor/supervisord.log 2024-06-06 00:59:31,736 WARN exited: cat (terminated by SIGKILL; not expected) 2024-06-06 00:59:31,839 INFO spawned: 'cat' with pid 1916 2024-06-06 00:59:32,842 INFO success: cat entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2024-06-06 01:00:09,418 WARN exited: cat (terminated by SIGKILL; not expected) 2024-06-06 01:00:09,486 INFO spawned: 'cat' with pid 1934 2024-06-06 01:00:10,170 INFO waiting for cat to die 2024-06-06 01:00:11,187 WARN stopped: cat (terminated by SIGTERM)
<listitem><para>Configure the default policy for reacting to processes being killed by the Linux Out-Of-Memory (OOM) killer or <command>systemd-oomd</command>. This may be used to pick a global default for the per-unit <varname>OOMPolicy=</varname> setting. See <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry> for details. Note that this default is not used for services that have <varname>Delegate=</varname> turned on.</para>
/* On 4.15+ with unified hierarchy, CPU accounting is essentially free as it doesn't require the CPU * controller to be enabled, so the default is to enable it unless we got told otherwise. */ .cpu_accounting = cpu_accounting_is_cheap(), .memory_accounting = MEMORY_ACCOUNTING_DEFAULT, .io_accounting = false, .blockio_accounting = false, .tasks_accounting = true, .ip_accounting = false,
.oom_policy = OOM_STOP, .oom_score_adjust_set = false, }; } typedefenumOOMPolicy { OOM_CONTINUE, /* The kernel or systemd-oomd kills the process it wants to kill, and that's it */ OOM_STOP, /* The kernel or systemd-oomd kills the process it wants to kill, and we stop the unit */ OOM_KILL, /* The kernel or systemd-oomd kills the process it wants to kill, and all others in the unit, and we stop the unit */ _OOM_POLICY_MAX, _OOM_POLICY_INVALID = -EINVAL, } OOMPolicy;