Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
0f872b79
Unverified
Commit
0f872b79
authored
Nov 07, 2025
by
Boyuan Feng
Committed by
GitHub
Nov 07, 2025
Browse files
[Log] update shm wait time msg (#28255)
parent
4b1ff132
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
vllm/distributed/device_communicators/shm_broadcast.py
vllm/distributed/device_communicators/shm_broadcast.py
+12
-10
No files found.
vllm/distributed/device_communicators/shm_broadcast.py
View file @
0f872b79
...
...
@@ -49,6 +49,16 @@ def to_bytes_big(value: int, size: int) -> bytes:
logger
=
init_logger
(
__name__
)
def
long_wait_time_msg
(
threshold
:
int
)
->
str
:
return
(
"No available shared memory broadcast block found "
f
"in
{
threshold
}
seconds. This typically happens "
"when some processes are hanging or doing some "
"time-consuming work (e.g. compilation, "
"weight/kv cache quantization)."
)
class
SpinTimer
:
def
record_activity
(
self
):
pass
...
...
@@ -422,11 +432,7 @@ class MessageQueue:
# if we wait for a long time, log a message
if
elapsed
>
VLLM_RINGBUFFER_WARNING_INTERVAL
*
n_warning
:
logger
.
info
(
"No available shared memory broadcast block found"
" in %s seconds. This typically happens when some"
" processes are hanging or doing some"
" time-consuming work (e.g. compilation)"
,
VLLM_RINGBUFFER_WARNING_INTERVAL
,
long_wait_time_msg
(
VLLM_RINGBUFFER_WARNING_INTERVAL
)
)
n_warning
+=
1
...
...
@@ -493,11 +499,7 @@ class MessageQueue:
elapsed
>
VLLM_RINGBUFFER_WARNING_INTERVAL
*
n_warning
):
logger
.
info
(
"No available shared memory broadcast block found"
" in %s seconds. This typically happens when some"
" processes are hanging or doing some"
" time-consuming work (e.g. compilation)."
,
VLLM_RINGBUFFER_WARNING_INTERVAL
,
long_wait_time_msg
(
VLLM_RINGBUFFER_WARNING_INTERVAL
)
)
n_warning
+=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment