From owner-freebsd-questions@FreeBSD.ORG Fri Jul 15 05:33:49 2005 Return-Path: X-Original-To: freebsd-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 5F59316A429 for ; Fri, 15 Jul 2005 05:33:49 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id E94AA43D48 for ; Fri, 15 Jul 2005 05:33:48 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 606525E22; Fri, 15 Jul 2005 01:33:48 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29655-02; Fri, 15 Jul 2005 01:33:38 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-54-113.ny325.east.verizon.net [68.161.54.113]) by pi.codefab.com (Postfix) with ESMTP id 775235CE7; Fri, 15 Jul 2005 01:33:38 -0400 (EDT) Message-ID: <42D74AB5.4000907@mac.com> Date: Fri, 15 Jul 2005 01:33:41 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Sergey N. Voronkov" References: <42D6B117.5080302@plab.ku.dk> <20050714191449.A8A615D07@ptavv.es.net> <20050714191942.GA98637@freebie.xs4all.nl> <6.2.1.2.2.20050714161537.0378c310@mail.rfnj.org> <20050715051542.GA80213@tmn.ru> In-Reply-To: <20050715051542.GA80213@tmn.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: asym , freebsd-questions@freebsd.org Subject: Re: dangerous situation with shutdown process 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: Fri, 15 Jul 2005 05:33:49 -0000 [ ...crossposting trimmed... ] Sergey N. Voronkov wrote: > On Thu, Jul 14, 2005 at 04:17:06PM -0400, asym wrote: [ ... ] >> The funny thing about all the replies here.. is that this guy is not saying >> that sync doesn't work. >> >> He's saying that the timeout built into shutdown causes it to *terminate* >> the sync forcibly before it's done, and then reboot. Good observations. >> All finger pointing about IDE, SCSI, softupdates, and journals aside.. I >> think all he wants/needs is a way to increase that timer. Sort of. If you queue up a huge I/O operation which takes several minutes to complete, and then also insist upon shutting the machine down before the operation completes, well, one of them is going to have to preempt the other. Extending the shutdown indefinitely is not a reasonable option if the two-minute shutdown warning is coming from a UPS which is about to run out of battery, and the end result of killing a process that won't politely die when SIGTERM'ed to end up with clean filesystems is a better choice. > If you can't increase shutdown timeout, decrease softupdates timers. > > # tail -3 /etc/sysctl.conf > kern.metadelay=14 > kern.dirdelay=15 > kern.filedelay=17 > > That was my solution for shutdown wait timeout. This may help, too, but it may not always be enough. -- -Chuck