Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AE8685C3 for ; Mon, 5 Sep 2011 15:34:35 +0000 (UTC) Received: (qmail 94633 invoked by uid 500); 5 Sep 2011 15:34:33 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 94484 invoked by uid 500); 5 Sep 2011 15:34: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 94295 invoked by uid 99); 5 Sep 2011 15:34:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 15:34:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2011 15:34:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 99F03595D3 for ; Mon, 5 Sep 2011 15:34:10 +0000 (UTC) Date: Mon, 5 Sep 2011 15:34:10 +0000 (UTC) From: "Varun Thacker (JIRA)" To: dev@lucene.apache.org Message-ID: <1383236608.17377.1315236850627.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1228340606.487.1307457598910.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3178) Native MMapDir 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-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097182#comment-13097182 ] Varun Thacker commented on LUCENE-3178: --------------------------------------- bq. If we pass down IOContext to NMapIndexInput and in the ctor use mmap and then use madvise with the appropriate flag ( depending on the Context). Is that the correct way to go about it ? Any suggestions on this? > Native MMapDir > -------------- > > Key: LUCENE-3178 > URL: https://issues.apache.org/jira/browse/LUCENE-3178 > Project: Lucene - Java > Issue Type: Improvement > Components: core/store > Reporter: Michael McCandless > > Spinoff from LUCENE-2793. > Just like we will create native Dir impl (UnixDirectory) to pass the right OS level IO flags depending on the IOContext, we could in theory do something similar with MMapDir. > The problem is MMap is apparently quite hairy... and to pass the flags the native code would need to invoke mmap (I think?), unlike UnixDir where the code "only" has to open the file handle. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org