memory consumption

Barry barry at barrys-emacs.org
Thu Apr 1 09:01:50 EDT 2021


> On 1 Apr 2021, at 13:46, Marco Ippolito <maroloccio at gmail.com> wrote:
>> 
>>>>>> What if you increase the machine's (operating system's) swap space? Does
>>>> that take care of the problem in practice?
>>>>>> I can`t do that because it will affect other containers running on this
>>> host.
>>> In my opinion it may significantly reduce their performance.
>>>> Assuming this a modern linux then you should have control groups that allow
>> you to set limits on memory and swap for each container.
>>>> Are you running with systemd?
>> If their problem is that their memory goes from `<low>` to `<high>` and then
> back down to `<mid>` rather than `<low>`, how could `cgroups` have helped in
> that case?
>> I suspect the high watermark of `<high>` needs to be reachable still and,
> secondly, that a forceful constraint whilst running would crash the container?
>> How else could one approach it?
>
I was responding to the assertion that adding swap to the system would impact other containers.
The solution I have used is to set service/container resource limits to ensure they work as expected.
I was not suggestion this a fix for the memory leak.
Barry


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /