Files.copy does userspace copies but FileChannel uses sendfile

Brian Burkhalter brian.burkhalter at oracle.com
Wed Oct 12 17:56:35 UTC 2016


On Oct 12, 2016, at 9:39 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> On 12/10/2016 17:30, Brian Burkhalter wrote:
> 
>> It seems as if this is a good candidate for some JMH testing from the Java layer.
> Yes  although you also have to measure the copy when the source isn't in the file system cache so that means dropping caches between copies.

That should be feasible given the control available within JMH.

Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20161012/42d7a0c8/attachment.html>


More information about the nio-dev mailing list