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

unit: don't emit PropertiesChanged signal if adding a dependency to a unit is a no-op #17234

Merged
merged 1 commit into from Oct 7, 2020

Conversation

rmetrich
Copy link
Contributor

@rmetrich rmetrich commented Oct 2, 2020

Every time /proc/self/mountinfo is parsed, a PropertiesChanged signal is sent for remote mounts (NFS, CIFS, etc.).
This is due to unit_add_dependency() being called for each remote mount entry to set up the Before dependency on remote-fs.target.
For existing mounts, this has already be done in the past, so it's not necessary to do this over and over.

This avoids sending bursts of PropertiesChanged messages on systems having many remote mounts (e.g. Openshift deployments).
This is somehow a continuation of PR #15233 (#15233).

@lnykryn lnykryn added the downstream/rhel Tracking bugs for RHEL label Oct 6, 2020
@poettering poettering added the pid1 label Oct 7, 2020
@poettering poettering merged commit 5177cb0 into systemd:master Oct 7, 2020
@gleventhal
Copy link

This patch is awesome. Dbus exhaustion was killing my infrastructure, stalling SSH on dbus timeouts (25 seconds!!). Thanks for addressing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
downstream/rhel Tracking bugs for RHEL pid1
Development

Successfully merging this pull request may close these issues.

None yet

4 participants