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,28 ****
--- 19,29 ----
* 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,248 ****
#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
#ifdef _ILP32
#define TCP_ACCEPTOR_HASH(accid) \
(((uint_t)(accid) >> 8) & (TCP_ACCEPTOR_FANOUT_SIZE - 1))
#else
--- 239,249 ----
#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 512
#ifdef _ILP32
#define TCP_ACCEPTOR_HASH(accid) \
(((uint_t)(accid) >> 8) & (TCP_ACCEPTOR_FANOUT_SIZE - 1))
#else