[newnfs/client] -alldirs: listing files consumes too much memory
rmacklem at uoguelph.ca
Thu Jul 16 19:25:30 UTC 2009
On Thu, 16 Jul 2009, Anonymous wrote:
> Let's create 335 empty files in /blah and try to list them over nfsv3.
> # uname -vm
> FreeBSD 8.0-BETA1 #0: Sat Jul 4 03:55:14 UTC 2009 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
> # mkdir /blah
> # (while [ $((i+=1)) -le 334 ]; do : >/blah/foo_$i; done)
> # echo / -alldirs >/etc/exports
> # /etc/rc.d/nfsd onestart
> # mount -t newnfs -o nfsv3 0:/blah /mnt
> # : >/blah/foo_335
It actually just takes having foo_335 in the dir. to trigger it.
> Is this one known?
It is now;-). I reproduced it without difficultly, so it should be
straightforward to fix. (For the dir with foo_N up foo_335 in it,
readdir goes into a loop in the client.)
Thanks for finding it, rick
More information about the freebsd-current