IO bandwidth throttling

2005-08-02 Thread Gopikrishnan Subramani
Hello, Is there a way I can control the IO bandwidth utilized by Lucene? Here is my scenario. RAMDirectory is used to build a in-memory index and finally the index size approaches a limit, the contents are flushed to a FSDirectory. The index size could be approximately 512 MB. I'm a bit concerne

Re: IO bandwidth throttling

2005-08-02 Thread Otis Gospodnetic
While not exactly what you are describing, you can use one of the IndexWriter parameters (maxBufferedDocs) to control the size of the RAMDirectory that's used as a buffer during indexing. Otis --- Gopikrishnan Subramani <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a way I can control the IO

Re: IO bandwidth throttling

2005-08-02 Thread Gopikrishnan Subramani
Ok, let me rephrase the question. Assuming the RAMDirectory holds approximately 500 MB of data which needs to be written to the filesystem, I'm afraid that sending this much data in one shot might choke the NFS. Is there a parameter with FSDirectory with which I can instruct Lucene to restrict the

Re: IO bandwidth throttling

2005-08-02 Thread Otis Gospodnetic
Hi, > Ok, let me rephrase the question. Assuming the RAMDirectory holds > approximately 500 MB of data which needs to be written to the > filesystem, I'm afraid that sending this much data in one shot might > choke the NFS. Is there a parameter with FSDirectory with which I can > instruct Lucene t

Re: IO bandwidth throttling

2005-08-02 Thread Chris Lamprecht
I've wanted something similar, for the same purpose -- to keep lucene from consuming disk I/O resources when another process is running on the same machine. A general solution might be to define a simple interface such as interface IndexInputOutputListener { void willReadBytes(int numberOfByt

RE: IO bandwidth throttling

2005-08-03 Thread Indu Abeyaratna
ubject: Re: IO bandwidth throttling I've wanted something similar, for the same purpose -- to keep lucene from consuming disk I/O resources when another process is running on the same machine. A general solution might be to define a simple interface such as interface IndexInputOutputList

Re: IO bandwidth throttling

2005-09-01 Thread Chris Lamprecht
Hi Ben, Yes -- I would prefer to let the OS handle his, especially if it can save me some coding. Is there is a way (under linux) to limit a certain process's disk utilization? It seems like nice(1) just modifies the scheduling priority, I'm assuming this means CPU scheduling. In my case, I'm t

RE: IO bandwidth throttling

2005-09-01 Thread Rajesh Munavalli
Try this: (CFQ) I/O scheduler http://lwn.net/Articles/57732/ Rajesh Munavalli > -Original Message- > From: Chris Lamprecht [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 01, 2005 4:00 PM > To: java-user@lucene.apache.org > Subject: Re: IO bandwidth throttl

Re: IO bandwidth throttling

2005-09-01 Thread Ben Gollmer
Chris Lamprecht wrote: > I've wanted something similar, for the same purpose -- to keep lucene > from consuming disk I/O resources when another process is running on > the same machine. Sorry for jumping in (I'm a Lucene newb) but isn't this better handled by the OS? On a Unix box I would just ren

Re: IO bandwidth throttling

2005-09-01 Thread Dan Armbrust
Ben Gollmer wrote: >Chris Lamprecht wrote: > > >>I've wanted something similar, for the same purpose -- to keep lucene >>from consuming disk I/O resources when another process is running on >>the same machine. >> >> > >Sorry for jumping in (I'm a Lucene newb) but isn't this better handled >

Re: IO bandwidth throttling

2005-09-01 Thread Ben Gollmer
Rajesh Munavalli wrote: > Try this: (CFQ) I/O scheduler > http://lwn.net/Articles/57732/ > > Rajesh Munavalli > The CFQ scheduler is the default in Red Hat Enterprise 4 and recent Fedoras (3 and 4 IIRC). My FC4 system is usable even with processes like 'updatedb' running. http://www.redhat.com