[Bug 282449] UFS deadlock with install -S during freebsd-update

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Nov 2024 20:34:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282449

--- Comment #11 from Mark Johnston <markj@FreeBSD.org> ---
So we have runningbufspace == hirunningbufspace == 1MB.  That is a very low
threshold.  Meanwhile, we have maxphys == 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 waiting
for runningbufspace to drop below lobufspace, but that'll never happen.

Could you please try setting kern.maxphys=131072 in /boot/loader.conf, then
reboot and try to reproduce the problem?

How much RAM do these systems have?  I'm not sure if the correct solution is to
reduce maxphys on small RAM systems or to increase the minimum
lo/hirunningbufspace watermarks to ensure that this deadlock can't happen.

-- 
You are receiving this mail because:
You are the assignee for the bug.