You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by kalidoss <ka...@sifycorp.com> on 2009/12/14 14:47:01 UTC
Query on Cache size.
Hi,
We have enabled the query result cache, its 512 entries,
we have calculated the size used for cache :
page size about 1000bytes, (1000*512)/1024/1024 = .48MB
If we increase the cache count to 100000 then the memory used for
cache about. (1000*100000)/1024/1024 = 96MB
Is my calculation is correct? my system has 2.5GB of RAM for Solr
and 1GB for OS.
If am wrong, let me know how to calculate the memory?
Thanks,
Kalidoss.m,
Get your world in your inbox!
Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id!
Log on to http://www.sify.com
********** DISCLAIMER **********
Information contained and transmitted by this E-MAIL is proprietary to
Sify Limited and is intended for use only by the individual or entity to
which it is addressed, and may contain information that is privileged,
confidential or exempt from disclosure under applicable law. If this is a
forwarded message, the content of this E-MAIL may not have been sent with
the authority of the Company. If you are not the intended recipient, an
agent of the intended recipient or a person responsible for delivering the
information to the named recipient, you are notified that any use,
distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at admin@sifycorp.com
Re: Query on Cache size.
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Mon, Dec 14, 2009 at 7:17 PM, kalidoss <
kalidoss.muthuramalingam@sifycorp.com> wrote:
> Hi,
>
> We have enabled the query result cache, its 512 entries,
>
> we have calculated the size used for cache :
> page size about 1000bytes, (1000*512)/1024/1024 = .48MB
>
>
The query result cache is a map of (q, sort, n) to ordered list of Lucene
docids. Assuming queryResultWindowSize iw 20 and an average user does not go
beyond 20 results, your memory usage of the values in this map is
approx 20*sizeof(int)*512. Add some more for keys, map, references etc.
--
Regards,
Shalin Shekhar Mangar.