public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Performance of "ls -F"
Date: Fri, 22 Jan 2016 22:19:00 -0000	[thread overview]
Message-ID: <20160122201418.GC3268@calimero.vinschen.de> (raw)
In-Reply-To: <loom.20160122T082744-501@post.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1488 bytes --]

On Jan 22 07:30, Achim Gratz wrote:
> Bill Smith <bsmith <at> progress.com> writes:
> > The difference is 1.3 seconds versus 1 minute 7 seconds.  The directory is
> identical on the two NetApps and
> > they both contain ~29K files.  C-dot (Cluster Data On Tap) is the newest
> operating system for the NetApp.  It
> > also supports the newer SMB protocols.
> > 
> > I also tried the experiment with MKS Toolkit 8.6 and in both cases, it
> takes around .1 seconds.
> 
> Could you please show the result for running /usr/lib/csih/getVolInfo on the
> two directories?

Just a hint:  ls -F requires to stat every single file.  stat in turn
requires to load not only the usual metadata but also to fetch the ACL
and convert it to POSIX permissions.  If the ACL hasn't been created
with Cygwin 2.4.0, an additional number of AuthZ calls might be
performed with the number of calls == the number of different user
accounts in the ACLs of all files.  Which means, there are quite a few
packages going over the network.  Assuming this slow access only occurs
under 2.4.0, this might be one of the reasons to allow the user to
disable Authz processing (you have been warned, yada yada).  If that's
*not* the problem, we certainly need more details.  Like debugging
results to find out where the time is spent.


Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-01-22 20:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-21 18:10 Achim Gratz
2016-01-21 18:34 ` William M. (Mike) Miller
2016-01-21 19:09   ` Achim Gratz
2016-01-21 19:56   ` Bill Smith
2016-01-22 15:09     ` Achim Gratz
2016-01-22 22:19       ` Corinna Vinschen [this message]
2016-01-22 23:21         ` Achim Gratz
2016-01-23 19:55           ` Corinna Vinschen
2016-01-25 20:54             ` Achim Gratz
2016-01-25 21:03               ` Corinna Vinschen
2016-01-21 19:54 ` Bill Smith
2016-01-21 21:40   ` Achim Gratz
2016-01-25 20:08 Lemke, Michael  ST/HZA-ZIC2

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160122201418.GC3268@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).