From owner-freebsd-net@FreeBSD.ORG Thu May 20 08:44:45 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC75616A4CE; Thu, 20 May 2004 08:44:45 -0700 (PDT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28C1F43D46; Thu, 20 May 2004 08:44:45 -0700 (PDT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id i4KFihE8090393; Thu, 20 May 2004 10:44:44 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <40ACD24E.8010401@centtech.com> Date: Thu, 20 May 2004 10:44:14 -0500 From: Eric Anderson User-Agent: Mozilla Thunderbird 0.6 (X11/20040520) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Shorter References: <40ABD7C8.7050405@centtech.com> <20040520154459.GA99944@nomad.lets.net> In-Reply-To: <20040520154459.GA99944@nomad.lets.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: Max NFSD processes X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 15:44:45 -0000 Steve Shorter wrote: >On Wed, May 19, 2004 at 04:55:20PM -0500, Eric Anderson wrote: > > >>I have several heavily used NFS servers, currently running FreeBSD >>4.9-RELEASE. I'm getting jammed up with all my nfsd processes being >>busy, so clients see slow connections to the server. I have the nfsd >>starting with a count of 20, which is the max set in the nfsd.c file. >> >>Are there any risks I should be aware of before bumping up the max to >>say 40, or even 50? >> >> > > Depending on where the bottlnecks in the system are, >you can crank this up to whatever works for you. > > I have tested and am running nfs servers with 80 >and 100 nfsd's with no problems at all > > That's good to hear. Did you do any other tweaks? sysctl settings? mbufs? >>What would it take to make this a sysctl adjustable value? >> >> > > > This isn't neccessary IM0, because the number of >nfd's can be set at runtime. But the default max in >nfsd.c should be increased. > > I meant a sysctl for the MAXNFSDCNT setting in nfsd.c. >>Should the max be bumped higher by default nowdays? >> >> > > Yep. > > > >>Thanks - any help/hints is appreciated. >> >> >> > > You probably also want good nics (fxp0) and to >increase UDP buffer space. I have found that nfs over udp >offers supperior performance than tcp on a good LAN > > I'm currently using 3com's (xl0,xl1) and Intel Gigabit cards (em0,em1). Most of my clients are using udp. What did you set your buffer space to? Which sysctl did you change? Thanks! Eric -- ------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Today is the tomorrow you worried about yesterday. ------------------------------------------------------------------