Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2000 22:09:44 -0400 (EDT)
From:      David Miller <dmiller@search.sparks.net>
To:        freebsd-questions@freebsd.org
Subject:   NFS memory leak?
Message-ID:  <Pine.BSF.4.21.0005282204050.17959-100000@search.sparks.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0005282204050.17959-100000>