cvs commit: src/sys/kern vfs_subr.c

Don Lewis truckman at FreeBSD.org
Thu Jul 1 17:13:30 PDT 2004


On  1 Jul, To: src-committers at FreeBSD.org wrote:
> truckman    2004-07-01 23:59:19 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/kern             vfs_subr.c 
>   Log:
>   When shutting down the syncer kernel thread, first tell it to run
>   faster and iterate to over its work list a few times in an attempt
>   to empty the work list before the syncer terminates.  This leaves
>   fewer dirty blocks to be written at the "syncing disks" stage and
>   keeps the the "giving up on N buffers" problem from being triggered
>   by the presence of a large soft updates work list at system shutdown
>   time.  The downside is that the syncer takes noticeably longer to
>   terminate.
>   
>   Tested by:      "Arjan van Leeuwen" <avleeuwen AT piwebs DOT com>
>   Approved by:    mckusick
>   
>   Revision  Changes    Path
>   1.495     +68 -6     src/sys/kern/vfs_subr.c

This change does not address the "giving up on N buffers" problem
associated with shutting down the system with ext2 file systems mounted.

I have some ideas for tweaks to the syncer termination code that might
allow it to shut down faster.



More information about the cvs-src mailing list