7176485: (bf) Allow temporary buffer cache to grow to IOV_MAX
Seán Coffey
sean.coffey at oracle.com
Fri Jun 15 05:39:45 PDT 2012
Also had a look Alan - looks fine.
regards,
Sean.
On 15/06/12 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