From owner-freebsd-current@FreeBSD.ORG Thu Jul 16 17:41:51 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 816D8106566B for ; Thu, 16 Jul 2009 17:41:51 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-bw0-f208.google.com (mail-bw0-f208.google.com [209.85.218.208]) by mx1.freebsd.org (Postfix) with ESMTP id 0BA158FC0A for ; Thu, 16 Jul 2009 17:41:49 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: by bwz4 with SMTP id 4so248593bwz.43 for ; Thu, 16 Jul 2009 10:41:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:user-agent:mime-version:content-type; bh=Ba2gFF5b6G6yvXCQ+QQi64n4HJCXWRlsiMLomDP9Ke8=; b=JfdjeyH+5SXYeFoBndG8koAHVS/XOLHfN5RdUGQaE8IwrfY5BSsxVqe1mOW+p2jBYl UAUKygAeTfjHKhDKJSLLzFB+tgVXy1JAW/JapoHPU5u2ASz7hnLYKXKzN7t1nE9W+3cU r1ZS4QdCjKHxLoRMfbiaXmdwqCypSuQrQcN3o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-type; b=MeJZAF/7iALYkOStRrG3EbmCeITu928j9QlZNicGVFn5+YyiO2ZLRt7NtPIDE2YvsX CE68D6CDiv/Vmt3uqODrR+BS/WE41LlASSOTg1v68p+mKC6xIBwX7j26KoMy6QLM7Q9w BSpq76gDmkYpmqKbNPeFEs7Xi5t1i/wxYU85k= Received: by 10.103.175.9 with SMTP id c9mr29957mup.3.1247766107055; Thu, 16 Jul 2009 10:41:47 -0700 (PDT) Received: from localhost (95-24-174-97.broadband.corbina.ru [95.24.174.97]) by mx.google.com with ESMTPS id 25sm1370397mul.50.2009.07.16.10.41.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 16 Jul 2009 10:41:46 -0700 (PDT) From: Anonymous To: freebsd-current@freebsd.org Date: Thu, 16 Jul 2009 21:41:43 +0400 Message-ID: <861vogcyp4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Rick Macklem Subject: [newnfs/client] -alldirs: listing files consumes too much memory X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2009 17:41:51 -0000 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 # time -l ls /mnt >&- 0.07 real 0.01 user 0.05 sys 1672 maximum resident set size 60 average shared memory size 718 average unshared data size 320 average unshared stack size 247 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 4 messages sent 0 messages received 0 signals received 3 voluntary context switches 8 involuntary context switches # : >/blah/foo_335 # time -l ls /mnt >&- [wait a few sec and type ^C] ^Ctime: command terminated abnormally 4.22 real 2.21 user 1.80 sys 70716 maximum resident set size 52 average shared memory size 1530 average unshared data size 278 average unshared stack size 17557 page reclaims 0 page faults 0 swaps 0 block input operations 0 block output operations 6 messages sent 0 messages received 0 signals received 3 voluntary context switches 188 involuntary context switches This was from qemu. On my main box with r195709M it doesn't stop after eating over 2Gb memory when trying to list 886 entries in distfiles dir. Is this one known?