7176485: (bf) Allow temporary buffer cache to grow to IOV_MAX (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Fri Jun 15 04:32:40 PDT 2012
- Previous message: 7176630: (sc) SocketChannel.write does not write more than 128k when channel configured blocking [win]
- Next message: 7176485: (bf) Allow temporary buffer cache to grow to IOV_MAX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: 7176630: (sc) SocketChannel.write does not write more than 128k when channel configured blocking [win]
- Next message: 7176485: (bf) Allow temporary buffer cache to grow to IOV_MAX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]