Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 09:23:32 -0600
From:      Eric Anderson <anderson@centtech.com>
To:        freebsd-bugs@freebsd.org
Cc:        anderson@centtech.com
Subject:   nfsd high cpu load
Message-ID:  <3C711C74.8B72CB14@centtech.com>

next in thread | raw e-mail | index | archive | help
This sure seems like a bug to me, but before I put in an official bug report,
I'll run it by everyone just to make sure I'm not missing something.  

I have a FreeBSD 4.5R NFS server, and the nfsd is slamming the cpu, for no
apparent reason.  I have Linux (RedHat 6.2, 7.2) and Solaris (2.7, 2.6) clients
accessing it via NFS.  It is part of an NIS domain.  I have had no problems in
the past, and had FreeBSD 4.4R on this machine and had NO TROUBLES until I
reinstalled and put 4.5R on it.  I can not get the load down at all, and even
some clients timeout while talking to this server.  Here is a clipped portion
from a top:
----------------
last pid:   328;  load averages:  1.00,  1.02,  1.00   up 18+23:27:18  09:07:20
53 processes:  3 running, 50 sleeping
CPU states: 18.3% user,  0.0% nice, 80.5% system,  1.2% interrupt,  0.0% idle
Mem: 21M Active, 747M Inact, 182M Wired, 52M Cache, 112M Buf, 1664K Free
Swap: 2048M Total, 164K Used, 2048M Free

  PID USERNAME   PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
30358 root        61   0   364K   160K RUN    165.4H 94.43% 94.43% nfsd
30359 root         2   0   356K   152K RUN     32:39  2.93%  2.93% nfsd
30360 root         2   0   356K   152K nfsd     0:49  0.00%  0.00% nfsd
  129 root         2   0  2512K  1524K select   0:38  0.00%  0.00% sendmail
   80 root         2   0  1300K   748K select   0:35  0.00%  0.00% ntpd
23865 root         2   0  1868K  1032K select   0:21  0.00%  0.00% nmbd
   87 root         2   0   720K   508K select   0:14  0.00%  0.00% mountd
30361 root         2   0   356K   152K nfsd     0:12  0.00%  0.00% nfsd
   82 daemon       2   0   960K   560K select   0:11  0.00%  0.00% portmap
30362 root         2   0   356K   152K nfsd     0:07  0.00%  0.00% nfsd
  115 root         2   0  1160K   756K select   0:07  0.00%  0.00% amd
-----------------

Here is some other info about the box:
machine has dual nics, and is serving data on both ports.
in rc.conf:
nfs_reserved_port_only="YES"
nfs_server_enable="YES"
nfs_server_flags="-h 10.177.178.51 -h 10.177.176.40 -u -t -n 20"

and in sysctl.conf:
vfs.nfs.gatherdelay=0
vfs.nfs.async=1
vfs.vmiodirenable=1
kern.ipc.maxsockbuf=2097152
kern.ipc.somaxconn=8192
kern.ipc.maxsockets=16424
kern.maxfiles=65536
kern.maxfilesperproc=32768
net.inet.tcp.rfc1323=1
net.inet.tcp.delayed_ack=0
net.inet.tcp.sendspace=65535
net.inet.tcp.recvspace=65535
net.inet.udp.recvspace=65535
net.inet.udp.maxdgram=57344
net.local.stream.recvspace=65535
net.local.stream.sendspace=65535
net.inet.ip.forwarding=1

It appears that Solaris machines have a hard time with the NFS serving as well,
but this may or may not be related. 

Anyone seen anything like this?

Eric



-- 
------------------------------------------------------------------
Eric Anderson	 anderson@centtech.com    Centaur Technology
If at first you don't succeed, sky diving is probably not for you.
------------------------------------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C711C74.8B72CB14>