本文共 1186 字,大约阅读时间需要 3 分钟。
centos 提供了tuned-adm,其原理是改变sysctl的参数来调节kernel在不同场景下的性能例如目前提供的场景如下:[root@localhost pci]# tuned-adm listAvailable profiles:- balanced - General non-specialized tuned profile- desktop - Optimize for the desktop use-case- latency-performance - Optimize for deterministic performance at the cost of increased power consumption- network-latency - Optimize for deterministic performance at the cost of increased power consumption, focused on low latency network performance- network-throughput - Optimize for streaming network throughput, generally only necessary on older CPUs or 40G+ networks- powersave - Optimize for low power consumption- throughput-performance - Broadly applicable tuning that provides excellent performance across a variety of common server workloads- virtual-guest - Optimize for running inside a virtual guest- virtual-host - Optimize for running KVM guestsCurrent active profile: network-throughput当前正在应用的场景[root@localhost pci]# tuned-adm activeCurrent active profile: network-throughput可以通过sysctl -a > 2.txt 将所有的sysctl参数改到文件中,然后比较两种场景下的sysctl的区别
转载地址:http://tsnmi.baihongyu.com/