Skip to content

cuda: keep async expert slots alive through completion - #989

Open
ZacharyZcR wants to merge 1 commit into
JustVugg:devfrom
ZacharyZcR:fix/933-eslot-inflight
Open

cuda: keep async expert slots alive through completion#989
ZacharyZcR wants to merge 1 commit into
JustVugg:devfrom
ZacharyZcR:fix/933-eslot-inflight

Conversation

@ZacharyZcR

Copy link
Copy Markdown
Contributor

Fixes #933.

Async CUDA expert groups can retain borrowed zero-copy views after moe() returns. This change adds per-slot in-flight references, acquires them before every async group issue, and releases them only after the corresponding stream-completing take().

Eviction, pilot reload, io_uring reload, and RSS reclamation now skip referenced slots. If every LRU slot is busy, cache promotion is skipped with a one-time warning instead of recycling live storage or waiting indefinitely.

A regression test covers victim selection while slots are referenced.

Verification:

  • make -C c test-c
  • make -C c -j2

CUDA hardware/toolkit is not available locally; CUDA-specific compilation and runtime coverage are left to CI and maintainer hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant