Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 15:28:26 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Anonymous <swell.k@gmail.com>
Cc:        Rick Macklem <rmacklem@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: [newnfs/client] -alldirs: listing files consumes too much memory
Message-ID:  <Pine.GSO.4.63.0907161525040.13015@muncher.cs.uoguelph.ca>
In-Reply-To: <861vogcyp4.fsf@gmail.com>
References:  <861vogcyp4.fsf@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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@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




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