From nobody Fri Oct 18 06:25:09 2024 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 4XVF795j0bz5Yn6m for ; Fri, 18 Oct 2024 06:25:09 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XVF793zBlz4ZKh for ; Fri, 18 Oct 2024 06:25:09 +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=1729232709; 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; bh=yK5chxTeGxTKBPA1VO14UQpsgUs1D0Svia5vnd7z5j8=; b=gP1N4bYqoshzzSFyENQg/ML81tBHGcLdzgQKhK9/pDMTGY7Rx2i4ovqJehedK5n4ccX588 SNzCw5U/qnYy2gZDq3WLlqOAKZodsKFmXMzR4hNDsTgH6YELXH8zhZxMF9kVf1tvW4lakE Rj6qdd7xXBeqLp1oDKva3U5+MhoClgSFrg3kflKfpmeTyQ3u/fDtDxHznDbgQCouBt2Fjg 4dNUA/IpwsV2MWugJ8U42WG1IZcVXAWDHZNDG6Rw0C6tP+Q+SU9iTIeoAITai25B+cP4pc gQ6LLmkIi1QbH0wsGS0pptYKr3967hQpoAs3x8Tu2v6TIn4Svap/MxfihLiF6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729232709; a=rsa-sha256; cv=none; b=Z5i7OnKedh9Dx/Rs/S6BV32rK7pFcosl43XRkS0kh9P2341h1tG9FZ6ql4V2W6mTEiZ9jI duOkaWFtuUsEvVc2H+IuZ5xuYnZsxZbZIz8f76LkmEpE2zLda5Wq+nN4Yp8o0FYrOC9v22 CqhDJAc//w1Ltqn3eOJmylfmI0u970BrTJLsM1LHBG6IO2Q7KKXCoapEJQKUC8F7bn53HP 66gJnvYaWW5W7t2KM8lK90MqwhEJkNY3h4Gzs5HOS1itTDhFuMQVcbn1HYTLEmwT19xBh3 hNRdANqpjgdqmMNDRGNWaZHXa44PUzNonnJ+m/qunMLKVN8W0oNCnNw2lDL+qA== 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 4XVF793ZsYzNKW for ; Fri, 18 Oct 2024 06:25:09 +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 49I6P9mH044326 for ; Fri, 18 Oct 2024 06:25:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49I6P9CJ044325 for bugs@FreeBSD.org; Fri, 18 Oct 2024 06:25:09 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 282169] zfs rename deadlock with mountd, df & fstat (and possibly others) Date: Fri, 18 Oct 2024 06:25:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pen@lysator.liu.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org 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 attachments.created Message-ID: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282169 Bug ID: 282169 Summary: zfs rename deadlock with mountd, df & fstat (and possibly others) Product: Base System Version: 13.4-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: pen@lysator.liu.se Created attachment 254323 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D254323&action= =3Dedit Output from "procstat -kk -a" at the time of the deadlock Ran into a deadlock involving doing "zfs rename" on a large number of filesystems on one of our production servers a couple of days ago.=20 I was renaming them from DATA/{staff,students}/ to DATA/archive/{staff,students}/. While running that script the first 167 (out of about 20000) filesystems wo= rked fine, and then it deadlocked - mountd stopped servicing new requests, a "df= -it zfs" never finished and same with an "fuser" command. (I run another script from cron every minute that logs how the system looks= by saving the output from "df -it zfs", "fuser", "procstat -kk -a" and a bunch= of other commands, that script also stopped working at the time of the deadloc= k). Looking at the output from "procstat -kk -a" (included) it seems the hanging processes were blocked with some ZFS locks.=20 I found an old bug report from around 2016 (209158) where something similar= is discussed, but that was with the old FreeBSD-ZFS code. I eventually had to hard-reset the server since it never recovered (atleast= not in the 5 hours I waited). --=20 You are receiving this mail because: You are the assignee for the bug.=