以下是Debian文件系統性能監控的常用方法及工具:
sysstat
包。iostat -x 1 5 # 每秒刷新1次,顯示5次結果
vmstat 1 5 # 每秒刷新1次,顯示5次結果
df -h # 顯示各分區空間占用
ncdu
提供交互式界面。du -sh /path/to/directory # 統計目錄總大小
ncdu /path/to/directory # 交互式查看文件占用
inotifywait -m /path/to/directory -e create,modify,delete
sudo apt install netdata # 安裝后訪問 http://localhost:19999
%iowait
(CPU等待I/O時間)、await
(平均I/O響應時間)等關鍵指標,判斷磁盤負載情況。fsck
檢查文件系統錯誤,確保數據完整性。以上工具可根據需求選擇,命令行工具適合快速定位問題,可視化工具適合長期監控和趨勢分析。