You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2010/12/20 15:43:01 UTC
[jira] Issue Comment Edited: (LUCENE-2825) FSDirectory.open should
return MMap on 64-bit Solaris
[ https://issues.apache.org/jira/browse/LUCENE-2825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973213#action_12973213 ]
Uwe Schindler edited comment on LUCENE-2825 at 12/20/10 9:41 AM:
-----------------------------------------------------------------
bq. Doesn't MMap automatically consume a lot more memory?
No, it consumes *address space*, this is why it only works without problems on 64 bit. The index files are mapped into address space, so handled like a SWAP file, that's the trick. They only consume as much memory from cache space as the operating system decides. Especially it does not consume memory from java heap!
was (Author: thetaphi):
bq. Doesn't MMap automatically consume a lot more memory?
No, it consumes *address space*, this is why it only works on 64 bit. The index files are mapped into address space, so handled like a SWAP file. They only consume as much memory from cache space as the operating system decides. Especially it does not consume memory from java heap!
> FSDirectory.open should return MMap on 64-bit Solaris
> -----------------------------------------------------
>
> Key: LUCENE-2825
> URL: https://issues.apache.org/jira/browse/LUCENE-2825
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Store
> Reporter: Robert Muir
> Fix For: 3.1, 4.0
>
> Attachments: LUCENE-2825.patch
>
>
> MMap is ~ 30% faster than NIOFS on this platform.
--
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