lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Cavanna (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3443) Optimize hunspell dictionary loading with multiple cores
Date Mon, 07 May 2012 12:42:53 GMT

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

Luca Cavanna commented on SOLR-3443:
------------------------------------

The first thing I have in mind is a static map containing all loaded dictionaries with some
kind of unique identifier, so that the same dictionary can be reused between cores.
But my question is: is there a mechanism to share object between cores in Solr? Is this the
first time someone needs to share something between multiple cores?
I'd like to hear your thoughts!
                
> Optimize hunspell dictionary loading with multiple cores
> --------------------------------------------------------
>
>                 Key: SOLR-3443
>                 URL: https://issues.apache.org/jira/browse/SOLR-3443
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Luca Cavanna
>
> The Hunspell dictionary is actually loaded into memory. Each core using hunspell loads
its own dictionary, no matter if all the cores are using the same dictionary files. As a result,
the same dictionary is loaded into memory multiple times, once for each core. I think we should
share those dictionaries between all cores in order to optimize the memory usage. In fact,
let's say a dictionary takes 20MB into memory (this is what I detected), if you have 20 cores
you are going to use 400MB only for dictionaries, which doesn't seem a good idea to me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


Mime
View raw message