Searched hist:107671 (Results 1 - 1 of 1) sorted by relevance

/freebsd-9.3-release/sbin/fsck_ffs/
H A Dfsutil.cdiff 107671 Sat Dec 07 19:40:31 MST 2002 iedowse Slow down the operation of background fsck so as to leave some disk
bandwidth for other processes. Since the sleeping is done from
userland, this avoids the locking issues that affected the kernel
version.

The algorithm used here is to measure a moving average of the times
taken by a sample of read operations and then delay 1 in 8 reads
by 16 times the measured average. This should correspond to a factor
of 3 slowdown, but in practice the factor is larger (3.5 to 4) due
to hz rounding effects.

Reviewed by: mckusick
Approved by: re

Completed in 50 milliseconds