For large sustained writes I expect using mmap or write to based on the performance of the file system or hardware. When I used mmap it is because I want low latency for each persitence and I expect the application to be spend up to 90% of its time doing real work rather than writing. Put another way, not using more than 50% of the maximum write bandwidth.
--
You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-sympathy+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-sympathy+unsub...@googlegroups.com.
FileChannel.transferTo() can under the covers copy a file all within the kernel using sendto.
On Sunday, September 8, 2013 5:38:20 PM UTC+1, Kevin Burton wrote:
I'm not sure I understand. Why as transferTo faster? Because Java wasn't involved in the write?
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
The template file needs to be created by filling it with zero's so it is not sparse. This is a one off operation.