Skip to content

feat: the descriptors bar compares with the limit of the process when it is lower - #94

Merged
altrdev merged 1 commit into
mainfrom
feat/fd-real-limit
Oct 19, 2026
Merged

altrdev merged 1 commit into
mainfrom
feat/fd-real-limit

Conversation

@altrdev

@altrdev altrdev commented Oct 19, 2026

Copy link
Copy Markdown
Owner

/fd stops at the ulimit -n of the process (EMFILE), but the bar of watch and of the control panel compared with MAX_FD: with a limit of 2560 and MAX_FD 10000 the bar stayed at a quarter when the server had nothing left to give.

  • /info has fd.processLimit, the soft RLIMIT_NOFILE (null when unlimited). fd.limit is still MAX_FD.
  • watch and the panel use the lower of the two, so the bar is full at EMFILE; watch adds (ulimit) when it is the process that sets it.
  • The slider of /fd in the panel still goes up to MAX_FD, so EMFILE can be provoked.

Tests: the view in the three cases (lower, higher, no limit), /info shape, the system call. Checked by hand with ulimit -n 300 and 240 descriptors held: the panel shows 240 / 300.

🤖 Generated with Claude Code

@altrdev
altrdev merged commit d135214 into main Oct 19, 2026
6 checks passed
@altrdev
altrdev deleted the feat/fd-real-limit branch October 20, 2026 13:11
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