Skip to content

Commit f684a59

Browse files
committed
lib-master: For glibc, default MALLOC_MMAP_THRESHOLD_=131072
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.
1 parent 847d276 commit f684a59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ static const struct setting_keyvalue master_service_default_settings_keyvalue[]
9393
{ "import_environment/LISTEN_FDS", "%{env:LISTEN_FDS}" },
9494
{ "import_environment/NOTIFY_SOCKET", "%{env:NOTIFY_SOCKET}" },
9595
#endif
96+
#ifdef __GLIBC__
97+
{ "import_environment/MALLOC_MMAP_THRESHOLD_", "131072" },
98+
#endif
9699
#ifdef DEBUG
97100
{ "import_environment/GDB", "%{env:GDB}" },
98101
{ "import_environment/DEBUG_SILENT", "%{env:DEBUG_SILENT}" },

0 commit comments

Comments
 (0)