$ sudo -i
# vim /etc/systemd/system/overcommit_memory_1.service
# systemctl enable overcommit_memory_1
# systemctl start overcommit_memory_1
# systemctl status overcommit_memory_1
# cat /proc/sys/vm/overcommit_memory
-
-
Save PyYoshi/c7b271c8ba80ea350376 to your computer and use it in GitHub Desktop.
Set overcommit_memory=1 on CoreOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Set overcommit_memory=1 on CoreOS | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/sh -c "echo 1 > /proc/sys/vm/overcommit_memory" | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thx! 👍