From nobody Sat Feb 11 23:42:50 2023 X-Original-To: ports-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 4PDnGL5SgTz3rCkk for ; Sat, 11 Feb 2023 23:42:50 +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 4PDnGL3j5Hz3rWV for ; Sat, 11 Feb 2023 23:42:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676158970; 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=ftE/RgfTwzlBM11K3W1PCTziC4NKin+aO5mlgfC5Rmg=; b=u1sYfi4+W1nQn9A5FlLsDa9Z5vctsb+EmeflHUku1dQ2sS/p1PFewwrIrgzF6Z7WK+b/ZS tndbP3+tK33Emk2ACaQBBAYHch7itCvVGFJzl7em5ll2NQXBq8qaJ/vSHTlfoseuXA5RRr 3lsgQgHNGOT4tLRt95e3t/1lyytSnY1NHvHpIaDcKF6RWnzhDdmhNaohB1g9JOB5O9On3T 2oAjCa6tIUAq1zgPyXZjQbTWzrCftwO+n6ZZ0Yfp8gnJtbq56eMGhpzKVPITb3DEgWnA6P c8WL4EYF68aS37uywCSgnhkUkfDge23/rt5WGppv71FDEAkta4bPaoHp4BET2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676158970; a=rsa-sha256; cv=none; b=enHoK8Ka4Ped8G3GAoXoWjrEA0fqdi89gshELWZEsdeU4zDtPOjfmQT6qkiqGpI/1v2yid ltfLMdZHWCCT1Dn+Rw4XNBlLJoCFkHmXA8+4OP5MP3T8Jb9YjsVRGwaClU6PwFXghm+wLJ AmzYxsLmtF71cu/+TyQTH7wsh/KF+XstlVNbH9y7IiNGP+qW5vxRtfdcXp+PSpU8rfWDkI kFpwlxqXU+rqyUlfBbLf2u3Mp7lLWPC7z/9Du9pTajjLmLdzQhgiopD//AnSTSFBW7mBRR icPXvfprJR7UvbW9dm/BTI1x5vK7vbiD40uhr66quXJ+HWxumx8Atas4OZAFNw== 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 4PDnGL2n8wzHRv for ; Sat, 11 Feb 2023 23:42:50 +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 31BNgoGc057697 for ; Sat, 11 Feb 2023 23:42:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31BNgoD0057696 for ports-bugs@FreeBSD.org; Sat, 11 Feb 2023 23:42:50 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: ports-bugs@FreeBSD.org Subject: [Bug 211674] sysutils/fusefs-ntfs: fuse_vnode leak/reclamation failure Date: Sat, 11 Feb 2023 23:42:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211674 --- Comment #11 from Alan Somers --- Ok, here are the results of my investigations: 1) It's not a problem that the vnode number keeps rising. The kernel doesn= 't reclaim vnodes as soon as all their file descriptors get closed. Rather, t= he vnodes remain allocated just in case the same file system decides it needs = to use some more. The kernel won't reclaim vnodes until unmount or until it starts to run low on vnodes, possibly due to activity on some other file system. 2) It's mostly not a problem that the fuse_msgbuf value keeps rising (but s= ee caveat below). Similarly to the vnode situation, uma does not free items as soon as they are no longer needed. But it will free them in response to me= mory pressure. See uma(9). 3) There are some actual resource leaks, which can be observed by the value= of "sysctl vfs.fusefs.stats.ticket_count". Those are probably responsible for some of the fuse_msgbuf memory consumption, but probably a minority. I'll = work on fixing these. The first one I found is in an error path, triggerable by= a malicious server. 4) You probably aren't the only person to notice slow unmounts. That's probably why the FUSE protocol describes a BATCH_FORGET operation. It isn't implemented in FreeBSD, but probably could be. I don't know if fuse-ntfs is able to take advantage. --=20 You are receiving this mail because: You are the assignee for the bug.=