2017-03-01

Performance Tuning on Linux Systems

There have been lots of guides on the Internet about on how to tune Linux systems. Though I have yet to see detailed description on why and why-not, I just found this site appropriate to my needs.   And again, there's no bulletproof on tuning systems I believe as this has to be done in a controlled manner and different applications running on the system is also a variable that need to be considered.

http://fasterdata.es.net/host-tuning/linux/

I was asked by one of our application team to increase the value of net.core.rmem_max.

Non-persistent.

[root@ahiudv ~]# cp /etc/sysctl.conf /tmp/sysctl.conf.20170301
[root@ahiudv ~]# sysctl -a | grep rmem_max
net.core.rmem_max = 16777216
[root@ahiudv ~]# sysctl -w net.core.rmem_max=26214400
[root@ahiudv ~]# sysctl -p; clear; sysctl -a | grep rmem_max
net.core.rmem_max = 26214400

Persistent, needs to be rebooted.

[root@ahiudv ~]# val=$(grep net.core.rmem_max /etc/sysctl.conf | awk '{ print $3 }')
[root@ahiudv ~]# echo $val
16777216
[root@ahiudv ~]# sed -i "/net.core.rmem_max =/ s/$val/26214400/" /etc/sysctl.conf
[root@ahiudv ~]# grep net.core.rmem_max /etc/sysctl.conf
net.core.rmem_max =  26214400

No comments:

Post a Comment