[ https://issues.apache.org/jira/browse/LUCENE-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550128 ]
Brian Pinkerton commented on LUCENE-753: ---------------------------------------- Whoops; I should have paid more attention to the args. The results in the single-threaded case still favor pread, but by a slimmer margin: Linux: config: impl=ClassicFile serial=false nThreads=1 iterations=200 bufsize=1024 filelen=10485760 answer=0, ms=9983, MB/sec=210.0723229490133 config: impl=ChannelPread serial=false nThreads=1 iterations=200 bufsize=1024 filelen=10485760 answer=0, ms=9247, MB/sec=226.7926895209257 Solaris 10: config: impl=ClassicFile serial=false nThreads=1 iterations=200 bufsize=1024 filelen=10485760 answer=0, ms=7381, MB/sec=284.12843788104595 config: impl=ChannelPread serial=false nThreads=1 iterations=200 bufsize=1024 filelen=10485760 answer=0, ms=6245, MB/sec=335.81297037630105 Mac OS X: config: impl=ChannelPread serial=false nThreads=1 iterations=200 bufsize=1024 filelen=10485760 answer=-914995, ms=19945, MB/sec=105.14675357232389 config: impl=ClassicFile serial=false nThreads=1 iterations=200 bufsize=1024 filelen=10485760 answer=-914995, ms=26378, MB/sec=79.50382894836606 > Use NIO positional read to avoid synchronization in FSIndexInput > ---------------------------------------------------------------- > > Key: LUCENE-753 > URL: https://issues.apache.org/jira/browse/LUCENE-753 > Project: Lucene - Java > Issue Type: New Feature > Components: Store > Reporter: Yonik Seeley > Attachments: FileReadTest.java, FSIndexInput.patch, FSIndexInput.patch > > > As suggested by Doug, we could use NIO pread to avoid synchronization on the > underlying file. > This could mitigate any MT performance drop caused by reducing the number of > files in the index format. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]