From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 23 19:26:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6D9710656CA for ; Mon, 23 Jun 2008 19:26:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1ABEE8FC19 for ; Mon, 23 Jun 2008 19:26:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m5NJau4I064913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Jun 2008 22:36:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m5NJQMVo014128; Mon, 23 Jun 2008 22:26:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m5NJQMm3014126; Mon, 23 Jun 2008 22:26:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 23 Jun 2008 22:26:22 +0300 From: Kostik Belousov To: Zaphod Beeblebrox Message-ID: <20080623192622.GD17123@deviant.kiev.zoral.com.ua> References: <485EAE11.2050808@bsdforen.de> <200806221615.50498.amistry@am-productions.biz> <485F4593.9050807@bsdforen.de> <5f67a8c40806231141vf7b9567mdf75e81f32169211@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fOHHtNG4YXGJ0yqR" Content-Disposition: inline In-Reply-To: <5f67a8c40806231141vf7b9567mdf75e81f32169211@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: csaba-ml@creo.hu, Dominic Fandrey , Anish Mistry , freebsd-hackers@freebsd.org Subject: Re: FreeBSD fusefs-kmod shutdown problem workaround X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2008 19:26:46 -0000 --fOHHtNG4YXGJ0yqR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 23, 2008 at 02:41:29PM -0400, Zaphod Beeblebrox wrote: > On Mon, Jun 23, 2008 at 2:41 AM, Dominic Fandrey > wrote: >=20 >=20 > > Thanks for the pointer. Unfortunately it seems that Csaba's patch only > > allows you to stall shutdown for 10 seconds. After heavy writing > > more than a minute can be necessary to prevent data loss. > > > > I have created a problem report: ports/124901 > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D124901 > > > > I hope this will make it. To me data loss and file system corruption > > are the worst case scenario and to me it's worth stalling shutdown > > for as long as it takes to write the data. > > >=20 > The shutdown watchdog timer is something I've had to adjust many times for > many different ports. Given this; >=20 > I propose we have (at least) a new rcorder script variable. Something li= ke > "SHUTTIME" encoding the expected number of seconds required for the daemon > to shutdown in the worst case. >=20 > Ideally, you'd want an overall watchdog and a per-script watchdog (so that > you're not waiting the sum of all these times in most cases). We already have rcshutdown_timeout, see the rc.conf(5) and description of the sysctl kern.init_shutdown_timeout. --fOHHtNG4YXGJ0yqR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhf+N0ACgkQC3+MBN1Mb4g42gCfYfqtWseGvWbWXNjqQommjRql 7vsAnjUJRf3QLN1kdQa1URVNNi8syLYb =xjiO -----END PGP SIGNATURE----- --fOHHtNG4YXGJ0yqR--