Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save maurodelazeri/08cd3fca897cd3fd73931bfd5d9c8cbb to your computer and use it in GitHub Desktop.

Select an option

Save maurodelazeri/08cd3fca897cd3fd73931bfd5d9c8cbb to your computer and use it in GitHub Desktop.
linux
```
/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