定位
定位
ps -eo pid,stat,wchan:24,cmd | awk '$2 ~ /D/' | head
cat /proc/<PID>/wchan # 内核等待点
cat /proc/<PID>/stack 2>/dev/null | head # 需 root
cat /proc/<PID>/status | grep -E 'State|VmRSS'结合存储层
结合存储层
dmesg -T | grep -iE 'blocked for more than|hung task|I/O error' | tail
iostat -x 1 3 # 对应盘状态
mount | grep <挂载点> # 是否网络存储(NFS 等)D 状态不可 kill:完恢复底层(网络存储重连、存储阵列侧处理),盲目重启可能扩大故障面。