Skip to content

pd: a dead ProcessPrefillWorker child leaves requests pending forever #168

Closed

Description

@gspark-etri

Problem

The receiver thread blocks on _rep.get() and never checks _proc.is_alive(). If the child is OOM-killed or segfaults, futures never resolve, lanes stay in prefilling and readiness still reports OK.

Evidence and reproduction

opt_prime/opt_prime/accel/pd/pd_batching.py:205-231. Ran: after the child exited with code 9 the future was still pending 60 s later. SubprocessPrefillWorker._receive already handles this.

Environment

optimus-rm @253be20; Python 3.10, torch 2.10.0+cu128, transformers 5.1.0; RNGD+A100 host (CPU / one A100 for the checks).

Scope

ProcessPrefillWorker.

Done when

When the child dies, every outstanding future fails within a second; a test kills the child.

Owner

@gspark-etri

Activity

  1. gspark-etri commented on Oct 23, 2026

    @gspark-etri
    CollaboratorAuthor

    Fixed by #185, squash-merged into optimus-rm.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions