Skip to content

j1844/kernel_tuning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linux-Kernel-Tuning

For Centos

Bash script for optimizing performance and hardening Linux kernel by adjusting the kernel parameters. It is self-explained and not supposed to be a one-thing-fit-all script. You should see the script for yourself and adjust the values for your need. Use it with caution.

Usage

1. Download the script to a folder on your Centos Linux machine (eg.: /opt/), then execute it
wget https://raw.githubusercontent.com/djanedu/kernel_tuning/master/kernel_tuning_centos.sh 
chmod +x ./kernel_tuning_centos.sh
./kernel_tuning_centos.sh
2. Allow the script to run everytime the system starts
mv ./kernel_tuning_centos.sh  /opt/
vim /etc/rc.local

# Add the following line:
/opt/kernel_tuning_centos.sh

For Ubuntu

Usage

1. Download the script to a folder on your Ubuntu Linux machine then execute it
wget https://raw.githubusercontent.com/djanedu/kernel_tuning/master/kernel_tuning_ubuntu.sh
chmod +x ./kernel_tuning_ubuntu.sh
./kernel_tuning_ubuntu.sh

References

I made the script using the following sources:

  1. http://docs.oracle.com/cd/E19644-01/817-5051/pt_tuningos.html#wp62221
  2. http://www.netadmintools.com/art295.html
  3. https://cs.uwaterloo.ca/~brecht/servers/openfiles.html
  4. http://www.nateware.com/linux-network-tuning-for-2013.html
  5. http://www.lognormal.com/blog/2012/09/27/linux-tcpip-tuning/
  6. http://aiscaler.com/wiki/linux-tuning-for-high-performance
  7. http://www.cyberciti.biz/faq/linux-tcp-tuning/
  8. https://www.frozentux.net/ipsysctl-tutorial/ipsysctl-tutorial.html
  9. http://www.susegeek.com/networking/network-performance-fine-tuning-in-opensuse-suse/

Feel free to make it better. Pull requests are welcome.

About

内核调优加固 Linux Kernel Tuning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%