From owner-freebsd-questions@FreeBSD.ORG Thu Nov 27 14:18:42 2003 Return-Path: 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 7555416A4CE for ; Thu, 27 Nov 2003 14:18:42 -0800 (PST) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 958FE43FB1 for ; Thu, 27 Nov 2003 14:18:41 -0800 (PST) (envelope-from gemini@geminix.org) Message-ID: <3FC6783E.5060508@geminix.org> Date: Thu, 27 Nov 2003 23:18:38 +0100 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031019 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20031125134915.2514dd57.itetcu@apropo.ro> In-Reply-To: <20031125134915.2514dd57.itetcu@apropo.ro> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 1APUTA-000BDG-00; Thu, 27 Nov 2003 23:18:40 +0100 Subject: Re: sync delay and consitency X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Nov 2003 22:18:42 -0000 Ion-Mihai Tetcu wrote: > > I have a machine that randomly crashes. I wonder if lowering > > Variable Default Description > kern.filedelay 30 time to delay syncing files > kern.dirdelay 29 time to delay syncing directories > kern.metadelay 28 time to delay syncing metadata > > would help having a more up-to-date fs (using soft-updates). You can reduce these settings in order to narrow the window which you would lose data in if the system crashed. However, it is important that you keep the numerical order of these variables. > Also is there a reason for the 30-29-28 (the 1 differece between) > sequence ? It gives a FS w/soft-updates its crash resilience, by ensuring the order of disk updates for these three data types. Meta data first, then directory data, and finally the actual file contents. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net