From owner-freebsd-fs@freebsd.org Mon Jul 6 20:46:53 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 264F79959DC for ; Mon, 6 Jul 2015 20:46:53 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id DD2E810E6 for ; Mon, 6 Jul 2015 20:46:52 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BrAwDa6JpV/61jaINcDoNYYAaDGbo+CYFkCoUtSgKBcxQBAQEBAQEBgQqEIwEBAQMBAQEBICsgCwULAgEIGAICDRkCAicBCSYCBAgHBAEcBIgFCA20bJZkAQEBAQEFAQEBAQEBAQEagSGKKoQtBwEBBRc0B4ItOxKBMQWUFYRihDaECkSGYIwbg1sCJmOCWloiMQd9CRcjgQQBAQE X-IronPort-AV: E=Sophos;i="5.15,417,1432612800"; d="scan'208";a="224070687" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-annu.net.uoguelph.ca with ESMTP; 06 Jul 2015 16:46:15 -0400 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id C196615F542; Mon, 6 Jul 2015 16:46:15 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id sGTNhsyW7zTJ; Mon, 6 Jul 2015 16:46:15 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 4F4C215F54D; Mon, 6 Jul 2015 16:46:15 -0400 (EDT) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pE26ETPH4wsh; Mon, 6 Jul 2015 16:46:15 -0400 (EDT) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 3492915F542; Mon, 6 Jul 2015 16:46:15 -0400 (EDT) Date: Mon, 6 Jul 2015 16:46:15 -0400 (EDT) From: Rick Macklem To: Graham Allan Cc: freebsd-fs@freebsd.org Message-ID: <1318238880.4985990.1436215575189.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <20150706191956.GL12772@physics.umn.edu> References: <20150706191956.GL12772@physics.umn.edu> Subject: Re: increasing MAXNFSDCNT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF34 (Win)/8.0.9_GA_6191) Thread-Topic: increasing MAXNFSDCNT Thread-Index: 443y2hyN1u9INvTdgeWX2pNBtFKiLQ== X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2015 20:46:53 -0000 Graham Allan wrote: > Regarding the maximum number of nfs server threads, is increasing the > "#define MAXNFSDCNT 256" in nfsd.c the only thing needed to try higher > values? > Oops, my turn to admit that I should have read the man page before answering. If you have a fairly recent nfsd that supports the "-maxthreads" option, you can set this and I'm pretty sure you can make it larger than 256. The system actually dynamically adjusts the # of nfsd kernel threads between "-minthreads" and "-maxthreads". The "-n" option (which should probably be deprecated) sets both of these to the same value and is limited to MAXNFSDCNT (256). If your nfsd doesn't support "-maxthreads", increasing MAXNFSDCNT should work. rick > My FreeBSD nfs servers are still just at 128 threads, but I was > experimenting with one of our linux servers which became happy > at 512 threads (really ~400 in use under load). The load profile is > pretty similar, so it might be reasonable to expect ending up around the > same value. > > Graham > -- > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >