<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Lemmy Release v0.19.20 - Reduced Memory Usage]]></title><description><![CDATA[<h2>What is Lemmy?</h2>
<p dir="auto">Lemmy is a self-hosted social link aggregation and discussion platform. It is completely free and open, and not controlled by any company. This means that there is no advertising, tracking, or secret algorithms. Content is organized into communities, so it is easy to subscribe to topics that you are interested in, and ignore others. Voting is used to bring the most interesting items to the top.</p>
<h2>Changes</h2>
<p dir="auto">This release significantly reduces memory usage for the Lemmy backend. Metrics on production instances show a reduction up to 10 times. Here you can see the statistics from a few different instances. Read on for a technical explanation below. Note that the change only affects x86, there is no difference on ARM (e.g. Raspberry Pi), see <a href="https://github.com/LemmyNet/lemmy/issues/5695" target="_blank" rel="noopener noreferrer nofollow ugc">here for details</a>.</p>
<p dir="auto"><img src="https://lemmy.ml/api/v3/image_proxy?url=https%3A%2F%2Fgithub.com%2Fuser-attachments%2Fassets%2F2436e7ff-aed4-4eb5-9b0a-da872b636e9b" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto"><em><a href="http://lemmy.ml" target="_blank" rel="noopener noreferrer nofollow ugc">lemmy.ml</a> (overall RAM usage including OS, Docker, PostgreSQL etc):</em></p>
<p dir="auto"><img src="https://lemmy.ml/pictrs/image/dc6ee927-1e6b-4305-9422-3fa651ca885e.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto"><em>leminal.space (backend container only)</em></p>
<p dir="auto"><img src="https://lemmy.ml/pictrs/image/6a0cac14-a6e2-4015-b7b5-e66040bb23a5.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto"><em>lemmy.world (backend API containers)</em></p>
<p dir="auto"><img src="https://lemmy.ml/pictrs/image/60c25504-bbaf-492b-9b68-972a3b8773c3.png" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto"><em>lemmy.world (backend federation and scheduled tasks)</em></p>
<p dir="auto">How was such a major improvement possible? Memory usage in languages like Rust or C is managed by a so-called memory allocator. It requests large chunks of RAM from the operating system, and provides smaller chunks when needed in the program. For example, every string (such as post titles or markdown text) require chunks of memory to store them. When processing the data is completed, the memory should be freed and released, or reused.</p>
<p dir="auto">Until version 0.19.19 Lemmy used the <code>mimalloc</code> memory allocator, which is supposedly better than the default <code>glibc</code> allocator. Yet a <a href="https://pranitha.dev/posts/rust-and-memory-allocators/" target="_blank" rel="noopener noreferrer nofollow ugc">recent blog post</a> points out that <code>mimalloc</code> does not play well with the <code>tokio</code> async runtime. It suggests to use <code>jemalloc</code> instead. Changing memory allocators is very simple in Rust, it only requires a <a href="https://github.com/LemmyNet/lemmy/pull/6604/changes/f6e17228319c7ec0441270a086cdc50bef78e1fd" target="_blank" rel="noopener noreferrer nofollow ugc">single line of code</a>. So we tried that, deployed the change on <a href="http://lemmy.ml" target="_blank" rel="noopener noreferrer nofollow ugc">lemmy.ml</a> and it immediately proved effective.</p>
<h2>Upgrade instructions</h2>
<p dir="auto">There are no breaking changes with this release.</p>
<p dir="auto">Follow the upgrade instructions for <a href="https://github.com/LemmyNet/lemmy-ansible/blob/main/UPGRADING.md" target="_blank" rel="noopener noreferrer nofollow ugc">ansible</a> or <a href="https://join-lemmy.org/docs/en/administration/install_docker.html#updating" target="_blank" rel="noopener noreferrer nofollow ugc">docker</a>.</p>
<p dir="auto">If you need help with the upgrade, you can ask in our <a href="https://lemmy.ml/c/lemmy_support" target="_blank" rel="noopener noreferrer nofollow ugc">support forum</a> or on the <a href="https://matrix.to/#/!OwmdVYiZSXrXbtCNLw:matrix.org" target="_blank" rel="noopener noreferrer nofollow ugc">Matrix Chat</a>.</p>
<h2>Thanks to everyone</h2>
<p dir="auto">We'd like to thank our many contributors and users of Lemmy for coding, translating, testing, and helping find and fix bugs. We're glad many people find it useful and enjoyable enough to contribute.</p>
<h2>Support development</h2>
<p dir="auto">We (@dessalines and @nutomic) have been working full-time on Lemmy for over five years. This is largely thanks to support from <a href="https://nlnet.nl/" target="_blank" rel="noopener noreferrer nofollow ugc">NLnet foundation</a>, as well as <a href="https://join-lemmy.org/donate" target="_blank" rel="noopener noreferrer nofollow ugc">donations from individual users</a>.</p>
<p dir="auto">If you like using Lemmy, and want to make sure that we will always be available to work full time building it, consider <a href="https://join-lemmy.org/donate" target="_blank" rel="noopener noreferrer nofollow ugc">donating to support its development</a>. A recurring donation is the best way to ensure that open-source software like Lemmy can stay independent and alive, and helps us grow our little developer co-op to support more full-time developers.</p>
<ul>
<li><a href="https://liberapay.com/Lemmy" target="_blank" rel="noopener noreferrer nofollow ugc">Liberapay</a> (preferred option)</li>
<li><a href="https://opencollective.com/lemmy" target="_blank" rel="noopener noreferrer nofollow ugc">Open Collective</a></li>
<li><a href="https://www.patreon.com/dessalines" target="_blank" rel="noopener noreferrer nofollow ugc">Patreon</a></li>
<li><a href="https://join-lemmy.org/crypto" target="_blank" rel="noopener noreferrer nofollow ugc">Cryptocurrency</a></li>
</ul>


<div class="row mt-3"><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://join-lemmy.org/news/Lemmy_Release_v0.19.20_-_Reduced_Memory_Usage" title="Lemmy Release v0.19.20 - Reduced Memory Usage">
<img src="https://join-lemmy.org/static/assets/images/lemmy.svg" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" onerror="this.parentElement.remove()" />
</a>



<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://join-lemmy.org/news/Lemmy_Release_v0.19.20_-_Reduced_Memory_Usage">
Lemmy Release v0.19.20 - Reduced Memory Usage
</a>
</h5>
<p class="card-text line-clamp-3">Lemmy</p>
</div>
<a href="https://join-lemmy.org/news/Lemmy_Release_v0.19.20_-_Reduced_Memory_Usage" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://join-lemmy.org/static/assets/icons/favicon.svg" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>





<p class="d-inline-block text-truncate mb-0"> <span class="text-secondary">(join-lemmy.org)</span></p>
</a>
</div></div>]]></description><link>https://citiverse.it/topic/45788170-9738-4d6b-a64b-1b4d1398e092/lemmy-release-v0.19.20-reduced-memory-usage</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 12:01:52 GMT</lastBuildDate><atom:link href="https://citiverse.it/topic/45788170-9738-4d6b-a64b-1b4d1398e092.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Jul 2026 13:24:11 GMT</pubDate><ttl>60</ttl></channel></rss>