Jump To Close Expand all Collapse all Table of contents 效能微調指南 1. Red Hat Enterprise Linux 7 效能特色 Expand section "1. Red Hat Enterprise Linux 7 效能特色" Collapse section "1. Red Hat Enterprise Linux 7 效能特色" 1.1. 7.1 的新增項目 1.2. 7.0 的新增項目 2. 效能監控工具 Expand section "2. 效能監控工具" Collapse section "2. 效能監控工具" 2.1. /proc 2.2. GNOME 系統監視器 2.3. Performance Co-Pilot 2.4. Tuna 2.5. 內建命令列工具 Expand section "2.5. 內建命令列工具" Collapse section "2.5. 內建命令列工具" 2.5.1. top 2.5.2. ps 2.5.3. 虛擬記憶體統計資料(vmstat) 2.5.4. 系統活動報告器 2.6. tuned 與 tuned-adm 2.7. perf 2.8. turbostat 2.9. iostat 2.10. irqbalance 2.11. ss 2.12. numastat 2.13. numad 2.14. SystemTap 2.15. OProfile 2.16. Valgrind 3. CPU Expand section "3. CPU" Collapse section "3. CPU" 3.1. 注意事項 Expand section "3.1. 注意事項" Collapse section "3.1. 注意事項" 3.1.1. 系統拓樸 3.1.2. 排程 3.1.3. IRQ 處理 3.2. 監視與診斷效能問題 Expand section "3.2. 監視與診斷效能問題" Collapse section "3.2. 監視與診斷效能問題" 3.2.1. turbostat 3.2.2. numastat 3.2.3. /proc/interrupts 3.3. 配置建議 Expand section "3.3. 配置建議" Collapse section "3.3. 配置建議" 3.3.1. 設定 kernel tick 的時間 3.3.2. 設定硬體效能原則 3.3.3. 用 taskset 設定程序親和性 3.3.4. 用 numactl 管理 NUMA 親和性 3.3.5. 用 numad 自動管理 NUMA 親和性 3.3.6. 微調排程原則 3.3.7. 設定插斷親和性 3.3.8. 用 Tuna 來配置 CPU、執行緒,以及插斷親和性 4. 記憶體 Expand section "4. 記憶體" Collapse section "4. 記憶體" 4.1. 考量 Expand section "4.1. 考量" Collapse section "4.1. 考量" 4.1.1. 分頁大小 4.1.2. 轉譯對應緩衝區大小 4.2. 監視與診斷效能問題 Expand section "4.2. 監視與診斷效能問題" Collapse section "4.2. 監視與診斷效能問題" 4.2.1. 用 vmstat 監視記憶體使用量 4.2.2. 用 Valgrind 設定應用程式記憶體使用量 4.3. 配置工具 Expand section "4.3. 配置工具" Collapse section "4.3. 配置工具" 4.3.1. 設定巨大分頁 4.3.2. 設定系統記憶體容量 5. 儲存空間與檔案系統 Expand section "5. 儲存空間與檔案系統" Collapse section "5. 儲存空間與檔案系統" 5.1. 考量 Expand section "5.1. 考量" Collapse section "5.1. 考量" 5.1.1. 固態磁碟 5.1.2. I/O 排程器 5.1.3. 檔案系統 5.1.4. 檔案系統的一般微調設定 5.2. 監視以及診斷效能問題 Expand section "5.2. 監視以及診斷效能問題" Collapse section "5.2. 監視以及診斷效能問題" 5.2.1. 用 vmstat 監視系統效能 5.2.2. 用 iostat 監視 I/O 效能 5.2.3. 用 SystemTap 監視儲存空間 5.3. 設定工具 Expand section "5.3. 設定工具" Collapse section "5.3. 設定工具" 5.3.1. 設定微調檔案增強儲存空間效能 5.3.2. 設定預設 I/O 排程器 5.3.3. 裝置設定 I/O 排程器 5.3.4. 微調排程器期限 5.3.5. 微調 cfq 排程器 5.3.6. 微調 noop 排程器 5.3.7. 為效能設定檔案系統 6. 網路功能 Expand section "6. 網路功能" Collapse section "6. 網路功能" 6.1. 考量 Expand section "6.1. 考量" Collapse section "6.1. 考量" 6.1.1. 在您微調之前 6.1.2. packet reception 中的瓶頸 6.2. 監控和診斷效能問題 Expand section "6.2. 監控和診斷效能問題" Collapse section "6.2. 監控和診斷效能問題" 6.2.1. ss 6.2.2. ip 6.2.3. dropwatch 6.2.4. ethtool 6.2.5. /proc/net/snmp 6.2.6. 以 SystemTap 監控網路 6.3. 設定工具 Expand section "6.3. 設定工具" Collapse section "6.3. 設定工具" 6.3.1. 網路效能的 Tuned-adm 設定檔 6.3.2. 設定硬體緩衝 6.3.3. 設定中斷佇列 6.3.4. 設定通訊端接收佇列 6.3.5. 配置接收端縮放比例(RSS) 6.3.6. 配置接收封包操控 6.3.7. 配置接收封包操控 (RFS) 6.3.8. 設定加速 RFS A. 工具參考 Expand section "A. 工具參考" Collapse section "A. 工具參考" A.1. irqbalance A.2. Tuna A.3. ethtool A.4. ss A.5. tuned A.6. tuned-adm A.7. perf A.8. Performance Co-Pilot(PCP) A.9. vmstat A.10. x86_energy_perf_policy A.11. turbostat A.12. numastat A.13. numactl A.14. numad Expand section "A.14. numad" Collapse section "A.14. numad" A.14.1. 使用自命令列的 numad。 A.14.2. 將 numad 作為服務使用 A.14.3. 放置前建議 A.14.4. 以 KSM 使用 numad A.15. OProfile A.16. taskset A.17. SystemTap B. 修訂記錄 法律聲明 Settings Close Language: 日本語 한국어 简体中文 English 繁體中文 Language: 日本語 한국어 简体中文 English 繁體中文 Format: Multi-page Single-page Format: Multi-page Single-page Language and Page Formatting Options Language: 日本語 한국어 简体中文 English 繁體中文 Language: 日本語 한국어 简体中文 English 繁體中文 Format: Multi-page Single-page Format: Multi-page Single-page Red Hat Training A Red Hat training course is available for Red Hat Enterprise Linux A.3. ethtool ethtool 公用程式使系統管理員能夠查閱和編輯網路界面卡設定。此工具有助於觀察特定裝置的數據,比方:由裝置刪除的封包數量。 ethtool 的選項與其使用量皆完整地記錄在 man page 中。 $ man ethtool Previous Next