Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 69405 invoked from network); 12 Nov 2007 18:35:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 18:35:20 -0000 Received: (qmail 22847 invoked by uid 500); 12 Nov 2007 18:35:05 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 22802 invoked by uid 500); 12 Nov 2007 18:35:05 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 22791 invoked by uid 99); 12 Nov 2007 18:35:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 10:35:05 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.30.17] (HELO QMTA10.emeryville.ca.mail.comcast.net) (76.96.30.17) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 18:35:06 +0000 Received: from OMTA06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by QMTA10.emeryville.ca.mail.comcast.net with smtp id Bomj1Y00616AWCU010bG00; Mon, 12 Nov 2007 18:34:48 +0000 Received: from [192.168.168.15] ([76.103.181.218]) by OMTA06.emeryville.ca.mail.comcast.net with comcast id Buao1Y0064j7bz80000000; Mon, 12 Nov 2007 18:34:48 +0000 X-Authority-Analysis: v=1.0 c=1 a=fxlwPk3hvvx13w_4sLcA:9 a=QEwONoiP9mzhXdoR7wL3x-1i-CQA:4 a=e7HZjD-NHIkA:10 Message-ID: <47389CC5.90501@apache.org> Date: Mon, 12 Nov 2007 10:34:45 -0800 From: Doug Cutting User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: [jira] Commented: (LUCENE-1044) Behavior on hard power shutdown References: <32259336.1194891351173.JavaMail.jira@brutus> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org robert engels wrote: > I don't think this would be any difference performance wise, and might > actually be slower. > > When you call FD.sync() it only needs to ensure the dirty blocks > associated with that descriptor need to be saved. The potential benefit is that you wouldn't have to wait for things to be written as you close files. So, with write-behind, data could be written while the CPU moves on to other tasks, only blocking at commit. With log-based filesystems, only the log need be flushed, and batching that is a performance win. However, if there are lots of other applications writing at the same time, and the Lucene update is small, it could in theory slow things, but my hunch is that it would in practice frequently nearly eliminate the cost of syncing. Doug --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org