Repository navigation
[Core] Remove busy loop from idle buffer readers - #28053
Merged
Merged
Conversation
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
joerunde
commented
Nov 13, 2025
| active_procs = lambda: [proc for proc in worker_procs if proc.is_alive()] | ||
|
|
||
| # Give processes time to clean themselves up properly | ||
| if wait_for_termination(active_procs(), 4): |
Collaborator
Author
There was a problem hiding this comment.
could shorten these 4s so the total time is not so long in the worst case
joerunde
commented
Nov 13, 2025
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
tjohnson31415
force-pushed
the
new-poll-fix
branch
from
November 18, 2025 17:52
7b2360e to
c1db67c
Compare
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
tjohnson31415
force-pushed
the
new-poll-fix
branch
from
November 18, 2025 18:11
c1db67c to
74cc6d5
Compare
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com>
joerunde
marked this pull request as ready for review
December 18, 2025 19:09
lihaokun-2026
pushed a commit
to lihaokun-2026/vllm-ascend
that referenced
this pull request
Mar 29, 2026
### What this PR does / why we need it? Update main2main to vllm 0308. breaks: * vllm-project/vllm#30681 * vllm-project/vllm#35552 remove self.cudagraph_batch_sizes * vllm-project/vllm#35158 clear_metadata -> defer_finalize * vllm-project/vllm#36006 remove CacheConfig.cpu_offload_gb * vllm-project/vllm#35472 * vllm-project/vllm#34552 attn_metadata_builder * vllm-project/vllm#30515 profile_seq_lens * vllm-project/vllm#28053 - vLLM version: v0.16.0 - vLLM main: vllm-project/vllm@4034c3d --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: menogrey <1299267905@qq.com> Co-authored-by: MrZ20 <2609716663@qq.com>
chenchuw886
pushed a commit
to chenchuw886/vllm-ascend
that referenced
this pull request
Apr 1, 2026
### What this PR does / why we need it? Update main2main to vllm 0308. breaks: * vllm-project/vllm#30681 * vllm-project/vllm#35552 remove self.cudagraph_batch_sizes * vllm-project/vllm#35158 clear_metadata -> defer_finalize * vllm-project/vllm#36006 remove CacheConfig.cpu_offload_gb * vllm-project/vllm#35472 * vllm-project/vllm#34552 attn_metadata_builder * vllm-project/vllm#30515 profile_seq_lens * vllm-project/vllm#28053 - vLLM version: v0.16.0 - vLLM main: vllm-project/vllm@4034c3d --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: menogrey <1299267905@qq.com> Co-authored-by: MrZ20 <2609716663@qq.com>
5 tasks
1 task done
yangzhe-2026
pushed a commit
to yangzhe-2026/vllm-ascend
that referenced
this pull request
May 6, 2026
### What this PR does / why we need it? Update main2main to vllm 0308. breaks: * vllm-project/vllm#30681 * vllm-project/vllm#35552 remove self.cudagraph_batch_sizes * vllm-project/vllm#35158 clear_metadata -> defer_finalize * vllm-project/vllm#36006 remove CacheConfig.cpu_offload_gb * vllm-project/vllm#35472 * vllm-project/vllm#34552 attn_metadata_builder * vllm-project/vllm#30515 profile_seq_lens * vllm-project/vllm#28053 - vLLM version: v0.16.0 - vLLM main: vllm-project/vllm@4034c3d --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: menogrey <1299267905@qq.com> Co-authored-by: MrZ20 <2609716663@qq.com>
1 task done
mystous
pushed a commit
to mystous/vllm_hybrid
that referenced
this pull request
May 10, 2026
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com> Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com> Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Travis Johnson <tsjohnso@us.ibm.com> Co-authored-by: Nick Hill <nickhill123@gmail.com>
mystous
pushed a commit
to mystous/vllm_hybrid
that referenced
this pull request
May 10, 2026
vllm-project#36068) Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com> Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Nick Hill <nickhill123@gmail.com>
nanxingMy
pushed a commit
to nanxingMy/vllm-ascend
that referenced
this pull request
May 15, 2026
### What this PR does / why we need it? Update main2main to vllm 0308. breaks: * vllm-project/vllm#30681 * vllm-project/vllm#35552 remove self.cudagraph_batch_sizes * vllm-project/vllm#35158 clear_metadata -> defer_finalize * vllm-project/vllm#36006 remove CacheConfig.cpu_offload_gb * vllm-project/vllm#35472 * vllm-project/vllm#34552 attn_metadata_builder * vllm-project/vllm#30515 profile_seq_lens * vllm-project/vllm#28053 - vLLM version: v0.16.0 - vLLM main: vllm-project/vllm@4034c3d --------- Signed-off-by: MrZ20 <2609716663@qq.com> Signed-off-by: menogrey <1299267905@qq.com> Co-authored-by: MrZ20 <2609716663@qq.com> Signed-off-by: nanxing <1014662416@qq.com>
my-other-github-account
pushed a commit
to my-other-github-account/vllm
that referenced
this pull request
May 15, 2026
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com> Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com> Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Travis Johnson <tsjohnso@us.ibm.com> Co-authored-by: Nick Hill <nickhill123@gmail.com>
my-other-github-account
pushed a commit
to my-other-github-account/vllm
that referenced
this pull request
May 15, 2026
vllm-project#36068) Signed-off-by: Travis Johnson <tsjohnso@us.ibm.com> Signed-off-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Nick Hill <nickhill123@gmail.com>
This was referenced May 18, 2026
1027866388
added a commit
to 1027866388/vllm-ascend
that referenced
this pull request
May 18, 2026
The upstream vLLM has fixed the sched_yield issue: vllm-project/vllm#28053 The workaround patch is no longer needed. Fixes: vllm-project#9237 Signed-off-by: a1eva <1027866388@users.noreply.github.com>
wangxiyuan
added a commit
to vllm-project/vllm-ascend
that referenced
this pull request
May 19, 2026
patch_sched_yield is useless now. The problem is fixed by vllm-project/vllm#28053 - vLLM version: v0.20.2 - vLLM main: vllm-project/vllm@0d4d334 Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
Tian-Fantasea
pushed a commit
to Tian-Fantasea/vllm-ascend
that referenced
this pull request
May 19, 2026
patch_sched_yield is useless now. The problem is fixed by vllm-project/vllm#28053 - vLLM version: v0.20.2 - vLLM main: vllm-project/vllm@0d4d334 Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Signed-off-by: Tian <tt553093031@gmail.com>
Tian-Fantasea
pushed a commit
to Tian-Fantasea/vllm-ascend
that referenced
this pull request
May 19, 2026
patch_sched_yield is useless now. The problem is fixed by vllm-project/vllm#28053 - vLLM version: v0.20.2 - vLLM main: vllm-project/vllm@0d4d334 Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com> Signed-off-by: Tian <tt553093031@gmail.com>
1 of 2 tasks
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
IBM bundles vLLM with SystemZ mainframes, and in these systems:
This makes the fix from #16226 unacceptable for our customers, so this PR is a similar alternative to #24618 that completely removes the need for a busy loop at idle in the shared memory buffer readers.
This PR uses ZMQ to send write notifications which readers can wait for, however it also uses an in-process socket to wake up the reader on shut down so that there's no need to constantly wake up to check for a cancellation flag. This allows us to sleep indefinitely on a
zmq.Pollerso that the reader only wakes up when there is work to do, or it needs to shutdown.I tried to contain the diff here inside of shm_broadcast.py as much as possible, the main change is swapping
SpinTimerwithSpinCondition. The changes that leaked out are:MessageQueue.deque()api no longer takes acancelevent, instead it exposes a.shutdown()api that the thread runningmonitor_parent_deathcalls.VLLM_SLEEP_WHEN_IDLEenv var has been removedTest Plan
SpinConditionbefore taking out of draftTest Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.