public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: sfaibish <sfaibish@emc.com>
Cc: "Peng Yu" <pengyu.ut@gmail.com>, linux-nfs@vger.kernel.org
Subject: Re: Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited?
Date: Thu, 26 Aug 2010 20:42:29 +1000	[thread overview]
Message-ID: <20100826204229.28aa9459@notabene> (raw)
In-Reply-To: <op.vh1ivtybunckof@usensfaibisl2e.eng.emc.com>

On Thu, 26 Aug 2010 06:17:43 -0400
sfaibish <sfaibish@emc.com> wrote:

> On Wed, 25 Aug 2010 20:31:52 -0400, Neil Brown <neilb@suse.de> wrote:
> 
> > On Wed, 25 Aug 2010 20:12:02 -0400
> > sfaibish <sfaibish@emc.com> wrote:
> >
> >> On Wed, 25 Aug 2010 19:36:48 -0400, Neil Brown <neilb@suse.de> wrote:
> >>
> >> > On Wed, 25 Aug 2010 15:02:14 -0500
> >> > Peng Yu <pengyu.ut@gmail.com> wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> I changed the value of RPCNFSDCOUNT in /etc/default/nfs-kernel-server
> >> >> (ubuntu). Do I need to restart the machine?
> >> >>
> >> >> Or I need to restart nfsd? If so, would you please let me know how to
> >> >> restart nfsd?
> >> >>
> >> >
> >> > Easiest thing to do is simply
> >> >
> >> >    rpc.nfsd $NUMBER
> >> >
> >> > it will change the number of running threads to match the number that  
> >> you
> >> > give.
> >> You still need to stop and restart the nfs for this to take effect.
> >
> > Have you tried it?
> Have you? Obviously not.
> 
> >
> > I assure you that running rpc.nfsd like this does change the number of
> > threads from whatever it is to the given number. (I should know, I wrote  
> > the
> > code :-)
> No it does not if you check how many daemons are running (ps) you will see  
> that it only
> changed the value not the number of running daemons.

We must be talking about different things.

sh-4.1# ps axgu | grep nfsd
root      2771  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd4]
root      2772  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2773  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2774  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2775  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2776  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2777  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2778  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2779  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      9621  0.0  0.0 112308   868 pts/14   S+   20:39   0:00 grep nfsd
sh-4.1# rpc.nfsd 16
sh-4.1# ps axgu | grep nfsd
root      2771  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd4]
root      2772  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2773  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2774  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2775  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2776  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2777  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2778  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2779  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      9623  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9624  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9625  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9626  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9627  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9628  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9629  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9630  0.0  0.0      0     0 ?        S    20:39   0:00 [nfsd]
root      9632  0.0  0.0 112308   868 pts/14   S+   20:39   0:00 grep nfsd
sh-4.1# rpc.nfsd 3
sh-4.1# ps axgu | grep nfsd
root      2771  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd4]
root      2772  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2773  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      2774  0.0  0.0      0     0 ?        S    Aug20   0:00 [nfsd]
root      9635  0.0  0.0 112308   864 pts/14   S+   20:39   0:00 grep nfsd
sh-4.1# 


So when I run "rpc.nfsd N" and I check with "ps" how many deamons are
running, I find that N are running.

Maybe you mean something different??

NeilBrown

  reply	other threads:[~2010-08-26 10:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-25 20:02 Does the machine need to be restarted after RPCNFSDCOUNT in /etc/default/nfs-kernel-server (ubuntu) is edited? Peng Yu
2010-08-25 23:11 ` sfaibish
2010-08-25 23:36 ` Neil Brown
2010-08-26  0:12   ` sfaibish
2010-08-26  0:31     ` Neil Brown
2010-08-26 10:17       ` sfaibish
2010-08-26 10:42         ` Neil Brown [this message]
2010-08-26 11:59   ` Peng Yu
2010-08-26 21:43     ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100826204229.28aa9459@notabene \
    --to=neilb@suse.de \
    --cc=linux-nfs@vger.kernel.org \
    --cc=pengyu.ut@gmail.com \
    --cc=sfaibish@emc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox