Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion benchmarks/scripts/run-performance-benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ kill_npu_processes() {
ps -aux
lsof -t -i:8000 | xargs -r kill -9
pgrep python3 | xargs -r kill -9

# vLLM now names the process with VLLM prefix after https://github.com/vllm-project/vllm/pull/21445
pgrep VLLM | xargs -r kill -9
Comment on lines 80 to +82
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Killing all processes named python3 is overly broad and poses a significant risk of terminating unrelated user or system processes, which could lead to data loss or system instability. This is a critical issue for script robustness.

Since vLLM processes are now specifically identified by the VLLM prefix, the generic pgrep python3 command is likely redundant and dangerous. It should be removed to make the cleanup process more targeted and safe.

Suggested change
pgrep python3 | xargs -r kill -9
# vLLM now names the process with VLLM prefix after https://github.com/vllm-project/vllm/pull/21445
pgrep VLLM | xargs -r kill -9
# vLLM now names the process with VLLM prefix after https://github.com/vllm-project/vllm/pull/21445
pgrep VLLM | xargs -r kill -9


sleep 4
rm -rf ~/.config/vllm

Expand Down
Loading