NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/44625: memory exhaustion on NFS server while writing many files



hi,

On Thu, 17 Mar 2011 05:31:36 +0000
Mindaugas Rasiukevicius <rmind%netbsd.org@localhost> wrote:

> hash%abox3.so-net.ne.jp@localhost wrote:
> > <...>
> > The Npage of pnbufpl grows extremely.
> > 
> > I also tried some kernels checked out on other date. It seems that
> > this leakage is seen after struct componentname changes on Nov 30 2010.
> 
> http://nxr.netbsd.org/xref/src/sys/nfs/nfs_serv.c?r=1.156#465
> 
> A leak in this error path (at least)?

Good catch! I confirm that lookup'ing various nonexistent names
(like below script) on NFS client causes leak.
Thank you.

#!/bin/sh -
i=1
while : ; do
  # /usr/nfs/ is empty
  cat /usr/nfs/$i > /dev/null 2>&1
  i=$((i + 1))
done


--
Takahiro HAYASHI



Home | Main Index | Thread Index | Old Index