Summary: | sysutils/lsof consumes all swap space | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Sigi <freebsd-bt> |
Component: | Individual Port(s) | Assignee: | Larry Rosenman <ler> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | Waldemar.dick, attila.kover, cy, devin, freebsd-doc, theraven |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(ler) |
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Sigi
2020-11-07 16:15:40 UTC
Doesn't it just! It ate through 32Gb of RAM and a 4Gb swap file for me - took a remote server out in the process. The first time I ran it, nothing was displayed for several minutes so I broke out of it and tried again with the option for "non-blocking" system calls. Some while later it was "Thankyou and goodnight" from FreeBSD 12.2-RELEASE. Having driven 100 miles to find out what happened, I looked in the logs and it was clear the swap space had been eaten. The only other thing running was nsfd, and I had cp in the background copying data to a small (400Gb) ZFS dataset - booted of UFS. Can you provide uname -a output please. (In reply to Cy Schubert from comment #2) ``` $ uname -a FreeBSD {hostname} 12.2-RELEASE-p1 FreeBSD 12.2-RELEASE-p1 GENERIC amd64 ``` This seems to be a fairly recent regression. I saw it because I have rkhunter running its periodic security job and it dies (it also sometimes kills a bunch of other things because it runs the entire system out of memory). Running lsof myself, I can see exactly the behaviour described here. I have fdescfs mounted, but not procfs. Looking at ktrace, it appears as if it is opening /dev/kmem and then reading the entire contents in a loop. It is reading from fd 4 in a loop and that appears to have been opened very early on in the trace. Same here. The problem persist regardless of the amount and existence of swap. sysctl hw.realmem hw.realmem: 8589934592 uname -a FreeBSD {hostname} 12.2-RELEASE-p1 FreeBSD 12.2-RELEASE-p1 GENERIC amd64 freebsd-version -kru 12.2-RELEASE-p1 12.2-RELEASE-p1 12.2-RELEASE-p2 Best Attila I believe this is a duplicate of 250916 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250916 This bug talks about it going cpu bound and never exiting -- but at the same time it is also allocating memory. I had the same symptoms until I upgraded my ports tree past r554915 Sigi, does this still happen with the latest lsof build from ports? |