# האם להגדיל את ה-swap space המוגדר כברירת מחדל ל-3GB או 4GB?

**URL:** https://meta.discourse.org/t/should-we-increase-the-default-swap-space-to-3gb-or-4gb/294222
**Category:** Self-hosting
**Created:** [5 בפברואר,‏ 2024,‏ 6:40pm UTC](https://meta.discourse.org/t/should-we-increase-the-default-swap-space-to-3gb-or-4gb/294222 "2024-02-05T18:40:07Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [6 בפברואר,‏ 2024,‏ 8:20am UTC](https://meta.discourse.org/t/should-we-increase-the-default-swap-space-to-3gb-or-4gb/294222/3 "2024-02-06T08:20:28Z")

</div>

Can I strongly suggest that the installation script should also set the two kernel tunables which affect the memory handling? It would be good to know that everyone who apparently has a problem does at least have a starting point of a good kernel setup.

> [@MKJ's Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355/1):
>
> ## Kernel configuration
> 
> … disabling transparent huge pages, and I also allow memory overcommit.
> 
> ```plaintext
> echo 'sys.kernel.mm.transparent_hugepage.enabled=never' > /etc/sysctl.d/10-huge-pages.conf
> echo 'vm.overcommit_memory=1' > /etc/sysctl.d/90-vm_overcommit_memory.conf
> sysctl --system
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/should-we-increase-the-default-swap-space-to-3gb-or-4gb/294222)._
