Print this page
7651 default maximum nfs server threads is insufficient

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/rpc/svc_clts.c
          +++ new/usr/src/uts/common/rpc/svc_clts.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24   24   *  Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
       25 + * Copyright (c) 2012 by Delphix. All rights reserved.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  /*
  31   32   * Portions of this source code were derived from Berkeley 4.3 BSD
  32   33   * under license from the Regents of the University of California.
  33   34   */
  34   35  
↓ open down ↓ 705 lines elided ↑ open up ↑
 740  741   * the dup cacheing routines below provide a cache of non-failure
 741  742   * transaction id's.  rpc service routines can use this to detect
 742  743   * retransmissions and re-send a non-failure response.
 743  744   */
 744  745  
 745  746  /*
 746  747   * MAXDUPREQS is the number of cached items.  It should be adjusted
 747  748   * to the service load so that there is likely to be a response entry
 748  749   * when the first retransmission comes in.
 749  750   */
 750      -#define MAXDUPREQS      1024
      751 +#define MAXDUPREQS      8192
 751  752  
 752  753  /*
 753  754   * This should be appropriately scaled to MAXDUPREQS.
 754  755   */
 755      -#define DRHASHSZ        257
      756 +#define DRHASHSZ        2053
 756  757  
 757  758  #if ((DRHASHSZ & (DRHASHSZ - 1)) == 0)
 758  759  #define XIDHASH(xid)    ((xid) & (DRHASHSZ - 1))
 759  760  #else
 760  761  #define XIDHASH(xid)    ((xid) % DRHASHSZ)
 761  762  #endif
 762  763  #define DRHASH(dr)      XIDHASH((dr)->dr_xid)
 763  764  #define REQTOXID(req)   ((req)->rq_xprt->xp_xid)
 764  765  
 765  766  static int      ndupreqs = 0;
↓ open down ↓ 247 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX