How to tune CentOs 6.x / 7.x performance with cpufrequtils and tuned

yum install -y cpufrequtils
cpufreq-set -r -g performance

yum install -y tuned
tuned-adm profile latency-performance