From nobody Mon Jan 31 18:03:33 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 392F0197A746 for ; Mon, 31 Jan 2022 18:03:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JnbXN6cMbz4glB for ; Mon, 31 Jan 2022 18:03:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C329F20B60 for ; Mon, 31 Jan 2022 18:03:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20VI3W7M037008 for ; Mon, 31 Jan 2022 18:03:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20VI3WWH037007 for bugs@FreeBSD.org; Mon, 31 Jan 2022 18:03:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 261603] sysctl kern.vnode disabled in 2003, can we re-enable now? Date: Mon, 31 Jan 2022 18:03:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: risner@stdio.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643652213; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRTgaN2w8234ra7onZ+O5D5RM6NGloKF/Df05hHXH+E=; b=y0y92R92GbCR8ns+CTCfV0fRsfDeGQBwfY7jf4IFl9Yr0EFQaTQUyRS4BetlH1mdmB9syP KOVOIk5a4h09Chy6FSUQKKZ0o+r72zzmVxuVypv2rHqwR/fRCd4k4vg/3hy6T0wfHMLdgE uNpopyNFmWCvKEhgFDwmqDGwzdRPb6/mB7u3Zr2twT6O6/TwENW48t4I+4tfeBIv9zSCLk IAqzlJ3ZxjwNM0wY7TgnmdnQl9FWPkA2HjT+hGU2AgJLStB2k1OC4v+4kVsEVgN9VeHoIh mXxMg6Wupz2q1XlURJHqWoxTZ1s/05NTo+zSTU7ixPIX0jZZCP49sNrfa1eJGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643652213; a=rsa-sha256; cv=none; b=T8GcpouxBoZcZ6rwH+yMg9OzPGHE3ntjYFkq5iBOGpn3QX5lR1JLpE4ZKIlB5uyEsupjfT v50DlKxIRMdLUYcB4gn1QC4J0bdCOSIvGGdKEZZX5zy6GX+yWQ3+CwW1i2sSWwyq5H2u9p IX0UWdfwZoSzujZJ8oPlFh1oAalqldFBSUjcahog+jLQObG4zQcELhJPURYWuMFHtsqbuW l/gSlNPJ0/hqLCoxePlBJOPb3YM0m9E4NREJpP42n28rcSqX54eqLH59lwekZSgHiJMhsn k9XdsfORVlPCJwg2qwzW6CPUg137HyHWREsjgQsrJFd8oqFYwoWDdxgtr77pmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261603 risner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |risner@stdio.com --- Comment #2 from risner --- Currently lsof in ports can't list pathnames for open zfs files. The author of the patch to lsof to use FreeBSD abi (sysctl calls) to replace man of the /dev/kmem reads puts it this way: "The CTL_KERN + KERN_VNODE sysctl needs to work. Without it we cannot access the inode ("NODE" column) nor filter by inode or vnode id, nor determine an open file's filesystem efficiently or sometimes at all (if kinfo_file.kf_pa= th is empty, then statfs() can't work, whereas we can cache results from previ= ous statfs() and match by xvnode.xv_mount). There could be further limitations." If you do lsof with no options it look up all open files belonging to all active processes. It would use this call to obtain that data or it would ob= tain the same by reading kernel memory. The goals is to reduce or eliminate kern= el memory reads by switching to other sources like sysctl calls for the data. If you need more detail about this, here is the thread: https://github.com/lsof-org/lsof/pull/184#issuecomment-1023556335 Also, I may be able to answer more direct questions. But I'm just a motivat= ed user of lsof wishing to regain features lost in recent FreeBSD release after the move to OpenZFS. --=20 You are receiving this mail because: You are the assignee for the bug.=