United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6807602 Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux
JDK-6807602 : Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux

Details
Type:
Bug
Submit Date:
2009-02-19
Status:
Resolved
Updated Date:
2010-12-08
Project Name:
JDK
Resolved Date:
2009-06-22
Component:
core-libs
OS:
generic
Sub-Component:
java.net
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
As per synopsis.

                                    

Comments
SUGGESTED FIX

***************
*** 112,123 ****
--- 112,128 ----
  
  /*
   * Its safe to increase the buffer to 8K, this gives a 5-20%
   * performance boost on volano and overall socket performance.
   */
+ #ifdef _LP64
+ #define MAX_BUFFER_LEN 65536
+ #define MAX_HEAP_BUFFER_LEN 131072
+ #else
  #define MAX_BUFFER_LEN 8192
  #define MAX_HEAP_BUFFER_LEN 65536
+ #endif
  
  #ifdef AF_INET6
  
  #ifdef __linux__
  #define SOCKADDR	union { \
                                     
2009-02-19
EVALUATION

Increase MAX_HEAP_BUFFER_LEN to 128k on 64-bit Solaris.
                                     
2009-02-19
EVALUATION

This change increases the stack allocated buffer, MAX_BUFFER_LEN, from 8k to 64k, and the c heap allocated buffer, MAX_HEAP_BUFFER_LEN, from 64k to 128k, for 64bit Solaris and Linux.
                                     
2009-02-20
EVALUATION

Webrev:
  http://cr.openjdk.java.net/~chegar/6807602/webrev.00/webrev/

Code Review:
  http://mail.openjdk.java.net/pipermail/net-dev/2009-May/000868.html
                                     
2009-05-29
EVALUATION

Changeset:
  http://hg.openjdk.java.net/jdk7/tl/jdk/rev/928e0f1043e6
                                     
2009-05-29



Hardware and Software, Engineered to Work Together