delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/16/15:53:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50
X-Spam-Check-By: sourceware.org
From: Adam Mlodzinski <Adam DOT Mlodzinski AT quest DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Tue, 16 Mar 2010 13:52:29 -0700
Subject: inconsistent slowness listing C:
Message-ID: <1FE9A296676737419A8912A6FD22AE1D02636A7779@alvxmbw04.prod.quest.corp>
x-cr-puzzleid: {75FBD069-1A23-49AE-B891-11FC9045F17C}
x-cr-hashedpuzzle: AR4R B1+X CWUg CpEn C8Ql EyLy FtTA F3W7 HdLW IG7e IbQF JBhp JEqD Js21 J0Vl K2nc;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{75FBD069-1A23-49AE-B891-11FC9045F17C};YQBkAGEAbQAuAG0AbABvAGQAegBpAG4AcwBrAGkAQABxAHUAZQBzAHQALgBjAG8AbQA=;Tue, 16 Mar 2010 20:52:29 GMT;aQBuAGMAbwBuAHMAaQBzAHQAZQBuAHQAIABzAGwAbwB3AG4AZQBzAHMAIABsAGkAcwB0AGkAbgBnACAAQwA6AA==
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I've been experiencing a weird problem with my Cygwin shells recently, whic=
h prompted me to install SFU. I've tried finding related information, but h=
aven't found anything recent. I updated my Cygwin install about 2 to 3 week=
s ago, so it should be quite recent.

The problem is that some commands sometimes take a very long time to comple=
te. I've noticed this mostly when invoking the complete-word-fwd key bindin=
g (ie. using <Tab> to complete either commands, shell built-ins or pathname=
s) or when listing the contents of the root of drive C:. The weird thing ab=
out the ls command is that in most directories, it works fine, and it also =
works fine if I use the syntax "ls C:/", but is terribly slow if I use "ls =
/cygdrive/c/". I've got fairly complicated .login and .tcshrc scripts, but =
even after removing them entirely and setting PATH to simply "/bin:/sbin", =
I still see the same problem. It's very frustrating when you type the first=
 3 characters of a directory name, hit <Tab> and then see your terminal fre=
eze for 60 seconds or more.
I generally use tcsh, but have the same problems with bash, too.



Here are some sample timings of 4 different ways of listing C, showing "ls =
C:/" taking between 10 ms and 30 ms, compared to "ls /cygdrive/c/" taking b=
etween 66420 ms and 68250 ms:


16:14:11 adam% set echo ; time ls C:/ ; time ls C: ; time ls /cygdrive/c/ ;=
 time ls /cygdrive/c ; !#:7-9; !#:3-5; !#:15-17; !#:11-13; unset echo
set echo ; time ls C:/ ; time ls C: ; time ls /cygdrive/c/ ; time ls /cygdr=
ive/c ; time ls C: ; time ls C:/ ; time ls /cygdrive/c ; time ls /cygdrive/=
c/ ; unset echo
ls C:/
!Profile                IO.SYS         System Volume Information           =
  my.tcshrc
8824f0f55434edce38      MSDOS.SYS      UPLOADS                             =
  ntldr
AUTOEXEC.BAT            MSOCache       VPC                                 =
  pagefile.sys
Admin Consoles          NTDETECT.COM   WINDOWS                             =
  super.txt
CONFIG.SYS              OutlookOST     adams.log                           =
  tcsh.exe.stackdump
Catalyst                OutlookPST     bea                                 =
  test
DOWNLOADS               PointBase      boot.ini                            =
  tmp
Dell Optiplex 745       Program Files  installer_debug.txt                 =
  work
Documents and Settings  RECYCLER       jakarta-service.log
Fun                     Restore.Point  jmx-console-cartridge-uninstall.html
0.046u 0.015s 0:00.03 166.6%    0+0k 0+0io 1855pf+0w
ls C:
ls: cannot access C:: No such file or directory
0.030u 0.015s 0:00.01 400.0%    0+0k 0+0io 2029pf+0w
ls /cygdrive/c/
!Profile                IO.SYS         System Volume Information           =
  my.tcshrc
8824f0f55434edce38      MSDOS.SYS      UPLOADS                             =
  ntldr
AUTOEXEC.BAT            MSOCache       VPC                                 =
  pagefile.sys
Admin Consoles          NTDETECT.COM   WINDOWS                             =
  super.txt
CONFIG.SYS              OutlookOST     adams.log                           =
  tcsh.exe.stackdump
Catalyst                OutlookPST     bea                                 =
  test
DOWNLOADS               PointBase      boot.ini                            =
  tmp
Dell Optiplex 745       Program Files  installer_debug.txt                 =
  work
Documents and Settings  RECYCLER       jakarta-service.log
Fun                     Restore.Point  jmx-console-cartridge-uninstall.html
0.030u 0.046s 1:06.42 0.1%      0+0k 0+0io 2025pf+0w
ls /cygdrive/c
!Profile                IO.SYS         System Volume Information           =
  my.tcshrc
8824f0f55434edce38      MSDOS.SYS      UPLOADS                             =
  ntldr
AUTOEXEC.BAT            MSOCache       VPC                                 =
  pagefile.sys
Admin Consoles          NTDETECT.COM   WINDOWS                             =
  super.txt
CONFIG.SYS              OutlookOST     adams.log                           =
  tcsh.exe.stackdump
Catalyst                OutlookPST     bea                                 =
  test
DOWNLOADS               PointBase      boot.ini                            =
  tmp
Dell Optiplex 745       Program Files  installer_debug.txt                 =
  work
Documents and Settings  RECYCLER       jakarta-service.log
Fun                     Restore.Point  jmx-console-cartridge-uninstall.html
0.030u 0.015s 1:08.25 0.0%      0+0k 0+0io 2025pf+0w
ls C:
ls: cannot access C:: No such file or directory
0.030u 0.030s 0:00.01 600.0%    0+0k 0+0io 2029pf+0w
ls C:/
!Profile                IO.SYS         System Volume Information           =
  my.tcshrc
8824f0f55434edce38      MSDOS.SYS      UPLOADS                             =
  ntldr
AUTOEXEC.BAT            MSOCache       VPC                                 =
  pagefile.sys
Admin Consoles          NTDETECT.COM   WINDOWS                             =
  super.txt
CONFIG.SYS              OutlookOST     adams.log                           =
  tcsh.exe.stackdump
Catalyst                OutlookPST     bea                                 =
  test
DOWNLOADS               PointBase      boot.ini                            =
  tmp
Dell Optiplex 745       Program Files  installer_debug.txt                 =
  work
Documents and Settings  RECYCLER       jakarta-service.log
Fun                     Restore.Point  jmx-console-cartridge-uninstall.html
0.030u 0.000s 0:00.01 300.0%    0+0k 0+0io 1852pf+0w
ls /cygdrive/c
!Profile                IO.SYS         System Volume Information           =
  my.tcshrc
8824f0f55434edce38      MSDOS.SYS      UPLOADS                             =
  ntldr
AUTOEXEC.BAT            MSOCache       VPC                                 =
  pagefile.sys
Admin Consoles          NTDETECT.COM   WINDOWS                             =
  super.txt
CONFIG.SYS              OutlookOST     adams.log                           =
  tcsh.exe.stackdump
Catalyst                OutlookPST     bea                                 =
  test
DOWNLOADS               PointBase      boot.ini                            =
  tmp
Dell Optiplex 745       Program Files  installer_debug.txt                 =
  work
Documents and Settings  RECYCLER       jakarta-service.log
Fun                     Restore.Point  jmx-console-cartridge-uninstall.html
0.030u 0.015s 1:08.17 0.0%      0+0k 0+0io 2025pf+0w
ls /cygdrive/c/
!Profile                IO.SYS         System Volume Information           =
  my.tcshrc
8824f0f55434edce38      MSDOS.SYS      UPLOADS                             =
  ntldr
AUTOEXEC.BAT            MSOCache       VPC                                 =
  pagefile.sys
Admin Consoles          NTDETECT.COM   WINDOWS                             =
  super.txt
CONFIG.SYS              OutlookOST     adams.log                           =
  tcsh.exe.stackdump
Catalyst                OutlookPST     bea                                 =
  test
DOWNLOADS               PointBase      boot.ini                            =
  tmp
Dell Optiplex 745       Program Files  installer_debug.txt                 =
  work
Documents and Settings  RECYCLER       jakarta-service.log
Fun                     Restore.Point  jmx-console-cartridge-uninstall.html
0.030u 0.030s 1:08.25 0.0%      0+0k 0+0io 2025pf+0w
unset echo
16:20:35adam%




Anyone have any idea what the problem might be, or how to diagnose or fix i=
t?



cygcheck -s -v -r produces quite a bit of output. Please let me know if thi=
s information would be helpful (and if I should attach it in a separate fil=
e, or just paste it into the message body). Here, though, is the info on cy=
gdll (which was listed 4 times in the cygcheck -s -v -r output, btw):


2419k 2009/12/07 C:\work\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D=
4.0
                  "cygwin1.dll" v0.0 ts=3D2009/12/7 5:48
    Cygwin DLL version info:
        DLL version: 1.7.1
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 218
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix:
        Build date: Mon Dec 7 11:48:55 CET 2009
        Shared id: cygwin1S5



--
Adam M.


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

- Raw text -


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