20 lines
640 B
Bash
20 lines
640 B
Bash
#!/bin/bash
|
|
# Check comgr cache growth
|
|
echo "=== comgr cache ==="
|
|
ls -la ~/.cache/comgr/ 2>/dev/null | tail -5
|
|
echo "Files: $(ls ~/.cache/comgr/ 2>/dev/null | wc -l)"
|
|
echo "Size: $(du -sh ~/.cache/comgr/ 2>/dev/null | cut -f1)"
|
|
|
|
echo ""
|
|
echo "=== GPU memory ==="
|
|
cat /sys/class/drm/card1/device/mem_info_vram_used 2>/dev/null || echo "No vram info"
|
|
cat /sys/class/drm/card1/device/mem_info_gtt_used 2>/dev/null || echo "No gtt info"
|
|
|
|
echo ""
|
|
echo "=== Process growth ==="
|
|
PID=$(pgrep -f 'python main.py' | head -1)
|
|
if [ -n "$PID" ]; then
|
|
ps -p $PID -o pid,pcpu,rss,vsz --no-header
|
|
echo "VmRSS: $(grep VmRSS /proc/$PID/status)"
|
|
fi
|