From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 18:38:44 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8012E16A41F for ; Mon, 1 Aug 2005 18:38:44 +0000 (GMT) (envelope-from dpk@dpk.net) Received: from shared10.hosting.flyingcroc.net (shared10.hosting.flyingcroc.net [207.246.149.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F1F543D55 for ; Mon, 1 Aug 2005 18:38:44 +0000 (GMT) (envelope-from dpk@dpk.net) Received: from shared10.hosting.flyingcroc.net (localhost [127.0.0.1]) by shared10.hosting.flyingcroc.net (8.12.9p2/8.12.10) with ESMTP id j71IchrR063759 for ; Mon, 1 Aug 2005 11:38:43 -0700 (PDT) Received: from localhost (dpk@localhost) by shared10.hosting.flyingcroc.net (8.12.9p2/8.12.10/Submit) with ESMTP id j71IchlQ063756 for ; Mon, 1 Aug 2005 11:38:43 -0700 (PDT) X-Authentication-Warning: shared10.hosting.flyingcroc.net: dpk owned process doing -bs Date: Mon, 1 Aug 2005 11:38:43 -0700 (PDT) From: dpk X-X-Sender: dpk@shared10.hosting.flyingcroc.net To: questions@freebsd.org Message-ID: <20050801112812.C79761@shared10.hosting.flyingcroc.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Subject: Syncing disks, buffers remaining - value increases? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2005 18:38:44 -0000 Sorry for all the questions to the list, we're having a number of issues deploying FreeBSD 5.4 and we're trying to get an understanding of what we're seeing. When I reboot these servers (using "reboot" on the command line), it will go through the usual routine I'm familiar with from FreeBSD 4.x, but when it goes to the "syncing disks" phase, sometimes it will do something like this: Syncing disks, buffers remaining ... 1 1 1 1 1 2 1 1 1 3 1 1 1 1 Eventually it gives up on 1 or so buffers. When the server comes back up, it gives warnings that the partitions were all improperly dismounted. Is it normal for the number of buffers remaining to actually increase while shutting down? I'm looking at the kernel source and the loop that performs these syncs appears pretty small. Could something else still be running on the server that is trying to write to disk, even while in the shutdown phase? I guess it would only be able to run "interrupt threads", judging by the comments, while it releases Giant. It may be a coincidence, but on a few occasions, the background fsck may have still been running when the reboot was issued. I've assumed that since fsck now runs in the background that it must be able to gracefully handle reboots. FreeBSD 5.4-RELEASE-p5, Dual proc Xeons (varying speed), varying memory, PAE+SMP kernels, 3ware RAID cards (varying capacity, RAID levels).