# Overcommit memory configuration

**URL:** <https://meta.discourse.org/t/overcommit-memory-configuration/418092>\
**Category:** Self-hosting\
**Created:** [November 22, 2026, 5:46am UTC](https://meta.discourse.org/t/overcommit-memory-configuration/418092 "2026-11-22T05:46:30Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

[peternlewis](/t/-/418092/1) reported resolving a CLI update issue via `./launcher rebuild app` but questioned two warnings encountered during the process: a Redis memory overcommit warning and an `awk` error regarding a missing SSH key file. [Ed_S](/t/-/418092/2) clarified that the memory overcommit warning is significant and must be addressed by modifying the host's kernel configuration (`vm.overcommit_memory = 1`) to ensure Redis background saves and replication do not fail. They recommended checking persistent settings with `cat /proc/sys/vm/overcommit_memory` and referenced [MKJ’s Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355) for guidance. The `awk` error regarding `/root/.ssh/authorized_keys` was not explicitly addressed but appeared to be a benign build system message.

[peternlewis](/t/-/418092/3) then discussed the complexities of disabling `transparent_hugepage`, noting difficulties in doing so permanently on Digital Ocean droplets due to lack of GRUB control and init script ordering issues. They found an older topic suggesting these warnings could be ignored, leaving them unsure if the configuration change was necessary.

[Ed_S](/t/-/418092/6) clarified that `transparent_hugepage` affects only performance, not stability. While the opinionated guide recommends tweaking it, older advice suggesting it can be ignored remains relevant for many users. In contrast, the memory overcommit setting is critical for reliability and should be fixed.

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [November 22, 2026, 5:46am UTC](https://meta.discourse.org/t/overcommit-memory-configuration/418092/1 "2026-11-22T05:46:30Z")

</div>

OK, cli update via `./launcher rebuild app` resolved the issue.

```bash
root@forum-app:/var/www/discourse# cat /VERSION 
2.0.20261119
root@forum-app:/var/www/discourse# nginx -v
nginx version: nginx/1.26.3
root@forum-app:/var/www/discourse# ruby -v
ruby 4.0.10 (2026-11-19 revision a704b7cd95) +PRISM [x86_64-linux]

```

Two things I saw in the update were:

```plaintext
4474:C 22 Nov 2026 05:33:16.025 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

```

```plaintext
awk: fatal: cannot open file `/root/.ssh/authorized_keys' for reading: No such file or directory

```

Do I need to follow up on either of these on another topic, or are they just the normal random messages that build systems send out that sound like errors but aren’t really?

---

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [November 22, 2026, 7:37am UTC](https://meta.discourse.org/t/overcommit-memory-configuration/418092/2 "2026-11-22T07:37:38Z")

</div>

> [@peternlewis](#):
>
> Two things I saw

The first of those is worth fixing: it’s a change to the kernel config, in effect, so it needs to be made in the host, as the container can’t do anything about it. See perhaps [MKJ’s Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355). The exact change you need to make depends on which distribution you use, but you can see if you’ve succeeded with

```plaintext
# cat /proc/sys/vm/overcommit_memory
1

```

You want your change to be persistent over a reboot.

---

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [November 22, 2026, 10:25am UTC](https://meta.discourse.org/t/overcommit-memory-configuration/418092/3 "2026-11-22T10:25:31Z")

</div>

OK, I went down the rabbit hole of trying to set transparent\_hugepage to disabled. It’s very complicated since to set it permanently it needs to be set in the kernel GRUB settings, but in Digital Ocean droplets you can’t control that, so then it has to be done in an init, but that only works if the init happens before the startup of Discourse, so there are ordering issues.

And then I figured someone here must have figured it out, cuz I’m sure I’m not the only one on Digital Ocean, and then I found this topic:

> [@Warnings: overcommit\_memory and Transparent Huge Pages](https://meta.discourse.org/t/warnings-overcommit-memory-and-transparent-huge-pages/166216/2):
>
> You can ignore those warnings coming from Redis, I think we have inspected them in the past and determined that the current settings are best overall (taking into account the entire Discourse install, not just Redis).

(admittedly from 2020 so something might have changed), which says you can ignore those warnings.

So that leaves me perplexed about how to do it, and whether I should do it.

---

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [November 22, 2026, 1:39pm UTC](https://meta.discourse.org/t/overcommit-memory-configuration/418092/6 "2026-11-22T13:39:12Z")

</div>

> [@peternlewis](#):
>
> trying to set transparent\_hugepage to disabled

This one affects only performance. I’ve tweaked it and the opinionated guide suggests you tweak it but yes that old post suggests you need not.
