Print this page
7651 default maximum nfs server threads is insufficient

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/rpc/svc_rdma.c
          +++ new/usr/src/uts/common/rpc/svc_rdma.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1983, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright (c) 2012 by Delphix. All rights reserved.
  23   24   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  26   27  /* All Rights Reserved */
  27   28  /*
  28   29   * Portions of this source code were derived from Berkeley
  29   30   * 4.3 BSD under license from the Regents of the University of
  30   31   * California.
  31   32   */
  32   33  
↓ open down ↓ 1099 lines elided ↑ open up ↑
1132 1133   * the dup cacheing routines below provide a cache of non-failure
1133 1134   * transaction id's.  rpc service routines can use this to detect
1134 1135   * retransmissions and re-send a non-failure response.
1135 1136   */
1136 1137  
1137 1138  /*
1138 1139   * MAXDUPREQS is the number of cached items.  It should be adjusted
1139 1140   * to the service load so that there is likely to be a response entry
1140 1141   * when the first retransmission comes in.
1141 1142   */
1142      -#define MAXDUPREQS      1024
     1143 +#define MAXDUPREQS      8192
1143 1144  
1144 1145  /*
1145 1146   * This should be appropriately scaled to MAXDUPREQS.
1146 1147   */
1147      -#define DRHASHSZ        257
     1148 +#define DRHASHSZ        2053
1148 1149  
1149 1150  #if ((DRHASHSZ & (DRHASHSZ - 1)) == 0)
1150 1151  #define XIDHASH(xid)    ((xid) & (DRHASHSZ - 1))
1151 1152  #else
1152 1153  #define XIDHASH(xid)    ((xid) % DRHASHSZ)
1153 1154  #endif
1154 1155  #define DRHASH(dr)      XIDHASH((dr)->dr_xid)
1155 1156  #define REQTOXID(req)   ((req)->rq_xprt->xp_xid)
1156 1157  
1157 1158  static int      rdmandupreqs = 0;
↓ open down ↓ 293 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX