delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/21/20:19:15

X-Spam-Check-By: sourceware.org
Message-ID: <453AB8FD.3030209@byu.net>
Date: Sat, 21 Oct 2006 18:19:09 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, ben AT 666 DOT com
Subject: Re: questions about excessive disk usage when doing tab completion
References: <453AAF44 DOT 4040201 AT 666 DOT com>
In-Reply-To: <453AAF44.4040201@666.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ben Wing on 10/21/2006 5:37 PM:
> I am using zsh on the latest cygwin and the first time I load it up and
> try to do tab completion on e.g. /mnt/g/download/<TAB>, it spends an
> inordinate amount of time grinding the disk -- sometimes on the order of
> 2 minutes or more.  the directory contains only 8 subdirs:

You didn't attach cygcheck output, so some of my reply is just a guess.
Is /mnt your preferred spelling for the cygdrive prefix?  Is /mnt/g a
local or remote disk?

> drwxrwxrwx+ 160 Ben None 0 Oct 16 11:03 utorrent/
              ^^^

This might be why - to correctly fill out the n_link member of struct stat
for a directory on a local drive, cygwin counts how many subdirectories
live in that directory.  Depending on how your disk is filled, it may take
some time to effectively readdir the directory to get that count.
Extra-full directories take longer to traverse, even if the traversal is
only to calculate how many subdirectories were encountered.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFOrj984KuGfSFAYARAihtAJ0XsWxY/JTOBw4Dg60b2F1EU6UXaACfQSGa
KS/YjVaHjSvli/kZ0utha4I=
=waMr
-----END PGP SIGNATURE-----

--
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