This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/Scripts and Tests/diag_threads.sh
T
2026-08-20 00:45:43 +02:00

26 lines
574 B
Bash

#!/bin/bash
PID=147178
echo "=== Thread wait channels ==="
for tid_dir in /proc/$PID/task/*/; do
tid=$(basename "$tid_dir")
wc=$(cat "$tid_dir/wchan" 2>/dev/null)
echo "$wc"
done | sort | uniq -c | sort -rn | head -20
echo ""
echo "=== Log tail ==="
tail -5 /home/fabian/comfyui3.log
echo ""
echo "=== GPU power ==="
cat /sys/class/drm/card0/device/hwmon/hwmon*/power1_average 2>/dev/null || echo "no power info"
echo ""
echo "=== Memory ==="
free -h | head -3
echo ""
echo "=== comgr cache ==="
ls /home/fabian/.cache/comgr/ 2>/dev/null | wc -l
echo "DONE"