* [pmg-devel] [PATCH pmg-api v2] config: adjust max_filters calculation to reflect current memory usage
@ 2024-01-10 14:05 Markus Frank
0 siblings, 0 replies; only message in thread
From: Markus Frank @ 2024-01-10 14:05 UTC (permalink / raw)
To: pmg-devel
One pmg-smtp-filter process uses at least 220 MiB.
By adding more entries into filter objects the memory usage increases
and therefore 230 seems like a good value that reflects
the current memory usage of one filter process.
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PMG/Config.pm b/src/PMG/Config.pm
index 7339e0d..7bb2bd6 100644
--- a/src/PMG/Config.pm
+++ b/src/PMG/Config.pm
@@ -458,7 +458,7 @@ sub get_max_filters {
# estimate optimal number of filter servers
my $max_servers = 5;
- my $servermem = 120;
+ my $servermem = 230;
my $memory = physical_memory();
my $add_servers = int(($memory - 512)/$servermem);
$max_servers += $add_servers if $add_servers > 0;
--
2.39.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-10 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 14:05 [pmg-devel] [PATCH pmg-api v2] config: adjust max_filters calculation to reflect current memory usage Markus Frank
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal