lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: First search is slow after updating index .. subsequent searches very fast
Date Thu, 21 Dec 2006 18:21:34 GMT
Bogan,

Something like dd if=/path/to/index/foo.cfs of=/dev/null
Basically, force the data through the kernel preemptively, so FS caches it.
Run vmstat while doing it, and if the index hasn't been cached by the FS, you should see a
spike in IO activity while dd is running.

Otis

----- Original Message ----
From: Bogdan Ghidireac <bogdan@ecstend.com>
To: java-user@lucene.apache.org
Sent: Thursday, December 21, 2006 3:58:52 AM
Subject: Re: First search is slow after updating index .. subsequent searches very fast

Otis,

I am not familiar with the 'dd trick' to warm up the index. Can you please
explain it ?

Bogdan


On 12/20/06, Otis Gospodnetic <otis_gospodnetic@yahoo.com> wrote:
>
> To populate FieldCache, the number of matches doesn't matter.  There is no
> need to be scrimy there - you don't really save anything by running a query
> that matches only a few docs.  Just run something that looks like a common
> query.
>
> For warming up new indices, one can also use the `dd' trick under UNIX.
>
> Otis
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message