Michael A. Murphy :system76:<p>PSA to <a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> and <a href="https://fosstodon.org/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> developers: there is a long-standing bug in the system allocator (glibc malloc) which causes it to hoard large sbrk buffers in arenas. By default, it uses heuristics to dynamically increase the mmap threshold—the point where it switches from using sbrk to mmap. In some scenarios, these larger buffers are never trimmed, causing a memory "leak". Some <a href="https://fosstodon.org/tags/libcosmic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>libcosmic</span></a> apps were affected, causing as much as 10-30x memory usage. To fix, see the PR below:</p><p><a href="https://github.com/pop-os/cosmic-bg/pull/73" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/pop-os/cosmic-bg/pu</span><span class="invisible">ll/73</span></a></p>