mirror of
https://github.com/apache/druid.git
synced 2025-02-15 06:25:18 +00:00
NativeIO.chunkedCopy fsyncs its writebuffer directly and requires an O_DIRECT RandomAccessFile. By allowing the kernel to start writing while filling the buffer the writes will be more constant. In addition the O_DIRECT flag is not required anymore and this will work faster in case fadvise is not supported on some system. This is based on Linus' post here: http://lkml.iu.edu/hypermail/linux/kernel/1005.2/01845.html