This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mysterious delays in command execution


On a freshly installed and configured Windows XP machine with a fresh
install of a recent Cygwin, we noticed that every non-builtin command
took about a second to start.

The PATH started with /usr/bin:/bin as the first dirs, and then also
included much later a symlink to a samba shared script area
(/usr/local/script --> //samba/script).

On this particular machine, just having /usr/local/script in the PATH
slowed down *every* command.  Even commands like "ls", much earlier 
in the path suffered the problem.

Any idea why?  I ran an strace on rxvt (which is how I diagnosed the
problem - saw what it was doing the output streaming past stopped).

Any idea why this machine (same network, same domain) has this problem,
and others don't?

Here's a dramatically trimmed down bit of the strace output:


**********************************************
Program name: C:\cygwin\bin\rxvt.exe (3388)
App version:  1003.9, api: 0.51
DLL version:  1003.12, api: 0.54
DLL build:    2002-07-06 02:16
OS version:   Windows NT-5.1
Date/Time:    2002-09-25 09:43:01
**********************************************
  556    1025 [main] rxvt 3388 environ_init: 0xA010420: !C:=C:\cygwin\bin
   91    1116 [main] rxvt 3388 environ_init: 0xA010438: ALLUSERSPROFILE=C:\Documents and Settings\All Users
  125    1241 [main] rxvt 3388 environ_init: 0xA010470: APPDATA=C:\Documents and Settings\desmolej\Application Data
  114    1355 [main] rxvt 3388 environ_init: 0xA0104B0: CLIENTNAME=Console
   71    1426 [main] rxvt 3388 environ_init: 0xA0104C8: COMMONPROGRAMFILES=C:\Program Files\Common Files
  154    1580 [main] rxvt 3388 environ_init: 0xA010500: COMPUTERNAME=ZOLTAN
   59    1639 [main] rxvt 3388 environ_init: 0xA010518: COMSPEC=C:\WINDOWS\system32\cmd.exe
   56    1695 [main] rxvt 3388 environ_init: 0xA010540: CVSROOT=cvs.research.canon.com.au:/u/archive
   58    1753 [main] rxvt 3388 environ_init: 0xA010578: CVS_SERVER=/opt/bin/cvs
   59    1812 [main] rxvt 3388 parse_options: binmode 131072
   75    1887 [main] rxvt 3388 parse_options: returning
[...]
   32   11680 [main] rxvt 3388 mount_info::conv_to_posix_path: conv_to_posix_path (x:\bin\script, keep-rel, no-add-slash)
   78   11758 [main] rxvt 3388 normalize_win32_path: x:\bin\script = normalize_win32_path (x:\bin\script)
   34   11792 [main] rxvt 3388 mount_info::conv_to_posix_path: /cygdrive/x/bin/script = conv_to_posix_path (x:\bin\script)
   32   11824 [main] rxvt 3388 mount_info::conv_to_posix_path: conv_to_posix_path (\\samba\script, keep-rel, no-add-slash)
   31   11855 [main] rxvt 3388 normalize_win32_path: \\samba\script = normalize_win32_path (\\samba\script)
   32   11887 [main] rxvt 3388 mount_info::conv_to_posix_path: //samba/script = conv_to_posix_path (\\samba\script)
   32   11919 [main] rxvt 3388 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\usr\X11R6\bin, keep-rel, no-add-slash)
   32   11951 [main] rxvt 3388 normalize_win32_path: C:\cygwin\usr\X11R6\bin = normalize_win32_path (C:\cygwin\usr\X11R6\bin)
   32   11983 [main] rxvt 3388 mount_info::conv_to_posix_path: /usr/X11R6/bin = conv_to_posix_path (C:\cygwin\usr\X11R6\bin)
   88   12071 [main] rxvt 3388 win_env::add_cache: posix /usr/bin:/usr/bin:/cygdrive/x/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/nsr/bin:/cygdrive/x/bin:/cygdrive/x/bin/script://samba/script:/usr/X11R6/bin
   34   12105 [main] rxvt 3388 win_env::add_cache: native PATH=C:\cygwin\bin;C:\cygwin\bin;x:\bin;c:\WINDOWS\system32;c:\WINDOWS;c:\WINDOWS\System32\Wbem;c:\Program Files\nsr\bin;x:\bin;x:\bin\script;\\samba\script;C:\cygwin\usr\X11R6\bin
   33   12138 [main] rxvt 3388 posify: env var converted to PATH=/usr/bin:/usr/bin:/cygdrive/x/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/nsr/bin:/cygdrive/x/bin:/cygdrive/x/bin/script://samba/script:/usr/X11R6/bin
   59   12197 [main] rxvt 3388 environ_init: 0xA010950: PATH=/usr/bin:/usr/bin:/cygdrive/x/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/nsr/bin:/cygdrive/x/bin:/cygdrive/x/bin/script://samba/script:/usr/X11R6/bin
  121   12318 [main] rxvt 3388 environ_init: 0xA010890: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
[...]



luke




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]