Avamar - 如何檢查 Avamar Linux 用戶端的磁碟效能

Summary: 本文討論在 Avamar 用戶端上測試磁碟效能的方法。這對於調查備份或還原性能問題非常有用。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Avamar 用戶端的磁碟效能會決定備份和還原是否及時完成。

根據 Linux 而定,有多種工具和公用程式可用來檢查磁碟效能,下面提供一些範例。

iostat 命令
Iostat 顯示系統上的磁碟活動級別。
使用 -x 旗標提供延伸資訊,如以下輸出所示。
 
admin@linux:~/>: iostat -x
Linux 2.6.32.59-0.19.1.8590.0.PTF-default (linux)    02/13/16        _x86_64_
 
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.53    0.57    1.11    1.35    0.00   94.45
 
Device:         rrqm/s   wrqm/s     r/s     w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
sda               0.58     2.37   10.81    3.89  5159.38   584.63   390.61     0.16   10.76   1.59   2.34
sdb               0.04     0.00   10.04    0.43  4969.08   157.55   489.83     0.09    8.72   1.91   2.00
sdc               0.04     0.01   10.12    0.44  5006.44   161.46   489.32     0.10    9.16   1.88   1.99
 
可檢查 %iowait%idleawait %util 的值,以瞭解是否有任何磁碟的 I/O 頻寬飽和。  
  • %iowait - 顯示系統有未完成的磁碟 I/O 請求的一個或多個 CPU 空閒的時間百分比。
  • %idle - 顯示 CPU 處於空閒狀態且系統沒有未完成的磁碟 I/O 要求的時間百分比  
  • await -向要提供服務的設備發出 I/O 請求的平均時間(以毫秒為單位)。這包括佇列中的請求所花費的時間,以及為它們提供服務所花費的時間 。  
  • %util - 向設備發出 I/O 請求的 CPU 時間百分比(設備的頻寬利用率)。當此值接近 100% 時,會發生設備飽和。  

hdparm 命令:  HDPARM 可用於簡單的讀取效能測試。以下是針對硬體裝置 /dev/sdc1 執行命令的範例。
#: hdparm -Tt /dev/sdc1
 
/dev/sdc1:
Timing cached reads:   12136 MB in  2.00 seconds = 6073.44 MB/sec
Timing buffered disk reads:  420 MB in  3.01 seconds = 139.69 MB/sec

使用 dd 進行磁碟寫入效能測試:
我們在這裡使用「dd」命令 測試將資料寫入目標磁碟的速度
time sync; dd if=/dev/zero of=tempfile bs=1M count=4096; sync;rm tempfile
此命令的作用為何?
a) 將未完成的寫入同步到磁碟,以確保沒有數據資訊干擾結果。
b) 從 /dev/zero 中取出零,然後將它們寫入檔 臨時檔 ,直到檔大小為 4 GB。
c) 將任何未完成的寫入同步到磁碟。
d) 移除我們建立的檔案。   

命令輸出會顯示系統寫入磁碟的速度。範例如下。
real    0m1.435s
user    0m0.000s
sys     0m0.132s
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB) copied, 3.0865 s, 1.4 GB/s

Affected Products

Avamar

Products

Avamar
Article Properties
Article Number: 000013964
Article Type: How To
Last Modified: 06 Mar 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.