Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 79655 invoked from network); 3 Dec 2010 12:43:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 12:43:33 -0000 Received: (qmail 79063 invoked by uid 500); 3 Dec 2010 12:43:32 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 78771 invoked by uid 500); 3 Dec 2010 12:43:32 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 78764 invoked by uid 99); 3 Dec 2010 12:43:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 12:43:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 12:43:31 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB3ChAZp025271 for ; Fri, 3 Dec 2010 12:43:10 GMT Message-ID: <14658260.92781291380190759.JavaMail.jira@thor> Date: Fri, 3 Dec 2010 07:43:10 -0500 (EST) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2791) WindowsDirectory In-Reply-To: <22607233.86291291338491348.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966512#action_12966512 ] Robert Muir commented on LUCENE-2791: ------------------------------------- bq. Does is also allow for deletion of still-open files? No, but we could/should investigate trying to improve this, thoguh we might have to implement IndexOutput for it to all work. bq. You may want to experiment w/ different buffer sizes to see if that impacts performance. maybe, mainly my point was to avoid the synchronized() here. A user could always tweak the buffer size here? bq. Also: this allows you to do the equivalent of Linux's O_DIRECT, right? If so... I think we should augment the Dir API so that on opening an input it receives some sort of IOContext or something expressing why we are opening. So for merging we would want "direct iO" (bypass OS buffer cache or NOREUSE fadvise flag, etc.), and larger buffer sizes and perhaps other low level IO settings in the future. Yes, we can use FILE_FLAG_NO_BUFFERING, though it would be more complicated (things must be sector-aligned). In my opinion this should be a separate IndexInput, and as you stated the Dir API could inform us. But you are right, the general notion seems to be in all major platforms, and I think we should carefully use it (if it can help!) > WindowsDirectory > ---------------- > > Key: LUCENE-2791 > URL: https://issues.apache.org/jira/browse/LUCENE-2791 > Project: Lucene - Java > Issue Type: New Feature > Components: Store > Reporter: Robert Muir > Attachments: LUCENE-2791.patch, LUCENE-2791.patch, WindowsDirectory.dll, WindowsDirectory_amd64.dll > > > We can use Windows' overlapped IO to do pread() and avoid the performance problems of SimpleFS/NIOFSDir. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org