diff options
author | Eric Wong <e@80x24.org> | 2024-04-18 19:46:16 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-04-22 09:55:00 +0000 |
commit | 488958385c6b8974b8780fb44b91c481e57c2eea (patch) | |
tree | 943ccd1de464ccbbc731afa07481060978edc9b8 /examples/public-inbox-imapd@.service | |
parent | d80ce538c826446941576eda5f7363734f94de1f (diff) | |
download | public-inbox-488958385c6b8974b8780fb44b91c481e57c2eea.tar.gz |
The 131072 byte lower bound was the old default before the sliding mmap window was introduced in modern glibc malloc. While the sliding mmap window was intended to be faster by reducing syscalls, zeroing and kernel overhead, it is also prone to fragmentation from allocation patterns seen in evented Perl servers. Individual allocations over 128K are rare in our codebase since there aren't many messages this large, making any performance impact tiny. Furthermore, the reduction in fragmentation and memory use will be a speedup for memory-constrained systems since they can avoid swap and have more leftover for the page cache.
Diffstat (limited to 'examples/public-inbox-imapd@.service')
-rw-r--r-- | examples/public-inbox-imapd@.service | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/public-inbox-imapd@.service b/examples/public-inbox-imapd@.service index 80104605..1aede65d 100644 --- a/examples/public-inbox-imapd@.service +++ b/examples/public-inbox-imapd@.service @@ -16,6 +16,8 @@ After = public-inbox-imapd.socket [Service] Environment = PI_CONFIG=/home/pi/.public-inbox/config \ PATH=/usr/local/bin:/usr/bin:/bin \ +TZ=UTC \ +MALLOC_MMAP_THRESHOLD_=131072 \ PERL_INLINE_DIRECTORY=/tmp/.pub-inline LimitNOFILE = 30000 |