From nobody Fri Nov 01 20:34:15 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 4XgCJS0XNGz5cQFs for ; Fri, 01 Nov 2024 20:34:16 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XgCJR3HyRz4XmS for ; Fri, 1 Nov 2024 20:34:15 +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=1730493255; 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=pRyXmwhfJhLG5OrxySRcYkfJqyVEeJyEeOWL5O7udtk=; b=ewcQsjXvaVhYJkiyeAUX4Qtnz2tYtu8/BcHQBcl/mBfPpkTRvha1/zqiIHHLHQBp4mvrpA vJhHfOG0s9vqKSleS1XagjFR1igR7hwomJRJ9htcFWk+BvnzbQdvu7Q5EXmUZcemoQxLdD dL7DijIP/BsB/YNwVZdSOwpfl1CNNAjOH98+mtn40WZZB6Gx6julqgnmB7MJbpxvn67cr3 cgKQ34W+Xw2BfYLgwLx98OMQdyYcFFGc44Eh50//bmgUvX1jaDKtyVFuK+JUjyiWWFnFdF MUJqcD6T6NBOA7uHVvIEL13cYP2UjetjvSuh7gI6z6yiHlnOAeQ2sQolwfEHqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730493255; a=rsa-sha256; cv=none; b=uU8qFSXFNObcfw8fKAGpqZa1KSo3jE1ZI5nj/6bfqQLildPVEDm2o11mF7PTQsntopdaYz gyCd11+v/HRlJPhYttNo8HG0CngdxEDcE+nOHlClXD2tx+VUKggvOaUtrYoGRIEBAQot7d aOutcRLJ8Vxq3k5T3O2cV3F7arFUw5camJKTDhXlC2mdKJhXRAqDkwQgF+fmZB+GeI2ebe yOe2RrP8HewuSqelp/dBTQKv62gciDJ8vo8WfKGQKq0KaYxA2An0G+CV18YaYD7WuESaRr ++SMLyaYI/8siExBMLZ1M5ukokO+PZGsRQM6It6Df64yexrSrY0UiSSMxql85w== 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 4XgCJR2w4VzZsc for ; Fri, 1 Nov 2024 20:34:15 +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 4A1KYFHS042327 for ; Fri, 1 Nov 2024 20:34:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4A1KYF5s042326 for fs@FreeBSD.org; Fri, 1 Nov 2024 20:34:15 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 282449] UFS deadlock with install -S during freebsd-update Date: Fri, 01 Nov 2024 20:34:15 +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 Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: 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: 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=3D282449 --- Comment #11 from Mark Johnston --- So we have runningbufspace =3D=3D hirunningbufspace =3D=3D 1MB. That is a = very low threshold. Meanwhile, we have maxphys =3D=3D 1MB by default. What happens= if bufwrite() tries to write a 1MB buffer? It'll bump runningbufspace, and if that was previously larger than hirunningbufspace, bufwait() will block wai= ting for runningbufspace to drop below lobufspace, but that'll never happen. Could you please try setting kern.maxphys=3D131072 in /boot/loader.conf, th= en reboot and try to reproduce the problem? How much RAM do these systems have? I'm not sure if the correct solution i= s to reduce maxphys on small RAM systems or to increase the minimum lo/hirunningbufspace watermarks to ensure that this deadlock can't happen. --=20 You are receiving this mail because: You are the assignee for the bug.=