From owner-cvs-src@FreeBSD.ORG Fri Jul 2 00:13:30 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D9C316A4CE; Fri, 2 Jul 2004 00:13:30 +0000 (GMT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49F3343D31; Fri, 2 Jul 2004 00:13:30 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.11/8.12.11) with ESMTP id i620C6xd076810; Thu, 1 Jul 2004 17:12:09 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200407020012.i620C6xd076810@gw.catspoiler.org> Date: Thu, 1 Jul 2004 17:12:06 -0700 (PDT) From: Don Lewis To: src-committers@FreeBSD.org In-Reply-To: <200407012359.i61NxJLL000360@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_subr.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 00:13:30 -0000 On 1 Jul, To: src-committers@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" > 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.