Date: Mon, 23 Jun 2008 22:26:22 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Zaphod Beeblebrox <zbeeble@gmail.com> Cc: csaba-ml@creo.hu, Dominic Fandrey <kamikaze@bsdforen.de>, Anish Mistry <amistry@am-productions.biz>, freebsd-hackers@freebsd.org Subject: Re: FreeBSD fusefs-kmod shutdown problem workaround Message-ID: <20080623192622.GD17123@deviant.kiev.zoral.com.ua> In-Reply-To: <5f67a8c40806231141vf7b9567mdf75e81f32169211@mail.gmail.com> References: <485EAE11.2050808@bsdforen.de> <200806221615.50498.amistry@am-productions.biz> <485F4593.9050807@bsdforen.de> <5f67a8c40806231141vf7b9567mdf75e81f32169211@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kamikaze@bsdforen.de> > 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080623192622.GD17123>