fsck in -current

Cyrille Lefevre clefevre-lists at 9online.fr
Tue May 18 00:50:25 PDT 2004


"Scott Long" <scottl at freebsd.org> wrote:

> Dan Nelson wrote:
[snip]
> > Fsck takes very little CPU; it's almost all disk I/O, and bgfsck tries
> > to throttle its load if it thinks that there's too much disk load.
> 
> Actually, bgfsck unconditionally inserts a delay into every 8th i/o
> operation to try to keep from saturating the disks.  Unfortunately
> this isn't terribly sophisticated and it results in bgfsck taking
> an eternity whether the system is idle, loaded, or reniced.


doesn't the delay be related to the load average or to ki_pctcpu (sys/user.h) ?
say, allow bgfsck to eat up to 5 or 10 % of CPU usage ?
see getpcpu() in bin/ps/print.c for details.

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre at laposte.net


More information about the freebsd-current mailing list