Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Oct 2010 13:30:44 +0100
From:      Pete French <petefrench@ticketswitch.com>
To:        freebsd-fs@freebsd.org, gvidals@gmail.com
Subject:   Re: moving away from freebsd and zfs
Message-ID:  <E1P4C60-000O4X-8u@dilbert.ticketswitch.com>
In-Reply-To: <AANLkTik6K2sZy0Wosj1cadz=mbAktzTZFzTEenopF-9C@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> After several hours of research on the crash, it seems that FreeBSD 8.1
> won't launch more than one nfsd, no matter what is configured in rc.conf.
> (FreeBSD 7.x does launch multiple NFS daemons). So when I added my second
> mount point, the CPU load went very high for the RPC services and the second
> NFS mount point disconnected, brining down the running VMs.
>
> PROBLEM: only one nfsd
> zambia# ps waux | grep nfs
> root     1213  0.0  0.0  5804  1508  ??  Is    5:23PM   0:00.02 nfsd: master (nfsd)
> root     1214  0.0  0.0  5804  1588  ??  S     5:23PM   8:06.88 nfsd: server (nfsd)

try adding '-H' to the 'ps' line and see if you can see all your
nfs daemons - as far as I know the nfsd in 8.x is multi-threaded
so instead of luaunching multiple processes you get a single process
with the number of threads defined.

e.g., on my server:

[pete@skerry ~]$ ps waux | grep nfs
root        1479  0.0  0.0  5824   944  ??  Is   28Sep10   0:00.01 nfsd: master (nfsd)
root        1480  0.0  0.0  5824   944  ??  S    28Sep10   0:07.48 nfsd: server (nfsd

[pete@skerry ~]$ grep nfs /etc/rc.conf
nfs_server_enable="YES"
nfs_server_flags="-t -n 4 -a"
nfs_client_enable="YES"

[pete@skerry ~]$ ps wauxH | grep nfs
root        1479  0.0  0.0  5824   944  ??  Is   28Sep10   0:00.01 nfsd: master (nfsd)
root        1480  0.0  0.0  5824   944  ??  S    28Sep10   0:01.91 nfsd: server (nfsd)
root        1480  0.0  0.0  5824   944  ??  S    28Sep10   0:01.90 nfsd: server (nfsd)
root        1480  0.0  0.0  5824   944  ??  S    28Sep10   0:01.85 nfsd: server (nfsd)
root        1480  0.0  0.0  5824   944  ??  S    28Sep10   0:01.82 nfsd: server (nfsd)

...and there they all are, all four of them.

So it looks like you were running as many nfsd processes as you
thought - which makes the crash caused by something different
I guess :-(

-pete.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1P4C60-000O4X-8u>