Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(RHEL-27383) udev: raise RLIMIT_NOFILE as high as we can #239

Merged

Conversation

dtardon
Copy link
Member

@dtardon dtardon commented Feb 29, 2024

We might need a lot of fds on large systems, hence raise RLIMIT_NOFILE to what the service manager allows us, which is quite a lot these days.

udev already sets FORK_RLIMIT_NOFILE_SAFE when forking of chilren, thus ensuring that forked off processes get their RLIMIT_NOFILE soft limit reset to 1K for compat with crappy old select().

Replaces: #29298
Fixes: #28583
(cherry picked from commit 1617424)

Resolves: RHEL-27383

We might need a lot of fds on large systems, hence raise RLIMIT_NOFILE
to what the service manager allows us, which is quite a lot these days.

udev already sets FORK_RLIMIT_NOFILE_SAFE when forking of chilren, thus
ensuring that forked off processes get their RLIMIT_NOFILE soft limit
reset to 1K for compat with crappy old select().

Replaces: #29298
Fixes: #28583
(cherry picked from commit 1617424)

Resolves: RHEL-27383
@github-actions github-actions bot changed the title udev: raise RLIMIT_NOFILE as high as we can (RHEL-27383) udev: raise RLIMIT_NOFILE as high as we can Feb 29, 2024
@github-actions github-actions bot added tracker/invalid-product pr/needs-ci Formerly needs-ci pr/needs-review Formerly needs-review labels Feb 29, 2024
Copy link

github-actions bot commented Feb 29, 2024

Commit validation

Tracker - RHEL-27383

The following commits meet all requirements

commit upstream
7a86896 - udev: raise RLIMIT_NOFILE as high as we can systemd/systemd@1617424
3b848a1 - packit: use RHEL 9.3 spec RHEL-only
5445466 - test: use the default nsec3-iterations value systemd/systemd@0652cf8
8594077 - test: explicitly set nsec3-iterations to 0 systemd/systemd@cb3244c
c051981 - test: merge TEST-20-MAINPIDGAMES into TEST-07-PID1 (fixup) systemd/systemd@3a4b862

Tracker validation

Success

🟢 Tracker RHEL-27383 has set desired product: rhel-9.3.0
🟢 Tracker RHEL-27383 has set desired component: systemd
🟢 Tracker RHEL-27383 has been approved


Pull Request validation

Success

🟢 CI - All checks have passed
🟢 Review - Reviewed by a member
🟢 Approval - Changes were approved


Auto Merge

Failed

🔴 Pull Request has unsupported target branch rhel-9.3.0, expected branches are: 'main,master'

Success

🟢 Pull Request is not marked as draft and it's not blocked by dont-merge label
🟢 Pull Request meet requirements, title has correct form
🟢 Pull Request meet requirements, mergeable is true
🟢 Pull Request meet requirements, mergeable_state is clean

@mrc0mmand
Copy link
Member

Similarly to #240, I slapped on a couple of commits to make the CIs, hopefully, happy.

@mrc0mmand mrc0mmand force-pushed the RHEL-27383-udevd-RLIMIT_NOFILE branch from 105aa3d to 83e2ee4 Compare March 4, 2024 10:53
mrc0mmand and others added 4 commits March 4, 2024 12:20
The latest spec contains ukify shenanigans which we don't have in 9.3,
making CI sad.

Related: RHEL-27383
RHEL-only
In Knot 3.2 the nsec3-iterations default was changed to 0 and Knot now
issues a warning if the value is > 0. Let's just use the default value,
since it's not something that's important for our tests.

(cherry picked from commit 0652cf8)

Related: RHEL-27383
knot v3.2 and later does this by default. knot v3.1 still has the default set to
10, but it also introduced a warning that the default will be changed to 0 in
later versions, so it effectively complains about its own default, which then
fails the config check. Let's just set the value explicitly to zero to avoid
that.

~# knotc --version
knotc (Knot DNS), version 3.1.6
~# grep nsec3-iterations test/knot-data/knot.conf || echo nope
nope
~# knotc -c /build/test/knot-data/knot.conf conf-check
warning: config, policy[auto_rollover_nsec3].nsec3-iterations defaults to 10, since version 3.2 the default becomes 0
Configuration is valid

Follow-up to 0652cf8.

(cherry picked from commit cb3244c)

Related: RHEL-27383
Forgotten snippet from the original commit, complements commit
7782746.

(cherry picked from commit 3a4b862)
(cherry picked from commit 02db660)

Related: RHEL-27383
@mrc0mmand mrc0mmand force-pushed the RHEL-27383-udevd-RLIMIT_NOFILE branch from 83e2ee4 to c051981 Compare March 4, 2024 11:26
@github-actions github-actions bot removed the pr/needs-ci Formerly needs-ci label Mar 4, 2024
Copy link
Member

@jamacku jamacku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added pr/needs-manual-merge Formerly pr/needs-manual-merge and removed pr/needs-review Formerly needs-review labels Mar 7, 2024
@jamacku jamacku merged commit 36bdc98 into redhat-plumbers:rhel-9.3.0 Mar 8, 2024
29 checks passed
@dtardon dtardon deleted the RHEL-27383-udevd-RLIMIT_NOFILE branch March 11, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants