]> git.proxmox.com Git - pmg-api.git/commit
config: adjust max_filters calculation to reflect current memory usage
authorMarkus Frank <m.frank@proxmox.com>
Thu, 18 Jan 2024 14:55:32 +0000 (15:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Feb 2024 07:43:10 +0000 (08:43 +0100)
commitb0f049b6674ea574fc3352859a71c54d40603a50
tree33f4c3d78cbb125cc7b297af742e1b9123dc15fc
parent64ba4c0d3dce591519e4f18547929637fcf4fb89
config: adjust max_filters calculation to reflect current memory usage

Change max_filters calculation for systems with recommended memory
setup (>4GB).

The values of 2816 and 150 are based on testing with 4GB, 6GB & 8GB
memory configurations, large and small numbers of added objects and
sending multiple mails simultaneously.

On setups with less memory, it is difficult to completely prevent OOM kills.
So for these setups the calculation remains similar, but a warning is sent.

Related OOM killer problem found in forum:
https://forum.proxmox.com/threads/123531/

Signed-off-by: Markus Frank <m.frank@proxmox.com>
src/PMG/Config.pm