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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to