Peter Keegan wrote:
The throughput is worse with NioFSDIrectory than with the FSDIrectory
(patched and unpatched). The bottleneck still seems to be synchronization,
this time in NioFile.getChannel (7 of the 8 threads were blocked there
during one snapshot).  I tried this with 4 and 8 channels.

Another thing to try might be to increase IndexOutputStream.BUFFER_SIZE, to say, 8192. Note that you need to 'ant clean compile', since other files that reference this constant need to be recompiled. Does that help any?

A 64-bit JVM with NioDirectory would really be optimal for this. Anything else either requires opening lots more file handles, or synchronizing on a few file handles, neither of which is attractive. We could try to keep a pool of file handles for highly contended files, but that's tricky to implement.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to