Date: Sun, 29 Jun 2025 13:26:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287897] freebsd-update is extremally slow due install -S. Do we need this option on ZFS? (+possible fix) Message-ID: <bug-287897-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287897 Bug ID: 287897 Summary: freebsd-update is extremally slow due install -S. Do we need this option on ZFS? (+possible fix) Product: Base System Version: 14.2-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: vlad.shabanov@gmail.com Created attachment 261730 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261730&action=edit the patch to freebsd-update Do we really need install -S on ZFS? The install_from_index() calls install -S ... for every file. It's extremally slow when the update includes /usr/src (when we upgrade a system). IMHO, if we have ZFS on root, the -S option is redoundant because install utility copies new version to a temporary file first and then switches new->old file atomically. If a system crashed during install, zfs will roll back to some intermediate state, with some files completely installed and others left intact + zero or one temporary file half-copied. The patch disabling -S option when we see than the root uses ZFS attached. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-287897-227>
