Bug 176169 - [vfs] [patch] system unresponsive for 1min after mounting flash read-only
Summary: [vfs] [patch] system unresponsive for 1min after mounting flash read-only
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2013-02-15 13:50 UTC by nkoch
Modified: 2020-12-15 11:48 UTC (History)
1 user (show)

See Also:

file.diff (970 bytes, patch)
2013-02-15 13:50 UTC, nkoch
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nkoch 2013-02-15 13:50:03 UTC
This problem has already been reported and fixed(?) in pfsense's bug tracking
system by adding the sysctl vfs.forcesync.
The author of the fix is Ermal Luçi ( http://redmine.pfsense.org/users/6 ).


I tried this under FreeBSD 9.1 and it seems to work.

mount -ow / ; time mount -orf /
 : 65s without patch

With patch time is <1s.

As I am no vfs expert I do not know what potential negative consequences
this change may have.

The original patch uses CTLFLAG_RD for forcesync. I do not see why
this should not be CTLFLAG_RW.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:21 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped