机器品牌:DELL 型号:R620配置:32核 * 1/256 GB*1/300 GB*4() + 1200 GB*2() 系统版本:CentOSLinux release 7.2.1511 2)问题描述
业务问题:查看CPU模式,并修改为高性能模式。
3)分析解决处理过程 Ø 下载tuned工具:wget http://mirrors.idc.jd.com/CentOS/7.2/os/x86_64/Packages/tuned-2.5.1-4.el7.noarch.rpm Ø 安装tuned工具:rpm -ivhtuned-2.5.1-4.el7.noarch.rpm Ø 查看当前性能模式:tuned-admactive Current activeprofile: balanced Ø 显示host上能运行的性能模式:tuned-admlist Ø 设置为性能模式:tuned-admprofile throughput-performance. Ø 再次查看当前性能模式:tuned-admactive Current activeprofile: throughput-performance 补充资料: 环境: · Red Hat Enterprise Linux 4 · Red Hat Enterprise Linux 5 · Red Hat Enterprise Linux 6 · Red Hat Enterprise Linux 7 On RHEL4: configurethe cpu speed to run at MAX speed all the time by adding the followingparameter into the file /etc/cpuspeed.conf and restart the cpuspeed service:
On RHEL 5:
add the above parameters to/etc/sysconfig/cpuspeed or use the performance governor by adding the followingparameter to the /etc/sysconfig/cpuspeed file and restart the cpuspeed service:On RHEL 6:
configure the performance cpuspeed governoras above for RHEL 5 and add the following kernel boot options and restart theserver. More information available in the Low Latency Performance Tuning forRed Hat Enterprise Linux 6 article.On RHEL 7:
Red Hat recommends tuned profiles (which usethe /dev/cpu_dma_latency interface) as they achieve measured equivalentperformance without reboot requirement. More information available in the LowLatency Performance Tuning for Red Hat Enterprise Linux 7article.常用模式介绍:
balanced
它的目的是成为性能和功耗之间的折衷。它试图尽量使用自动调节。
它有好的结果对于大多数负载。
唯一的缺点是增加了延迟。
在当前调释放它使CPU、磁盘、音频和视频插件和激活ondemand调控器。
radeon_powersave设置为自动。
latency-performance
低延迟的性能模式。它禁用电能节约机制,使sysctl设置提高延迟。
CPU调节器将性能低的CPU锁定C状态(通过PM QoS)。
throughput-performance
高吞吐量优化模式。它禁用电能节约机制,使sysctl设置提高吞吐量性能的磁盘、网络IO和转向最后期限的调度器。
CPU调试器设置为性能模式。
virtual-guest
基于企业存储配置文件,在其他任务,增加虚拟内存swappiness和减少磁盘预读值。它没有禁用磁盘屏障。
oracle
基于throughput-performance模式,它另外禁用透明的巨大的页面和修改内核参数相关的一些其他性能。这个配置文件是由tuned-profiles-oracle包。
在6.8及以后版本可用。
参考文档:https://linux.cn/article-4954-weixin.html
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)