[Bug 194980] New: lsof spins until killed on -CURRENT

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 13 04:29:27 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194980

            Bug ID: 194980
           Summary: lsof spins until killed on -CURRENT
           Product: Ports Tree
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: marcus at blazingdot.com

lsof does two things that are a little strange and make it unusable.

First, it does a getdtablesize(), finds out that the process could have a max
of 233388 file descriptors open, and then attempts to close every single one,
in order. This takes time and seems like a throwback from more innocent times.

Then, it spends a large amount of time trawling through /dev/kmem reading
through some zfs-related data. It does this until it is killed.

My system:

FreeBSD sol 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r274293M: Sat Nov  8 08:39:28
PST 2014     root at sol:/usr/obj/usr/src/sys/GENERIC  amd64

Running root on zfs.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list