dweiss opened a new issue, #14315: URL: https://github.com/apache/lucene/issues/14315
### Description Something is odd here. This, on main: ``` ./gradlew :lucene:misc:test --tests "org.apache.lucene.misc.store.TestDirectIODirectory" -Ptests.jvms=4 -Ptests.jvmargs= -Ptests.seed=DEE483D0402DBE52 -Ptests.multiplier=2 -Ptests.useSecurityManager=true -Ptests.nightly=true -Ptests.vectorsize=512 -Ptests.forceintegervectors=true ``` Takes a veeery long time. Specifically, testRandomByte from the parent class (BaseDirectoryTestCase) takes ages, with this loop: ``` // subslices for (int offset = 1; offset < bytes.length; offset++) { RandomAccessInput subslice = input.randomAccessSlice(offset, input.length() - offset); assertEquals(input.length() - offset, subslice.length()); assertBytes(subslice, bytes, offset); } ``` taking the most of the time. The slices involved are not large. But here's a sample flame graph from the profiler on Linux -  Seems like those native pread0 reads are where it's spending most of the time... I didn't have time to compare to a different system yet (or measure it more accurately deeper into the native stack). ### Version and environment details _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org