Download scripts/check_threads.sh from ShoaibSSM/a100-qwen-api-runtime: direct link, hf CLI and curl.
- Browser
- Download file 443 Bytes
-
https://huggingface.co/ShoaibSSM/a100-qwen-api-runtime/resolve/main/scripts/check_threads.sh
- Command line
-
hf download hf://ShoaibSSM/a100-qwen-api-runtime/scripts/check_threads.sh
-
curl -L -o check_threads.sh https://huggingface.co/ShoaibSSM/a100-qwen-api-runtime/resolve/main/scripts/check_threads.sh
443 Bytes
| set -u | |
| echo '=== CGROUP TASKS ===' | |
| printf 'current: '; cat /sys/fs/cgroup/pids.current | |
| printf 'max: '; cat /sys/fs/cgroup/pids.max | |
| echo | |
| echo '=== TOP THREAD USERS ===' | |
| ps -eo pid,ppid,comm,nlwp,%cpu,%mem --sort=-nlwp | head -20 | |
| echo | |
| echo '=== LLAMA PROCESSES ===' | |
| ps -eo pid,ppid,comm,nlwp,%cpu,%mem,args | grep -E '[l]lama' | |
| echo | |
| echo '=== THREAD ENV ===' | |
| env | grep -E 'TOKIO|OMP|MKL|OPENBLAS|NUMEXPR|VECLIB|BLIS' || true | |