Proposal for adding O_DIRECT support into JDK 9

Alan Bateman Alan.Bateman at oracle.com
Sat Aug 27 07:43:48 UTC 2016


On 26/08/2016 23:31, Lu, Yingqi wrote:

> Dear All,
>
> This is a proposal for adding O_DIRECT support into JDK 9 for reading/writing from/to a file on Linux platform. O_DIRECT is a file-open flag to pass to OPEN (2). It tries to minimize cache effects of the I/O to and from this file. File I/O is done directly to/from user-space buffers. Please refer to http://man7.org/linux/man-pages/man2/open.2.html for more details.
>
>
FIS/FOS/RAF doesn't seem the right place for this. Have you looked at 
using extended open options with FileChannel instead?

-Alan


More information about the core-libs-dev mailing list