[ 
https://issues.apache.org/jira/browse/LUCENE-2795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546645#comment-13546645
 ] 

Littlestar commented on LUCENE-2795:
------------------------------------

  /** Default buffer size before writing to disk (256 MB);
   *  larger means less IO load but more RAM and direct
   *  buffer storage space consumed during merging. */

public final static int DEFAULT_MERGE_BUFFER_SIZE = 262144;

in NativeUnixDirectory.java

Does 256MB mistake ? 262144===256K
                
> Genericize DirectIOLinuxDir -> UnixDir
> --------------------------------------
>
>                 Key: LUCENE-2795
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2795
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/store
>            Reporter: Michael McCandless
>            Assignee: Varun Thacker
>              Labels: gsoc2011, lucene-gsoc-11, mentor
>             Fix For: 4.0-ALPHA
>
>         Attachments: LUCENE-2795.patch, LUCENE-2795.patch, LUCENE-2795.patch, 
> LUCENE-2795.patch, LUCENE-2795.patch, LUCENE-2795.patch, LUCENE-2795.patch, 
> LUCENE-2795.patch, LUCENE-2795.patch, LUCENE-2795.patch
>
>
> Today DirectIOLinuxDir is tricky/dangerous to use, because you only want to 
> use it for indexWriter and not IndexReader (searching).  It's a trap.
> But, once we do LUCENE-2793, we can make it fully general purpose because 
> then a single native Dir impl can be used.
> I'd also like to make it generic to other Unices, if we can, so that it 
> becomes UnixDirectory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to