🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.fs
Article #68

[Bug 223786] Remounting a UFS filesystem read-only takes very long time

#68
From: bugzilla-noreply
Date: Fri, 27 Nov 2026 20:28
26 lines
2963 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223786

--- Comment #13 from Aadya Chinubhai <aadyachinubhai@gmail.com> ---
re.

I think the way to go is to flush in rounds. Start async MNT_NOWAIT
writes on all the vnodes, wait for them to finish, and go again until
a round starts no new writes. Soft Updates already hides the
pointers that are not safe to write yet, so the ordering stays the
same.

I tried this from userland by running sync a few times before the
remount. On 3000 new files the writes dropped from about 6000 to
about 3000. On 1000 nested directories the remount went from 3s to
about 0.1s. I think the inode blocks coalesce because the
non waiting ffs_update uses bdwrite, so one block write covers
many inodes.

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-223786-3630-xbJHr4eAqd@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-223786-3630@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.fs
Subject: [Bug 223786] Remounting a UFS filesystem read-only takes very long
 time
Date: Fri, 27 Nov 2026 20:28:27 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-223786-3630-xbJHr4eAqd@https.bugs.freebsd.org/bugzilla/>
References: <bug-223786-3630@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="48489"; mail-complaints-to="news-admin@muc.de"
X-Original-To: fs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795811308;
	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=9rlvH6EpuMaT3n3gKdQfZ7yB4PPZQRE6kxifOhBcWB4=;
	b=Wd2kVVGq/Pb+xfyZiLg3JQW10g94FiDhF7ZWY/NJqSXZ6x5tZiKvNvhDx90A/U6BnutKJf
	ngzYuVDSkv4AVqm9V+zVwCnMKskOy03X8BVmAP/avvbl+4IzddJoytJgxVji3H244w8xYK
	bAxBRXHbOp3uA08ryj6jPQSbeeDupVdSTF+n/2fTMAq1hnIt7uT4KK9g3iPkt2/MKDQ/mO
	Js7BEGzFNQaN+XyVihk+LYugXj8l5mqYQrCxG6Tr9v3uN1F7jhC4Bgl16WeTzr8b/pAm4n
	bielqgpDKTzElXjGccDTUNJPYxwhNCR7Fl2MSSHlRF5LT7V4VJDBMer1uw4aAg==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-223786-3630@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes