• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Redis - Persistence of memory overcommit + hugepages

Servus

Basic Pleskian
Hi @ everyone,
I refer to the great Redis tutorial by @IgorG. My environment is Ubuntu 16.04.4 on kernel 4.4.0-116-generic #140 (32G RAM). Followed Igors suggestion (not for the first time :)), but this time I wanted to fix the problem that the two changes are set back to default after reboot.
With this tutorial I was able to fix persistence of transparent_hugepages:
Code:
# apt install sysfsutils
then added the line
kernel/mm/transparent_hugepage/enabled = never
in /etc/sysfs.conf
After reboot it was persistent:
Code:
~# cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]

My question now is: How to make memory overcommit also persistent?
I was surprised finding no trusted and suitable instructions on Internet to do this.
Is it possible to add also a line to /etc/sysfs.conf?

vm.overcommit_memory = 1


Pease, could you tell me the exact syntax if it isn't like in the line above?

Help would be great. Thx
 
Last edited:
install the sysfsutils package:
# apt install sysfsutils
and append the lines with that setting to /etc/sysfs.conf:
kernel/mm/transparent_hugepage/enabled = never
vm.overcommit_memory = 1
net.core.somaxconn = 65535
 
Back
Top