Re: fsck in -current

From: Cyrille Lefevre <clefevre-lists_at_9online.fr>
Date: Tue, 18 May 2004 09:50:23 +0200
"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
Received on Mon May 17 2004 - 22:50:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:54 UTC