From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 23 19:09:51 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 8F58B106564A for ; Mon, 23 Jun 2008 19:09:51 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 0CFB48FC1D for ; Mon, 23 Jun 2008 19:09:50 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so2472520fkk.11 for ; Mon, 23 Jun 2008 12:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=9ef6iiaVuyqIeCuOv+4l5YfJRcpdGwrdZ5m5SJAy0s4=; b=xGFUohMXkefGFBXlfj73QKK/vjOOM3/3N08LLt/ThfPIJLzFvoNLJmZTZUGXvWxrY3 j144oqg7164OAnsYEUtsLYEB0CIjVlPlMImwCgeNlXSb7jfDNB7hNEKkoAHstXWara19 AKEvd05dmZBcYz6B0VjipyYCOAUDyX84TLr+I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=dHFr0W6bNQRrj+rvmWPSLio5OtB4Kv9ADCc982dfBYVVRR9TlkEMujZ1yt0uEZwTd9 eC3a+5xlGFvstcXKLqvp/M3MDHXx5/USB3rHcZ77YBtKlr9FoRXHQliBmfGr2+31n9u4 0o0DvTsH7z3QgXNbUry3gp6FvhO06ckmvmrpk= Received: by 10.82.186.19 with SMTP id j19mr511704buf.60.1214246490389; Mon, 23 Jun 2008 11:41:30 -0700 (PDT) Received: by 10.150.12.12 with HTTP; Mon, 23 Jun 2008 11:41:29 -0700 (PDT) Message-ID: <5f67a8c40806231141vf7b9567mdf75e81f32169211@mail.gmail.com> Date: Mon, 23 Jun 2008 14:41:29 -0400 From: "Zaphod Beeblebrox" To: "Dominic Fandrey" In-Reply-To: <485F4593.9050807@bsdforen.de> MIME-Version: 1.0 References: <485EAE11.2050808@bsdforen.de> <200806221615.50498.amistry@am-productions.biz> <485F4593.9050807@bsdforen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: csaba-ml@creo.hu, freebsd-hackers@freebsd.org, Anish Mistry 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:09:51 -0000 On Mon, Jun 23, 2008 at 2:41 AM, Dominic Fandrey wrote: > 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=124901 > > 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. > The shutdown watchdog timer is something I've had to adjust many times for many different ports. Given this; I propose we have (at least) a new rcorder script variable. Something like "SHUTTIME" encoding the expected number of seconds required for the daemon to shutdown in the worst case. 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).