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及以后版本可用。
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM