diff options
author | Eric Wong <e@80x24.org> | 2024-04-15 19:50:56 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-04-16 20:58:52 +0000 |
commit | cd14eec87ae870f388ac24c2390e1c608fbed99c (patch) | |
tree | 6b90aea9e7b4bf0225050066db8731db98e7c47d /Documentation | |
parent | 6543902ed6d596f86bdbe863c4d2a9c168b3f3df (diff) | |
download | public-inbox-cd14eec87ae870f388ac24c2390e1c608fbed99c.tar.gz |
Large string processing + concurrency + caching/memoization really brings out the worst in glibc malloc :<
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/public-inbox-tuning.pod | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/public-inbox-tuning.pod b/Documentation/public-inbox-tuning.pod index 73246144..7d0690b4 100644 --- a/Documentation/public-inbox-tuning.pod +++ b/Documentation/public-inbox-tuning.pod @@ -165,8 +165,11 @@ capacity planning. Bursts of small object allocations late in process life contribute to fragmentation of the heap due to arenas (slabs) used internally by Perl. -jemalloc (tested as an LD_PRELOAD on GNU/Linux) appears to reduce +jemalloc (tested as an LD_PRELOAD on GNU/Linux) reduces overall fragmentation compared to glibc malloc in long-lived processes. +glibc malloc users may try setting C<MALLOC_MMAP_THRESHOLD_> to a lower +value (e.g. 131072) but that may require increasing the +C<sys.vm.max_map_count> sysctl. =head2 Other OS tuning knobs |