From nobody Wed Jul 10 22:24:06 2024 X-Original-To: fs@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 4WKC7r2K9Zz5RH2B for ; Wed, 10 Jul 2024 22:24:08 +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 4WKC7q69tGz4N48 for ; Wed, 10 Jul 2024 22:24:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720650247; a=rsa-sha256; cv=none; b=qirM2U7cXWjxI6tmIO/zAprkrwc8V261dGIyBE1vggDhmNibh/abGibtO4UNeFvYF0SiYf 0V1LrZVpQ7rf8r4cgu4BxcpUAhkzVi2iAg6lX5Xmt1B06dAUhmzVYmzyB4880OmswrZn1N HI5w9oTT0Ya3Ym38QLKEpp6mODlK1rLxWXZrjwQiL4GoriD9XKhFdOM3OA//GdiFEuXzVV D9/GLN/jf9AnmT64G1NpqPpAlnit7xNUctsfiMCxZkU4qRqZG5MjY1Y0dD9+ZkJRdICbgS qhODYlFRmQtWoZpZBUy9OmrMz/MCe6zGlOaaWgZmlZ5gWRqu9tqLwigQ7Svw/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720650247; 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=zuQn2XSMRY2BGQu6PvcZTGWMxl/AKDkmShrsNqE7IFE=; b=IADPoM0UMConfCxTY+grZQyJ9aQww8EOkoUxV3JI/bpm221GDtsBfr/+p7R2Pv+iL0cvCR 8N+Wewu8WfcloUXV5S/7zuRML536B8k7vT6kt60Y/NEeiD1p92RJYTUiDivo/groRRhjPg sF+cNI5Wi3Vm/1n2axHOnWSTs3ak/wR93Oa2Cw9/Km4g5/+v9O7g5umHZG3/st//6zYkqN LdzrPXWuj4qt6zXnzhz1x7Q1P1LDrORETr7b5aWzhGNFldHJF8bjHmjOYUKxYSXPdJcL7C KB8VNGAV+OAcmop5HQx9sUTu7dOSkYVA54lP0cHPJ2JSclv2aco/Ley4Zo7R1g== 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 4WKC7q4vtczb9M for ; Wed, 10 Jul 2024 22:24:07 +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 46AMO7GE023961 for ; Wed, 10 Jul 2024 22:24:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46AMO7Gf023956 for fs@FreeBSD.org; Wed, 10 Jul 2024 22:24:07 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: fs@FreeBSD.org Subject: [Bug 280216] UFS deadly hangs while removing snapshot Date: Wed, 10 Jul 2024 22:24:06 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mckusick@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mckusick@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc bug_status 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: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280216 Kirk McKusick changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|fs@FreeBSD.org |mckusick@FreeBSD.org CC| |mckusick@FreeBSD.org Status|New |Open --- Comment #1 from Kirk McKusick --- The problem that you are experiencing is because gjournal does not properly understand how to handle snapshots when cleaning up unused blocks. Fixing i= t is a considerable amount of work for a rarely used feature. I will make a chan= ge to disallow the taking of snapshots when gjournal is enabled. For your system you either need to stop taking snapshots or stop using gjournal. It is my recommendation that you stop using gjournal. You should enable soft updates as they will give you much better performance. For fast recovery after a crash you also need to enable soft update journal= ing. Unfortunately you cannot use snapshots with soft update journaling on 12-b= ased systems. You will need to upgrade to at least 13 and if you are upgrading y= ou might as well go to 14 to get a system that can take snapshots when running with soft update journaling. Soft updates journaling comes with a higher write load when running, but enables fsck to run in under a minute (and usually just a few seconds) afte= r a crash. Generally its recovery is even faster than gjournal provides. Please make my suggested changes and let me know if it solves you hangs. --=20 You are receiving this mail because: You are the assignee for the bug.=