[systemd-devel] Antw: Re: Antw: [EXT] Re: Memory in systemctl status
Reindl Harald
h.reindl at thelounge.net
Wed Sep 30 09:12:16 UTC 2020
Am 30.09.20 um 11:04 schrieb Ulrich Windl:
>>>> Reindl Harald <h.reindl at thelounge.net> schrieb am 30.09.2020 um 10:56 in
> Nachricht <a4f1a092-0946-d61e-f486-3fe3e2d34086 at thelounge.net>:
>
>>
>> Am 30.09.20 um 09:06 schrieb Ulrich Windl:
>>>> my webserver is killed because it served at monday, tuesday, thursday
>>>> and friday 4 different files with 2 GB?
>>>
>>> cgroups is for limiting resources, not for killing processes AFAIK
>>
>> [Service]
>> MemoryMax=4G
>>
>> would call OOM killer
>
> Are you sure? I thought OOM is called when the _system_ memory is exhausted.
> IMHO any memory allocation request to the process will be denied, but the
> process wouldn't be killed. But agreed, I didn't track the cgroups changes in
> the last few years.
hell yes i am sure beause the line is from the development machine of my
co-worker who managed an andless recursion in a php script eating a
piece of memory on each iteration
after adding that httpd.service got killed by OOM killer instead bring
the whole machine with 16 GB down
More information about the systemd-devel
mailing list