From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 13 04:29:27 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BAC7E31E for ; Thu, 13 Nov 2014 04:29:27 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2DE0A8F for ; Thu, 13 Nov 2014 04:29:27 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAD4TRDx045039 for ; Thu, 13 Nov 2014 04:29:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 194980] New: lsof spins until killed on -CURRENT Date: Thu, 13 Nov 2014 04:29:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: marcus@blazingdot.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2014 04:29:27 -0000 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@FreeBSD.org Reporter: marcus@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@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.