From a469eb1d679d921b66d9fd38b84e035cfefe186b Mon Sep 17 00:00:00 2001 From: Ata Fatahi Date: Wed, 11 Dec 2024 19:35:55 -0800 Subject: [PATCH] show gpu status after clean up Signed-off-by: Ata Fatahi --- scripts/killall_sglang.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/killall_sglang.sh b/scripts/killall_sglang.sh index d9899c95b6a..da9327e3fd1 100755 --- a/scripts/killall_sglang.sh +++ b/scripts/killall_sglang.sh @@ -11,3 +11,6 @@ kill -9 $(ps aux | grep 'sglang.bench' | grep -v 'grep' | awk '{print $2}') 2>/d # Clean all GPU processes kill -9 $(nvidia-smi | sed -n '/Processes:/,$p' | grep " [0-9]" | awk '{print $5}') 2>/dev/null lsof /dev/nvidia* | awk '{print $2}' | xargs kill -9 2>/dev/null + +# Show GPU status after clean up +nvidia-smi