Bug 1819868
Summary: | systemd excessively reads mountinfo and udev is dense OpenShift environments | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Matthew Robson <mrobson> | |
Component: | systemd | Assignee: | Michal Sekletar <msekleta> | |
Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 8.1 | CC: | amarirom, cfergeau, chris.bowles, djuran, dmunneor, dornelas, dtardon, fdeutsch, fiezzi, fkrska, guchen, ikent, jamacku, jcrumple, jhopper, joedward, li_zhou_julia, lmiksik, mfojtik, michele, mpatel, msekleta, qguo, rcain, rmetrich, rperiyas, sbroz, sperezto, svelosol, systemd-maint-list, vhernand | |
Target Milestone: | rc | Keywords: | TestCannotAutomate, Triaged | |
Target Release: | 8.0 | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | systemd-239-45.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1937315 (view as bug list) | Environment: | ||
Last Closed: | 2021-05-18 14:53:17 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1871029, 1937315, 1957726 |
Description
Matthew Robson
2020-04-01 18:58:55 UTC
I am working on a patch that will introduce possibility to set rate-limits on sd_event_source objects. We can then use the new API and apply rate-limiting on mountinfo event source. This should help us to workaround this issue until new fsinfo() kernel interface gives us possibility to receive only differential updates of the mount table. (In reply to Michal Sekletar from comment #2) > I am working on a patch that will introduce possibility to set rate-limits > on sd_event_source objects. We can then use the new API and apply > rate-limiting on mountinfo event source. This should help us to workaround > this issue until new fsinfo() kernel interface gives us possibility to > receive only differential updates of the mount table. Right, the fsinfo() and kernelwatch notifications changes are proving difficult to get merged upstream. Linux wants to see that these changes will be used by user space and are sufficient to help before merging the changes. We have assumed that means writing libmount and systemd code that shows the proposed changes work to resolve this and similar problems which is what I'm doing. Now, I've found the systemd notifications code difficult to follow but I've finally I've got to a point where I'm implementing the mount table handling in systemd (Karel Zak has done a lot of work on the libmount side already) with the new system. That is quickly leading to questions about what the unit update handling functions do and there's also the detail of of the notifications behaviour and matching them to each other to get the notified entry only updated. I posted to the systemd-devel list describing what I'm doing and asked for help but unfortunately, at that point, I couldn't be specific about what I was asking so got virtually no replies. So, if anyone on this bug is familiar with the unit processing function calls under mount_dispatch_io() I would very much appreciate any information on what they are meant to do, even an overview of the unit update process that occurs here would be useful. Ian (In reply to Ian Kent from comment #3) > > Linux wants to see that these changes will be used by user space and are > sufficient to help before merging the changes. We have assumed that means > writing libmount and systemd code that shows the proposed changes work to > resolve this and similar problems which is what I'm doing. > Of course that should be Linus not Linux, ;) *** Bug 1871106 has been marked as a duplicate of this bug. *** *** Bug 1878470 has been marked as a duplicate of this bug. *** *** Bug 1879152 has been marked as a duplicate of this bug. *** *** Bug 1931535 has been marked as a duplicate of this bug. *** fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/154 Hi, Michal and all: We met this issue on systemd-219-67.el7 (centos7) too. So is there any plan to port those patches back to systemd-219 (centos7)? Thanks. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: systemd security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1611 |