Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2014 15:06:38 +0200
From:      =?iso-8859-1?Q?Jos=E9_Mar=EDa_Alcaide?= <jose@we.lc.ehu.es>
To:        freebsd-stable@freebsd.org
Subject:   9-STABLE nfsd(8) does not auto-tune number of threads (error in the 9.3 Release Notes!)
Message-ID:  <9E25E155-8236-409D-9A8F-E4A7EF609A9E@we.lc.ehu.es>

next in thread | raw e-mail | index | archive | help

One of the 9.3-RELEASE Release Notes (userland changes) states that:

"The default number of nfsd(8) threads has been increased from 4 to (8 * N), where N is the number of CPUs as reported by sysctl -n hw.ncpu. [r262124]"

Indeed, revision r262124 (http://svnweb.freebsd.org/base?view=revision&revision=262124) removes the "-n 4" option from nfs_server_flags in /etc/defaults/rc.conf.

The change is based on the premise that nfsd(8) auto-tunes the number of threads as (8 * hw.ncpu). That auto-tuning was introduced in HEAD revision r243637 of nfsd.c (http://svnweb.freebsd.org/base?view=revision&revision=243637), but it has not been MFC'd to 9-STABLE yet, so that release note *is not true*.

I think that r262124 should be reverted, also removing the release note mentioned above; or alternatively bring HEAD's nfsd.c on sync with 9-STABLE (probably a bad idea just before 9.3-RELEASE).


Greetings,

--
José M. Alcaide
Universidad del País Vasco
Dpto. de Electricidad y Electrónica
Facultad de Ciencia y Tecnología
48940 Leioa (Spain)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9E25E155-8236-409D-9A8F-E4A7EF609A9E>