Print this page
7651 default maximum nfs server threads is insufficient

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/rpc/svc_cots.c
          +++ new/usr/src/uts/common/rpc/svc_cots.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) 1993, 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 ↓ 671 lines elided ↑ open up ↑
 706  707   * the dup cacheing routines below provide a cache of non-failure
 707  708   * transaction id's.  rpc service routines can use this to detect
 708  709   * retransmissions and re-send a non-failure response.
 709  710   */
 710  711  
 711  712  /*
 712  713   * MAXDUPREQS is the number of cached items.  It should be adjusted
 713  714   * to the service load so that there is likely to be a response entry
 714  715   * when the first retransmission comes in.
 715  716   */
 716      -#define MAXDUPREQS      1024
      717 +#define MAXDUPREQS      8192
 717  718  
 718  719  /*
 719  720   * This should be appropriately scaled to MAXDUPREQS.
 720  721   */
 721      -#define DRHASHSZ        257
      722 +#define DRHASHSZ        2053
 722  723  
 723  724  #if ((DRHASHSZ & (DRHASHSZ - 1)) == 0)
 724  725  #define XIDHASH(xid)    ((xid) & (DRHASHSZ - 1))
 725  726  #else
 726  727  #define XIDHASH(xid)    ((xid) % DRHASHSZ)
 727  728  #endif
 728  729  #define DRHASH(dr)      XIDHASH((dr)->dr_xid)
 729  730  #define REQTOXID(req)   ((req)->rq_xprt->xp_xid)
 730  731  
 731  732  static int      cotsndupreqs = 0;
↓ open down ↓ 236 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX