From owner-svn-src-head@FreeBSD.ORG Thu Jan 9 16:29:16 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 924A4832; Thu, 9 Jan 2014 16:29:16 +0000 (UTC) Received: from mail-ee0-x231.google.com (mail-ee0-x231.google.com [IPv6:2a00:1450:4013:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A8F0115B0; Thu, 9 Jan 2014 16:29:15 +0000 (UTC) Received: by mail-ee0-f49.google.com with SMTP id c41so1433907eek.22 for ; Thu, 09 Jan 2014 08:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=VtScv1xC/ct4Ybenh8jN2f8FdGjl5HOmK7tj2sOSV9A=; b=upxFD8IrPr9K42h9YYzIhSSE2KLWtMVJs0xm3NNLbz9n9KkIjyUpWpEmBjHliuUh9Z xWYe/Ht/4BZIDOlvdiCOBToIOmR3B6uvOscST85RHNWqKrHLfP/LPmSGfHVfQRM9MWqk LefiNmNcxVhZZtJTH5vlQBw7y+APgMNBtHisP0cNQwOFMMhiHBwO77jdD6GWATJNwaNv IRFAdn/rBg9sxbOEsue2RTjDCe4J82vTBgZElVgiIRGu0RwyknP25+secbDBiiZ2yUAh 97/YRjQLBxMufxA968voKh14+l68umjildTORt5Z3Aa4AAhkbUjPV42GONxhb9gVa20r 9PPg== X-Received: by 10.15.24.72 with SMTP id i48mr4299765eeu.74.1389284954017; Thu, 09 Jan 2014 08:29:14 -0800 (PST) Received: from mavbook.mavhome.dp.ua ([134.249.139.101]) by mx.google.com with ESMTPSA id 7sm6902961eee.12.2014.01.09.08.29.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 08:29:13 -0800 (PST) Sender: Alexander Motin Message-ID: <52CECE57.4040002@FreeBSD.org> Date: Thu, 09 Jan 2014 18:29:11 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: svn commit: r260486 - head/etc/defaults References: <201401091555.s09Fttju004938@svn.freebsd.org> <52CEC79F.2090708@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jan 2014 16:29:16 -0000 On 09.01.2014 18:18, Adrian Chadd wrote: > Depends if you're thinking locally or globally. > > Locally - for nfs? not a big deal. > > Globally - NFS, ZFS, GELI, geom/cam, NIC, etc.. suddenly your machine > could default to having a couple thousand worker threads just for a > HBA and a 10GE NIC. That's a little nuts. So, what is your point? Each NFS thread (unlike GEOM or CAM) executes only _one_ request at a time. Would you like your 128-core/many-spindle system executed only 4 synchronous requests at a time? > On 9 January 2014 08:00, Alexander Motin wrote: >> On 09.01.2014 17:57, Adrian Chadd wrote: >>> >>> .. so with say, 128 core boxes showing up, is this really a good default? >> >> >> And what is the price? 16K+ of KVA per thread for thread stack, etc? 4 >> threads is probably much worse default there. May be nfsd's default could be >> tuned, but obviously it should not be hardcoded value. >> >> >>> On 9 January 2014 07:55, Alexander Motin wrote: >>>> >>>> Author: mav >>>> Date: Thu Jan 9 15:55:55 2014 >>>> New Revision: 260486 >>>> URL: http://svnweb.freebsd.org/changeset/base/260486 >>>> >>>> Log: >>>> Remove very low default limit of 4 nfsd threads. nfsd's own default >>>> is >>>> 8 * hw.ncpu, that sounds more appropriate for these SMP/NCQ/... days. >>>> >>>> Modified: >>>> head/etc/defaults/rc.conf >>>> >>>> Modified: head/etc/defaults/rc.conf >>>> >>>> ============================================================================== >>>> --- head/etc/defaults/rc.conf Thu Jan 9 15:38:28 2014 (r260485) >>>> +++ head/etc/defaults/rc.conf Thu Jan 9 15:55:55 2014 (r260486) >>>> @@ -311,7 +311,7 @@ nfs_client_enable="NO" # This host is a >>>> nfs_access_cache="60" # Client cache timeout in seconds >>>> nfs_server_enable="NO" # This host is an NFS server (or NO). >>>> oldnfs_server_enable="NO" # Run the old NFS server (YES/NO). >>>> -nfs_server_flags="-u -t -n 4" # Flags to nfsd (if enabled). >>>> +nfs_server_flags="-u -t" # Flags to nfsd (if enabled). >>>> mountd_enable="NO" # Run mountd (or NO). >>>> mountd_flags="-r" # Flags to mountd (if NFS server >>>> enabled). >>>> weak_mountd_authentication="NO" # Allow non-root mount requests >>>> to be served. >> >> >> >> -- >> Alexander Motin -- Alexander Motin