7176485: (bf) Allow temporary buffer cache to grow to IOV_MAX
Chris Hegarty
chris.hegarty at oracle.com
Fri Jun 15 05:20:10 PDT 2012
Looks good to me Alan.
-Chris.
On 15/06/2012 12:32, Alan Bateman wrote:
>
> This one relates to the temporary buffer cache, used to cache direct
> direct buffers for applications that do I/O with buffers that are backed
> by byte arrays in the heap. Currently the temporary buffer cache can
> cache up to 8 buffer and this should be sufficient for most scattering
> read and gathering write operations. There are however extreme cases
> where the number of buffers in the array is higher and those cases take
> a big malloc/free hit once they go beyond 8 buffers. The patch proposed
> here changes the limit so that it matches IOV_MAX. Note that there isn't
> a regression test with this because this area is covered by existing
> tests and the changes are just to help the performance for this scenario.
>
> http://cr.openjdk.java.net/~alanb/7176485/webrev/
>
> -Alan.
More information about the nio-dev
mailing list