From owner-freebsd-bugs Mon Feb 18 7:26:28 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from proxy.centtech.com (moat.centtech.com [206.196.95.10]) by hub.freebsd.org (Postfix) with ESMTP id 48FC737B440 for ; Mon, 18 Feb 2002 07:25:17 -0800 (PST) Received: from sprint.centtech.com (sprint.centtech.com [10.177.173.31]) by proxy.centtech.com (8.11.6/8.11.6) with ESMTP id g1IFPGK25675 for ; Mon, 18 Feb 2002 09:25:16 -0600 (CST) Received: from centtech.com (proton [10.177.173.77]) by sprint.centtech.com (8.9.3+Sun/8.9.3) with ESMTP id JAA23919; Mon, 18 Feb 2002 09:25:16 -0600 (CST) Message-ID: <3C711C74.8B72CB14@centtech.com> Date: Mon, 18 Feb 2002 09:23:32 -0600 From: Eric Anderson Reply-To: anderson@centtech.com Organization: Centaur Technology X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-bugs@freebsd.org Cc: anderson@centtech.com Subject: nfsd high cpu load Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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