Skip to content

fix(decode): raise the open-file soft limit before spawning workers - #1707

Merged
shihaobai merged 2 commits into
mainfrom
bsh/decode-fd-limit
Nov 12, 2026
Merged

shihaobai merged 2 commits into
mainfrom
bsh/decode-fd-limit

Conversation

@shihaobai

Copy link
Copy Markdown
Collaborator

Decode requests can fail with EMFILE when shared-memory allocations hit a low open-file soft limit. Raise it to 65536 within the existing hard limit before spawning Decode workers, retaining the current limit if the update is denied.

Validation: Linux child inheritance, Prefill unchanged, permission denial, hard-limit caps and already sufficient limits.

@shihaobai
shihaobai merged commit db192ec into main Nov 12, 2026
1 check passed
@shihaobai
shihaobai deleted the bsh/decode-fd-limit branch November 12, 2026 11:10
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