Thanks Dominique. Got your view..

On Wed, Feb 18, 2015 at 11:55 PM, Dominique Bejean <
dominique.bej...@eolya.fr> wrote:

> Hi,
>
> As Shawn said, install enough memory in order that all free direct memory
> (non heap memory) be used as disk cache.
> Use 40% maximum of the available memory for heap memory (Xmx JVM
> parameter), but never more than 32 Gb
>
> And avoid your server to swap.
> For most Linux systems, this is configured using the /etc/sysctl.conf
> value:
> vm.swappiness = 1
> This prevents swapping under normal circumstances, but still allows the OS
> to swap under emergency memory situations.
> A swappiness of 1 is better than 0, since on some kernel versions a
> swappiness of 0 can invoke the OOM-killer
>
> http://askubuntu.com/questions/103915/how-do-i-configure-swappiness
>
> http://unix.stackexchange.com/questions/88693/why-is-swappiness-set-to-60-by-default
>
> Dominique
> http://www.eolya.fr/
>
>
> 2015-02-18 14:39 GMT+01:00 Shawn Heisey <apa...@elyograg.org>:
>
> > On 2/18/2015 4:20 AM, Nitin Solanki wrote:
> > >          How can I place whole indexed data on cache by which if I will
> > > search any query then I will get response, suggestions, collations
> > rapidly.
> > > And also how to view that which documents are on cache and how to
> verify
> > it?
> >
> > Simply install enough extra memory in your machine for the entire index
> > to fit in RAM that is not being used by programs ... and then do NOT
> > allocate that extra memory to any program.
> >
> > The operating system will automatically do the caching for you as part
> > of normal operation, no config required.
> >
> > https://wiki.apache.org/solr/SolrPerformanceProblems#RAM
> >
> > Relevant articles referenced by that wiki page:
> >
> > http://en.wikipedia.org/wiki/Page_cache
> > http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html
> >
> > Thanks,
> > Shawn
> >
> >
>

Reply via email to