cvs commit: src/sbin/fsck_ffs fsck.h pass5.c src/sys/ufs/ffs
ffs_alloc.c ffs_softdep.c fs.h
Xin LI
delphij at FreeBSD.org
Sun Feb 20 08:02:16 GMT 2005
delphij 2005-02-20 08:02:16 UTC
FreeBSD src repository
Modified files:
sbin/fsck_ffs fsck.h pass5.c
sys/ufs/ffs ffs_alloc.c ffs_softdep.c fs.h
Log:
The recomputation of file system summary at mount time can be a
very slow process, especially for large file systems that is just
recovered from a crash.
Since the summary is already re-sync'ed every 30 second, we will
not lag behind too much after a crash. With this consideration
in mind, it is more reasonable to transfer the responsibility to
background fsck, to reduce the delay after a crash.
Add a new sysctl variable, vfs.ffs.compute_summary_at_mount, to
control this behavior. When set to nonzero, we will get the
"old" behavior, that the summary is computed immediately at mount
time.
Add five new sysctl variables to adjust ndir, nbfree, nifree,
nffree and numclusters respectively. Teach fsck_ffs about these
API, however, intentionally not to check the existence, since
kernels without these sysctls must have recomputed the summary
and hence no adjustments are necessary.
This change has eliminated the usual tens of minutes of delay of
mounting large dirty volumes.
Reviewed by: mckusick
MFC After: 1 week
Revision Changes Path
1.35 +5 -0 src/sbin/fsck_ffs/fsck.h
1.41 +55 -0 src/sbin/fsck_ffs/pass5.c
1.132 +68 -1 src/sys/ufs/ffs/ffs_alloc.c
1.176 +12 -3 src/sys/ufs/ffs/ffs_softdep.c
1.48 +6 -1 src/sys/ufs/ffs/fs.h
More information about the cvs-src
mailing list