Created
July 25, 2019 13:34
-
-
Save maurodelazeri/08cd3fca897cd3fd73931bfd5d9c8cbb to your computer and use it in GitHub Desktop.
linux
This file contains hidden or 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
| ``` | |
| /etc/security/limits.conf | |
| * soft nofile 1000000 | |
| * hard nofile 1000000 | |
| root soft nofile 1000000 | |
| root hard nofile 1000000 | |
| ``` | |
| ``` | |
| /etc/pam.d/common-session | |
| session required pam_limits.so | |
| ``` | |
| ``` | |
| /etc/pam.d/common-session-noninteractive | |
| session required pam_limits.so | |
| ``` | |
| ``` | |
| /etc/sysctl.conf | |
| net.ipv4.conf.all.arp_notify = 1 | |
| vm.overcommit_memory = 1 | |
| net.core.somaxconn=61440 | |
| ``` | |
| ``` | |
| sysctl -w vm.overcommit_memory=1 | |
| sysctl -w net.ipv4.conf.all.arp_notify=1 | |
| sysctl -w net.core.somaxconn=61440 | |
| ``` | |
| ``` | |
| echo never > /sys/kernel/mm/transparent_hugepage/enabled | |
| ``` | |
| ``` | |
| swapoff -a | |
| comment fstab that refers to swap | |
| Ex: #/swap.img none swap sw 0 0 | |
| ``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment