[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-nio-dev
Subject:    Re: Proposal for adding O_DIRECT support into JDK 9
From:       Alan Bateman <Alan.Bateman () oracle ! com>
Date:       2016-10-17 14:59:03
Message-ID: 006c75c4-1404-d66b-737d-e07ea2b493fd () oracle ! com
[Download RAW message or body]

On 12/10/2016 17:41, Lu, Yingqi wrote:

> > 
> 
> You are correct about the "extra copy" with DirectIO. Will it be acceptable if we \
> add a function "Util.getAlignedTemporaryDirectBuffer" and use that for the DirectIO \
> operation? In this case, I think we should be able to avoid the additional copy? 
Yes, that should work but it still lacks a way for the user to get an 
aligned buffer and so you will always be copying in and out of an 
aligned buffer. The other thing is the sizing of the I/O operation where 
I think you will also need a way to expose the multiple (or block size) 
to the user.

-Alan.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic