Bug 1746844
| Summary: | systemd consumes all RAM until killed by OOM killer | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Johannes Niediek <jonied> | ||||||||
| Component: | systemd | Assignee: | systemd-maint | ||||||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 30 | CC: | eloranta, jonied, lnykryn, msekleta, ssahani, s, systemd-maint, zbyszek | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Linux | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2019-10-24 19:22:26 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: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Johannes Niediek
2019-08-29 11:37:51 UTC
Please attach strace to pid1: sudo strace -o logfile -p1 and run one of the triggering actions and attach the log file here. Created attachment 1612691 [details]
strace output
I have a similar problem. My strace log is attached above. If I ssh into the system, systemd starts running 100% CPU (a forked process by systemd as the pid is not 1) and allocating over 50% of the ram (64 GB on this computer). After a while, it goes away. Logging into the system is very slow, 20 sec. to get in. This is a NIS client if that matters. Created attachment 1612799 [details]
strace of the subprocess that consumes all CPU and all RAM
Created attachment 1612800 [details]
Strace of PID 1
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1) > Please attach strace to pid1: sudo strace -o logfile -p1 > and run one of the triggering actions and attach the log file here. I attached traces of both PID 1 and of the systemd subprocess that consumes all RAM and all CPU. I'm afraid none of them will be helpful, though. I don't see anything bad in the pid1 trace in attachment 1612800 [details]. First brk() is called with 0x5562241bd000,
the last with 0x55622419c000, so only about 135kB of heap are allocated. The other trace is empty.
Jussi's trace does not contain any memory related syscalls.
Are you using nss_nis?
Yes, I am using NIS. Here is what it looks like from top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 23031 root 20 0 52.2g 17.0g 4740 R 98.2 26.9 0:31.10 (systemd) Yeah, that looks very much like the long-standing issue with nss_nis. *** This bug has been marked as a duplicate of bug 1705641 *** |