From owner-freebsd-current@FreeBSD.ORG Wed Apr 21 13:46:58 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE84116A4CE for ; Wed, 21 Apr 2004 13:46:58 -0700 (PDT) Received: from avalon.linuxpowered.com (avalon.linuxpowered.com [64.246.60.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78A4043D5A for ; Wed, 21 Apr 2004 13:46:58 -0700 (PDT) (envelope-from diz@linuxpowered.com) Received: from linuxpowered.com (txirvcom-itnfw01.verizon.com [::ffff:192.76.54.20]) (AUTH: CRAM-MD5 diz@linuxpowered.com) by avalon.linuxpowered.com with esmtp; Wed, 21 Apr 2004 15:56:04 -0500 Message-ID: <4086DDA1.3080401@linuxpowered.com> Date: Wed, 21 Apr 2004 15:46:25 -0500 From: masta Organization: wifibsd.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garance A Drosihn References: <40867A5D.9010600@centtech.com> <4086D513.9010605@centtech.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: Eric Anderson Subject: Re: Directories with 2million files X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: masta@wifibsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 20:46:58 -0000 Garance A Drosihn wrote: > At 3:09 PM -0500 4/21/04, Eric Anderson wrote: > >> Garance A Drosihn wrote: >> >> I suppose this is one of those "who needs files bigger than 2gb?" >> things.. > > > Perhaps, but as a general rule we'd like our system utilities to > at least *work* in extreme situations. This is something I'd > love to dig into if I had the time, but I'm not sure I have the > time right now. > I'm not sure how we can improve this situation. Considering that an `ls -l` is forced to stat every file, and store that info until the time comes to dump it to the tty for the human operator. The problem seems somewhat geometric, and un-fixable unless you want to find a way to page out the stat information of each file to a dump file of some sort, then cat that info back to the operator upon conclusion of the main loop. Even then, list 2 million files will be excesive just storing the file names for display. -Jon