Il giorno Thu, 7 Mar 2002, Alexander Perry cosė ha scritto:

|From: Alexander Perry <[EMAIL PROTECTED]>
|To: [EMAIL PROTECTED]
|Date: Thu, 07 Mar 2002 08:43:59 -0800
|Subject: [Ltsp-discuss] can't ls in directory >90,000 files
|
|There is a "-U" option on 'ls' that disables the sort and may be much faster.
|Plus, if you're using any of the options that request additional details on
|the files, the command and the kernel have to access the directory _many_ times.
|In any case, I'd avoid more than 1000 files per directory - irrespective of
|kernel efficiency - because it is so easy to make a stupid mistake in there.
|
|I normally put the real files in an adjacent multilevel heirarchy for future
|users and for applications where we can be bothered to migrate the code,
|then have a script that creates a large number of soft links to form a single
|level flattened directory for legacy read-only access to the files. My $0.02
|

  If you can do without any formatting and sorting of the file list, the
quickest way to have a list of files is  echo * .  This is what I do when I
want to count files:  echo * | wc -w .  The con is that you have file names on
a long line, separated by spaces instead of line feeds.

  My Eur0.01



  Sandro


-- 
Bellum se ipsum alet.
       La guerra nutre se stessa.

Livio, "Ab urbe condita", XXXIV,9


_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net

Reply via email to