Re: [newnfs/client] -alldirs: listing files consumes too much memory

From: Rick Macklem <rmacklem_at_uoguelph.ca>
Date: Thu, 16 Jul 2009 15:28:26 -0400 (EDT)
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
Received on Thu Jul 16 2009 - 17:25:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC