Re: Proposal for adding O_DIRECT support into JDK 9

2016-11-05 Thread Alan Burlison
On 04/11/2016 18:32, David M. Lloyd wrote: I still feel like it could be a problem to have just one simple getPageSize method, given how many CPU architectures and OSes support multiple page sizes. Yes. $ pagesize -a 8192 65536 4194304 268435456 2147483648 -- Alan Burlison --

Re: Proposal for adding O_DIRECT support into JDK 9

2016-11-05 Thread David Holmes
Hi Paul, On 5/11/2016 2:58 AM, Paul Sandoz wrote: Hi Lucy, I am struggling to find an entirely satisfactory location to place a method such as getPageSize, but java.lang.Runtime seems less worse than other places :-) This does not seem an appropriate method to expose in this form at the ja

RE: Proposal for adding O_DIRECT support into JDK 9

2016-11-05 Thread Lu, Yingqi
Hi Alan and David, Thank you for your email. I totally agree that OS kernel supports multiple page sizes. For example, my Linux box supports both 4K and 2M pages. Currently, our getAlignment() function inside FileChannel/FileChannelImpl calls an existing function sun.nio.ch.Util.pageSize() whi