How to optimize sysctl?

Issues related to configuring your network
Post Reply
mahesh2150
Posts: 16
Joined: 2017/10/17 17:15:47

How to optimize sysctl?

Post by mahesh2150 » 2017/10/21 15:30:56

I have been told that centos 7 is not well optimized out of the box.
That seems to be true.

Still i need to learn a lot, i need your help in optimizing few values to accept the traffic without any problem.
Server is 4 core, 8 thread cpu and 32 GB ram

I changed
fs.file-max
vm.swappiness
vm.dirty_ratio
vm.dirty_background_ratio


net.ipv4.tcp_synack_retries
net.ipv4.ip_local_port_range
net.ipv4.tcp_rfc1337
net.ipv4.tcp_fin_timeout
net.ipv4.tcp_keepalive_time
net.ipv4.tcp_keepalive_probes
net.ipv4.tcp_keepalive_intvl

Server looks good. But i want to go on further to optimize it.

Code: Select all

net.core.rmem_default
net.core.rmem_max
net.core.wmem_default
net.core.wmem_max
net.core.somaxconn
net.core.netdev_max_backlog
net.core.optmem_max
net.ipv4.tcp_mem
net.ipv4.udp_mem
#read and write buffer
net.ipv4.tcp_rmem
net.ipv4.udp_rmem_min
net.ipv4.tcp_wmem
net.ipv4.udp_wmem_min
#DDOS
net.ipv4.tcp_max_tw_buckets
net.ipv4.tcp_tw_recycle
net.ipv4.tcp_tw_reuse
I havent read about them, but those seems to be important.
Can you advice any book to read about this to get a better knowledge.
Do you have any suggestion to optimize it now?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to optimize sysctl?

Post by TrevorH » 2017/10/21 16:10:37

You'd be better off installing tuned-adm if it isn't already and choosing one of the profiles from the list that fits your server use-case.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mahesh2150
Posts: 16
Joined: 2017/10/17 17:15:47

Re: How to optimize sysctl?

Post by mahesh2150 » 2017/10/21 16:46:20

Thank you. I will try it and let you know

mahesh2150
Posts: 16
Joined: 2017/10/17 17:15:47

Re: How to optimize sysctl?

Post by mahesh2150 » 2017/10/22 07:23:23

Can you recommend any book which will cover these in details?
Thanks

Post Reply