]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: For glibc, default MALLOC_MMAP_THRESHOLD_=131072
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 28 Feb 2025 10:37:03 +0000 (12:37 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 7 Mar 2025 08:01:55 +0000 (10:01 +0200)
This helps to reduce long-running processes' memory usage.

This change isn't tracked in settings changes history. Mainly because it
would require extra code to support, but also because it's more of a system
optimization than Dovecot configuration change.

src/lib-master/master-service-settings.c

index 34c1d5dadfb729cc50d524514ee03ef1d3c02554..399d753ad75aee2a828612ee9265d70d57a023fc 100644 (file)
@@ -93,6 +93,9 @@ static const struct setting_keyvalue master_service_default_settings_keyvalue[]
        { "import_environment/LISTEN_FDS", "%{env:LISTEN_FDS}" },
        { "import_environment/NOTIFY_SOCKET", "%{env:NOTIFY_SOCKET}" },
 #endif
+#ifdef __GLIBC__
+       { "import_environment/MALLOC_MMAP_THRESHOLD_", "131072" },
+#endif
 #ifdef DEBUG
        { "import_environment/GDB", "%{env:GDB}" },
        { "import_environment/DEBUG_SILENT", "%{env:DEBUG_SILENT}" },