#!/bin/bash
echo "=== FD CHECK (open files) ==="
ls -la /proc/15070/fd/ 2>/dev/null | grep -E "gguf|model|unet" | head -10

echo "=== IO COUNTERS ==="
cat /proc/15070/io 2>/dev/null
sleep 5
echo "=== IO COUNTERS AFTER 5s ==="
cat /proc/15070/io 2>/dev/null

echo "=== MEMORY ==="
cat /proc/15070/status 2>/dev/null | grep -E "VmRSS|VmSize|Threads"

echo "=== GPU MEMORY (sysfs) ==="
cat /sys/class/drm/card0/device/mem_info_vram_used 2>/dev/null
cat /sys/class/drm/card0/device/mem_info_gtt_used 2>/dev/null
