From owner-freebsd-questions Sun May 28 19:12: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from search.sparks.net (search.sparks.net [208.5.188.60]) by hub.freebsd.org (Postfix) with ESMTP id 5EEEB37BBB7 for ; Sun, 28 May 2000 19:11:58 -0700 (PDT) (envelope-from dmiller@search.sparks.net) Received: by search.sparks.net (Postfix, from userid 100) id 2B864DC01; Sun, 28 May 2000 22:09:44 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id 1A421DC00 for ; Sun, 28 May 2000 22:09:44 -0400 (EDT) Date: Sun, 28 May 2000 22:09:44 -0400 (EDT) From: David Miller To: freebsd-questions@freebsd.org Subject: NFS memory leak? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All:) Late last week I was bringing NFS up on two system which had not been running it, so as to mount /usr/src and /usr/obj partitions for a -stable update. I got it done eventually, but dabble in NFS as little as possible. At one point I probably tried to issue a mount as user dmiller by mistake. Imagine my surprise when, three or so days later, I ran out of virtual memory. I killed a login screen I had running and ran top on another vty. Here's what I saw: last pid: 17746; load averages: 0.00, 0.00, 0.00 up 4+21:51:10 21:20:35 30 processes: 1 running, 29 sleeping CPU states: 0.0% user, 0.0% nice, 0.4% system, 1.9% interrupt, 97.7% idle Mem: 33M Active, 9396K Inact, 13M Wired, 3116K Cache, 7504K Buf, 2304K Free Swap: 256M Total, 254M Used, 1556K Free, 99% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 283 root 2 0 888K 468K select 0:35 0.00% 0.00% master 223 root 2 0 1240K 412K select 0:30 0.00% 0.00% sshd1 4438 root 2 0 1504K 564K select 0:21 0.00% 0.00% httpd 307 dmiller 10 0 143M 13352K nanslp 0:18 0.00% 0.00% mount_nfs 309 dmiller 10 0 143M 13352K nanslp 0:16 0.00% 0.00% mount_nfs 123 root 2 0 2232K 932K select 0:14 0.00% 0.00% named .... Two mount_nfs processes taking 143 MB each? There must be some memory leak in the mount process which lets it take N more bytes each time it tries to mount. Am I on the right track here Matt? FWIW, both systems were 4.0-s, cvsupped last Wednesday or so. --- David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message