Memory leak in NFSv4?
Fredrik Tolf
fredrik at dolda2000.com
Mon Dec 11 15:14:43 EST 2006
On Mon, 2006-12-11 at 13:18 -0500, J. Bruce Fields wrote:
> Oh, by the way, meanwhile if you've got a moment there's a simple test
> you could try for me:
>
> echo `date +'%s'` >/proc/net/rpc/auth.rpcsec.context/flush
You don't think just date +%s >/proc/net/rpc/auth.rpcsec.context/flush
would do it? ;)
> and report the reference count before and after.
Sure thing. Before, it was 984, and after (I saw one client create a new
context almost immediately) it was 985. Another client then created a
new context as well, so it went up to 986. I then tried SSH:ing to the
other two clients, and the refcount went up to 990. I just found it
interesting that an SSH login increased the refcount by two, while an
existing login just increased it by one. Might my suspicion be correct
that sshd tries to peek into the user's home directory for something and
thus creates a new anonymous context?
Fredrik Tolf
More information about the NFSv4
mailing list