本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
最佳化 Hyperdisk 效能
佈建 Google Cloud Hyperdisk 磁碟區後,應用程式和作業系統可能需要進行效能調整,才能滿足效能需求。
在下節中,我們將說明幾個可微調以提高效能的重要元素,以及如何將其中幾種元素應用於特定類型的工作負載。
如要概略瞭解 Google Cloud Hyperdisk 效能運作方式,請參閱「關於 Hyperdisk 效能」。
使用高 I/O 佇列深度
Hyperdisk 磁碟區是網路連接裝置,因此延遲時間較本地連接磁碟 (例如本機 SSD) 長。這些磁碟可提供非常高的 IOPS 和處理量,但您必須確保有足夠的 I/O 要求可同時執行。並行執行的 I/O 要求數量稱為 I/O 佇列深度。
下表列出建議的 I/O 佇列深度,可確保您能達到特定的效能等級。表格會稍微高估一般延遲時間,以便提供保守的建議。這個範例假設您使用的是 16 KB 的 I/O 大小。
所需 IOPS
|
佇列深度
|
500 |
1 |
1,000 |
2 |
2,000 |
4 |
4,000 |
8 |
8,000 |
16 |
16,000 |
32 |
32,000 |
64 |
64,000 |
128 |
100,000 |
200 |
200,000 |
400 |
320,000 |
640 |
所需處理量 (MB/秒) |
佇列深度 |
8 |
1 |
16 |
2 |
32 |
4 |
64 |
8 |
128 |
16 |
256 |
32 |
512 |
64 |
1,000 |
128 |
1,200 |
153 |
確保有可用的 CPU
讀取和寫入 Hyperdisk 磁碟區時需要 VM 的 CPU 週期。如果 VM 執行個體的 CPU 不足,應用程式將無法達到先前所述的 IOPS。如要達到高度且一致的 IOPS 等級,則必須釋出 CPU 來處理 I/O。
您可以在 Cloud Monitoring 中查看磁碟效能指標,這是Trusted Cloud的整合監控解決方案。您可以使用這些指標,在不同應用程式工作負載下觀察磁碟和其他 VM 資源的效能。
詳情請參閱「查看磁碟效能指標」。
您也可以使用控制台中的可觀測性頁面查看磁碟效能指標。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-06-16 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-06-16 (世界標準時間)。"],[[["Hyperdisk volumes may require performance tuning after provisioning to meet specific application and operating system needs."],["Utilizing a high I/O queue depth is essential for achieving the high IOPS and throughput capabilities of network-attached Hyperdisk volumes, with the recommended depth varying based on desired performance levels."],["Sufficient free CPU cycles on the VM are necessary to manage the high IOPS associated with Hyperdisk volumes, ensuring consistent performance."],["Cloud Monitoring and the console's Observability page allow you to review Hyperdisk performance metrics to observe the performance of disks and VM resources under different workloads."]]],[]]