zoukankan      html  css  js  c++  java
  • Linux操作系统使用 tuned/tuned-adm工具动态调优CPU性能模式

    1)环境
    机器品牌:DELL  型号:R620配置:32 * 1/256 GB*1/300 GB*4() + 1200 GB*2()
    系统版本:CentOSLinux release 7.2.1511

    2)问题描述
    业务问题:查看CPU模式,并修改为高性能模式。

    3)分析解决处理过程
    Ø  安装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及以后版本可用。
     
  • 相关阅读:
    MFC防止进程重复建立
    windows系统锁屏及修改密码项目开发经验记录
    mfc开发an unsupported operation was attempted错误解决
    LIBCMTD.lib(exe_winmain.obj) : error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) 中被引用
    两种加载dll的方式
    字符串使用宏的意义
    python脚本,重新设置图片大小
    用python & bat写软件安装脚本 + HM NIS Edit自动生成软件安装脚本
    第十三章 接口
    第十二章 泛型
  • 原文地址:https://www.cnblogs.com/zhangxinglong/p/11758493.html
Copyright © 2011-2022 走看看