Debian分区性能监控可通过以下工具和方法实现:
命令行工具
sysstat
包。sudo apt install sysstat
iostat -x 1 # 每秒刷新一次,显示扩展统计信息
iotop
包。sudo apt install iotop
sudo iotop
-d
参数查看磁盘活动。vmstat -d 1 # 每秒刷新磁盘统计
dstat
包。sudo apt install dstat
dstat -d --disk-util
sysstat
服务。sudo apt install sysstat
sudo systemctl enable --now sysstat
sar -d 1 5 # 查看最近5次磁盘I/O数据
图形化工具
其他工具
smartmontools
包。根据需求选择工具:实时监控选iostat
/iotop
/dstat
,历史分析选sar
,可视化选Netdata/Grafana1-9。