Print this page
916 False-sharing in TCP hash buckets, plus size increase
        (originally Joyent OS-299 tcp_bindi() hash lock contention affects
        TCP client performance)

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, Joyent Inc. All rights reserved.
  */
 
 #ifndef _INET_TCP_IMPL_H
 #define _INET_TCP_IMPL_H
 

@@ -53,11 +54,11 @@
 
 /*
  * Bind hash list size and has function.  It has to be a power of 2 for
  * hashing.
  */
-#define TCP_BIND_FANOUT_SIZE    512
+#define TCP_BIND_FANOUT_SIZE    1024
 #define TCP_BIND_HASH(lport) (ntohs(lport) & (TCP_BIND_FANOUT_SIZE - 1))
 
 /*
  * This implementation follows the 4.3BSD interpretation of the urgent
  * pointer and not RFC 1122. Switching to RFC 1122 behavior would cause