Show Table of Contents
A.6. tuned-adm
tuned-adm 為一個命令列工具,提供若干不同設定檔以改善特定使用例子中的效能。此工具亦能提供子命令(
tuned-adm recommend),進入您的系統和輸出一個建議的微調設定檔。這亦於安裝時,為您系統設定預設設定檔,以用於回復預設設定檔。
Red Hat Enterprise Linux 7 中,tuned-adm 包含運作任何命令,作為啟動與停用微調設定檔的一部分。這使您能夠新增在 tuned-adm 中沒有的環境特定檢閱,例如:檢閱系統是否在選取應用哪一微調設定檔前,為 master 資料庫節點。
Red Hat Enterprise Linux 7 亦於設定檔定義檔案中提供
include 參數,使您能夠將自己的 tuned-adm 設定檔以現存設定檔為基礎。
以下微調設定檔具備 tuned-adm 並在 Red Hat Enterprise Linux 7 受支援。
- 輸出量效能
- 此工具為一針對改善輸送量的伺服器設定檔。這是一個預設設定檔,並建議用在大多數系統上。透過設定
intel_pstate與max_perf_pct=100,此設定檔有助於效能,更勝節能。此設定檔能夠啟動通透的大頁面、使用 cpupower 以設定performancecpufreq 管理員,與設定輸入 / 輸出排程器至deadline。此設定檔也設定kernel.sched_min_granularity_ns至10μs、kernel.sched_wakeup_granularity_ns至15μs,和vm.dirty_ratio至40%。 - 延遲效能
- 此工具為一針對降低延遲的伺服器設定檔。此設定檔建議用在有助於 c-state 微調的延遲敏感作業負載,與增加透明巨大頁面的 TLB 效率。透過設定
intel_pstate與max_perf_pct=100,此設定檔有助於效能,更勝節能。此工具能夠啟用透明巨大頁面、使用 cpupower 以設定performancecpufreq 管理員,與要求cpu_dma_latency的值為1。 - 網路效能
- 此工具為一針對降低網路延遲的伺服器設定檔。透過設定
intel_pstate與max_perf_pct=100,此設定檔有助於效能,更勝於節能。此工具能夠啟用透明巨大頁面與自動 NUMA 平衡。此工具亦能使用cpupower以設定performancecpufreq 管理員,與要求cpu_dma_latency的值為1。此工具亦設定busy_read與busy_poll時間至50μs,tcp_fastopen至3。 - 網路輸出量
- 此工具為一針對改善網路輸出量的伺服器設定檔。透過設定
intel_pstate與max_perf_pct=100和增加 kernel 網路緩衝區大小,此設定檔有助於效能,更勝節能。此工具能夠啟動透明巨大頁面,與使用 cpupower 以設定performancecpufreq 管理員。此工具亦設定kernel.sched_min_granularity_ns至10μs、kernel.sched_wakeup_granularity_ns至 15 μs,和vm.dirty_ratio至40%。 - 虛擬客座端
- 此工具為一針對 Red Hat Enterprise Linux 7 中的虛擬機器優化效能。透過設定
intel_pstate與max_perf_pct=100,此設定檔有助於效能,更勝節能。此工具亦能夠啟動透明巨大頁面,與使用 cpupower 以設定performancecpufreq 管理員。此工具亦設定kernel.sched_min_granularity_ns至10μs、kernel.sched_wakeup_granularity_ns至 15 μs,與vm.dirty_ratio至40%。 - 虛擬主機
- 此工具為一針對 Red Hat Enterprise Linux 7 中虛擬化主機的優化效能。透過設定
intel_pstate與max_perf_pct=100,此設定檔有助於效能,更勝節能。此工具亦能降低虛擬記憶體的 swappiness。此設定檔能夠啟動透明巨大頁面,與更為頻密地將已變更的頁面寫回至硬碟。此工具使用 cpupower 以設定performancecpufreq 管理員。此工具亦設定kernel.sched_min_granularity_ns至10μs、kernel.sched_wakeup_granularity_ns至 15 μs、kernel.sched_migration_cost至5μs,和vm.dirty_ratio至40%。
更多有關具有 tuned-adm 的節能設定檔的詳細資訊,請參閱《Red Hat Enterprise Linux 7 能源管理指引》。網址為: http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/。
更多有關使用「tuned-adm」的詳細資訊,請參閱 man page:
$ man tuned-adm

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.