Skip to content

[Nexthop][distro] Raise root's nofile ulimit for hw tests - #1402

Open
zackary-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:zackary-nexthop.distro.m4062nhp.fd-exhaustion
Open

[Nexthop][distro] Raise root's nofile ulimit for hw tests#1402
zackary-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:zackary-nexthop.distro.m4062nhp.fd-exhaustion

Conversation

@zackary-nexthop

@zackary-nexthop zackary-nexthop commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

qsfp_hw_test opens one thread per transceiver slot. On m4062nhp (129 transceiver slots) this exceeds the default ulimit -n of 1024, so every test case fails in SetUp() with "Too many open files". Lower-port platforms never hit this ceiling.

Raises root's nofile default to 65536 via a limits.d entry in the image template. No new capability granted: the hard limit was already 524288 system-wide.

Test Plan

Applied the same limits.conf change on a live m4062nhp DUT and confirmed ulimit -n reads 65536 and the previously-failing qsfp hw tests now pass.

@zackary-nexthop
zackary-nexthop requested a review from a team as a code owner July 22, 2026 11:56
@meta-cla meta-cla Bot added the CLA Signed label Jul 22, 2026
@zackary-nexthop
zackary-nexthop force-pushed the zackary-nexthop.distro.m4062nhp.fd-exhaustion branch from fb0b34f to a562278 Compare July 22, 2026 14:20
@srikrishnagopu

Copy link
Copy Markdown
Contributor

Please remove the m4062 tag since this is related to Distor.

@kevin645 please review.

@srikrishnagopu
srikrishnagopu requested a review from kevin645 July 23, 2026 20:42
@meta-codesync

meta-codesync Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

@kevin645 has imported this pull request. If you are a Meta employee, you can view this in D113475164.

@zackary-nexthop
zackary-nexthop force-pushed the zackary-nexthop.distro.m4062nhp.fd-exhaustion branch from a562278 to caf1b44 Compare July 24, 2026 12:55
@facebook-github-tools

Copy link
Copy Markdown

@zackary-nexthop has updated the pull request. You must reimport the pull request before landing.

**Pre-submission checklist**
- [x] I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running `pip install -r requirements-dev.txt && pre-commit install`
- [x] `pre-commit run`

`qsfp_hw_test` opens one thread per transceiver slot. On m4062nhp (129
transceiver slots) this exceeds the default `ulimit -n` of 1024, so
every test case fails in `SetUp()` with "Too many open files".
Lower-port platforms never hit this ceiling.

Raises root's nofile default to 65536 via a limits.d entry in the image
template. No new capability granted: the hard limit was already 524288
system-wide.

Applied the same `limits.conf` change on a live m4062nhp DUT and
confirmed `ulimit -n` reads 65536 and the previously-failing qsfp hw
tests now pass.
@zackary-nexthop
zackary-nexthop force-pushed the zackary-nexthop.distro.m4062nhp.fd-exhaustion branch from caf1b44 to ec818fa Compare July 24, 2026 12:56
@facebook-github-tools

Copy link
Copy Markdown

@zackary-nexthop has updated the pull request. You must reimport the pull request before landing.

@zackary-nexthop zackary-nexthop changed the title [Nexthop][distro][m4062nhp] Raise root's nofile ulimit for hw tests [Nexthop][distro] Raise root's nofile ulimit for hw tests Jul 24, 2026
@zackary-nexthop

zackary-nexthop commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

@kevin645 has imported this pull request. If you are a Meta employee, you can view this in D113475164.

@kevin645 @srikrishnagopu I hadn't noticed that this had been imported already. Had to rebase so workflows pass, hope that's ok!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants