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)
@@ -19,10 +19,11 @@
* CDDL HEADER END
*/
/*
* Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, Joyent Inc. All rights reserved.
*/
/* Copyright (c) 1990 Mentat Inc. */
#include <sys/types.h>
#include <sys/stream.h>
@@ -238,11 +239,11 @@
#define TIDUSZ 4096 /* transport interface data unit size */
/*
* Size of acceptor hash list. It has to be a power of 2 for hashing.
*/
-#define TCP_ACCEPTOR_FANOUT_SIZE 256
+#define TCP_ACCEPTOR_FANOUT_SIZE 512
#ifdef _ILP32
#define TCP_ACCEPTOR_HASH(accid) \
(((uint_t)(accid) >> 8) & (TCP_ACCEPTOR_FANOUT_SIZE - 1))
#else