delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/20/08:58:14

X-Spam-Check-By: sourceware.org
Date: Mon, 20 Nov 2006 14:57:56 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.20-1: ls -F slowness
Message-ID: <20061120135756.GB14878@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4550A3B7 DOT 6090002 AT scs DOT ch> <455B174B DOT 6060200 AT scs DOT ch> <456167C1 DOT 6020708 AT scs DOT ch>
Mime-Version: 1.0
In-Reply-To: <456167C1.6020708@scs.ch>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Nov 20 09:30, Scott Roland wrote:
> So if the SMB server is not being used much then the ls -F has no
> problems, unfortunately this is not the normal situation. I still don't
> have any clue as to what the 1.5.20 or newer versions would be doing
> special that make them slower than the 1.5.19 and earlier versions. (Are
> the newer versions parallelizing the system calls and our server ends up
> thrashing its cache?)

One difference from the point of view of the file server would be that
directories are read (aka "readdir") in chunks of 100 entries in one go
instead of reading the directory one entry at a time.  Another one would
be the fact that on servers supporting it, the file IDs (aka "inode
numbers") are read, too, which wasn't done in 1.5.19.  If the file
server does not support the SMB_FIND_ID_BOTH_DIRECTORY_INFO level, the
result is that one extra call per file is made to retrieve the file ID.
That would happen when

- running on NT4 or earlier.
- accessing remote NT4 and W2K shares.
- accessing remote shares from W2K.
- accessing remote shares on Samba versions below 3.0.
- accessing remote shares on Samba versions below 3.0.22 for
  directories with roughly more than 128 entries.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019