On 14.04.2025 14:41, Ilija Tovilo wrote:
> One open question is whether exceeding the max_memory_limit should
> also set memory_limit to max_memory_limit in addition to warning,
> giving the subsequent operation a higher chance not to straight out
> OOM error. Let me know if you have a preference in that regard.
I'd say absolutely yes it should respect the requested memory limit as
much as possible.
Especially when setting memory_limit to -1 you'd definitely want this to
mean "use the max allowed memory limit" and perhaps even skip the
warning in that case as it's not a very specific request for a memory
amount.
Best,
Jordi
--
Jordi Boggiano
@seldaek -https://seld.be