From owner-svn-src-head@FreeBSD.ORG Thu Jan 9 16:18:31 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14BB139D; Thu, 9 Jan 2014 16:18:31 +0000 (UTC) Received: from mail-qc0-x22c.google.com (mail-qc0-x22c.google.com [IPv6:2607:f8b0:400d:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9044F1478; Thu, 9 Jan 2014 16:18:30 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id c9so1292629qcz.31 for ; Thu, 09 Jan 2014 08:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=2SwdR2aEdqtfBGt/QlWBrpOqRiiJebZdm6nKeJHTTGU=; b=e4//9ebIyLBcKMxHtMDTAxjpk70Zaye3wPKxiGzm8Cd+476qSa2SggnWscb+GxL2kk mm2NrSsVC4vXRehyuqMdBFeOv+znxHUlMDwA19E7Knmm//PMC8qI426cpybDLmzzonu0 aO+YqpXd108UgSkJRmOSluGlBwFcNHBoQNIR/fWvZCtFkdSKooRqpWpOhVCcuTqy4s/V 7VOvJ9yhelyewepCeGP2cai/d6FWI3utnWUq8ky1n5IKvtMWR8pwSwFCYrACPE+KtXqt Wz0r0x1Je7UT4TqShorVGgcAvLLlhnTJQZPEF5nL/ZVLaXP6qfY6F08BXxKwCX/rBzxt vnUA== MIME-Version: 1.0 X-Received: by 10.49.30.197 with SMTP id u5mr9086432qeh.33.1389284309729; Thu, 09 Jan 2014 08:18:29 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Thu, 9 Jan 2014 08:18:29 -0800 (PST) In-Reply-To: <52CEC79F.2090708@FreeBSD.org> References: <201401091555.s09Fttju004938@svn.freebsd.org> <52CEC79F.2090708@FreeBSD.org> Date: Thu, 9 Jan 2014 08:18:29 -0800 X-Google-Sender-Auth: WO5k4vjspmIhRPaq63wMyC2rts0 Message-ID: Subject: Re: svn commit: r260486 - head/etc/defaults From: Adrian Chadd To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 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:18:31 -0000 Hi, 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. -a 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