Mail Archives: cygwin/2005/02/20/23:48:17
I've been using Cygwin on a particular laptop for months, with
great success. Then, suddenly, one day, it took thirty seconds
for me to get a login prompt. I soon discovered that Cygwin was
suddenly taking at least a second to run any command:
local$ time /bin/echo
real 0m1.333s
user 0m0.030s
sys 0m0.030s
local$ time date
Sun Feb 20 23:28:37 EST 2005
real 0m1.976s
user 0m0.020s
sys 0m0.050s
The problem occurred overnight. I didn't change anything
relevant (though I can understand your skepticism). The problem
comes and goes; it happens most of the time.
This appears to be similar to a report discussed on this list
beginning 2002 July 25. I don't see a resolution in that thread.
The thread suggests running strace. When I do, one or two
obvious things jump out, depending on how I run strace and how I
search the results; see below.
I don't have network shares in my PATH. I see this problem even
immediately after running setup.exe to get the latest versions
of the Cygwin software. Below (after the strace output), you'll
find a bunch of information on what I'm running. (I've changed
my user ID to "nobody" to avoid it falling into the hands of
spammers.)
Any thoughts?
local$ strace /bin/echo | awk '$1 > 500' # only show "slow" calls
Program name: D:\cygwin\bin\echo.exe (2868)
App version: 1005.12, api: 0.116
DLL version: 1005.12, api: 0.116
DLL build: 2004-11-10 08:34
OS version: Windows NT-5.0
Heap size: 402653184
Date/Time: 2005-02-20 23:31:44
2256 2995 [main] echo 2868 environ_init: 0x10010250: ALLUSERSPROFILE=D:\Documents and Settings\All Users
569 4748 [main] echo 2868 environ_init: 0x10010390: COUNTRY=US
1343 14651 [main] echo 2868 environ_init: 0x10010868: PRINTER=\\CEPS\ppy02-2-8k1
1417 23755 [main] echo 2868 pwdgrp::load: /etc/passwd curr_lines 6
656853 680608 [main] echo 2868 pwdgrp::load: /etc/passwd load succeeded
1203 683549 [main] echo 2868 pwdgrp::load: /etc/group curr_lines 11
1064 685447 [sig] echo 2868 wait_sig: myself->dwProcessId 2868
1310 685788 [main] echo 2868 __cygwin_lock_unlock: threadcount 1. not unlocking
654157 1343919 [unknown (0xC68)] echo 2868 _cygtls::remove: wait 0xFFFFFFFF
2117 1354881 [main] echo 2868 _pinfo::exit: Calling ExitProcess 0
local$ strace /bin/echo >/tmp/strace.out # run awk separately
local$ awk '$1 > 500' </tmp/strace.out
Program name: D:\cygwin\bin\echo.exe (2924)
App version: 1005.12, api: 0.116
DLL version: 1005.12, api: 0.116
DLL build: 2004-11-10 08:34
OS version: Windows NT-5.0
Heap size: 402653184
Date/Time: 2005-02-20 23:32:41
2265 3425 [main] echo 2924 environ_init: 0x10010250: ALLUSERSPROFILE=D:\Documents and Settings\All Users
1354 24305 [main] echo 2924 pwdgrp::load: /etc/passwd curr_lines 6
1277 27249 [main] echo 2924 pwdgrp::load: /etc/group curr_lines 11
1428 31471 [main] echo 2924 handle_to_fn: current match '\Device\HarddiskVolume2'
644752 680354 [unknown (0xC7C)] echo 2924 _cygtls::remove: wait 0xFFFFFFFF
1883 691681 [main] echo 2924 _pinfo::exit: Calling ExitProcess 0
local$ cygcheck -s | less
Cygwin Configuration Diagnostics
Current System Time: Sun Feb 20 23:36:16 2005
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
Path: D:\Documents and Settings\nobody\bin
D:\cygwin\bin
D:\cygwin\usr\sbin
c:\WINNT
c:\WINNT\system32
Output from D:\cygwin\bin\id.exe (nontsec)
UID: 1002(nobody) GID: 513(None)
513(None)
Output from D:\cygwin\bin\id.exe (ntsec)
UID: 1002(nobody) GID: 513(None)
0(root) 544(Administrators) 545(Users) 10545(mkgroup_l_d)
HOME = `D:\Documents and Settings\nobody'
MAKE_MODE = `unix'
PWD = `/home/nobody'
USER = `nobody'
c: hd NTFS 12292Mb 35% CP CS UN PA FC SYSTEM
d: hd NTFS 25861Mb 8% CP CS UN PA FC DATA
z: cd N/A N/A
Warning: Mount entries should not have a trailing (back)slash
D:\cygwin\ / user textmode
D:\Documents and Settings /home user textmode
D:\cygwin\/bin /usr/bin user textmode
D:\cygwin\/lib /usr/lib user textmode
. /cygdrive user textmode,cygdrive
55k 2004/09/14 D:\cygwin\bin\cygbz2-1.dll
18k 2004/07/06 D:\cygwin\bin\cygcharset-1.dll
7k 2003/10/19 D:\cygwin\bin\cygcrypt-0.dll
846k 2004/12/11 D:\cygwin\bin\cygcrypto-0.9.7.dll
40k 2004/10/10 D:\cygwin\bin\cygform-8.dll
45k 2001/04/25 D:\cygwin\bin\cygform5.dll
35k 2002/01/09 D:\cygwin\bin\cygform6.dll
48k 2003/08/09 D:\cygwin\bin\cygform7.dll
28k 2003/07/20 D:\cygwin\bin\cyggdbm-3.dll
30k 2003/08/11 D:\cygwin\bin\cyggdbm-4.dll
19k 2003/03/22 D:\cygwin\bin\cyggdbm.dll
15k 2003/07/20 D:\cygwin\bin\cyggdbm_compat-3.dll
15k 2003/08/11 D:\cygwin\bin\cyggdbm_compat-4.dll
107k 2004/07/06 D:\cygwin\bin\cyggettextlib-0-14-1.dll
17k 2004/07/06 D:\cygwin\bin\cyggettextpo-0.dll
190k 2004/07/06 D:\cygwin\bin\cyggettextsrc-0-14-1.dll
17k 2001/06/28 D:\cygwin\bin\cyghistory4.dll
29k 2003/08/10 D:\cygwin\bin\cyghistory5.dll
25k 2004/10/12 D:\cygwin\bin\cyghistory6.dll
991k 2004/07/06 D:\cygwin\bin\cygiconv-2.dll
22k 2001/12/13 D:\cygwin\bin\cygintl-1.dll
37k 2003/08/10 D:\cygwin\bin\cygintl-2.dll
54k 2004/07/06 D:\cygwin\bin\cygintl-3.dll
21k 2001/06/20 D:\cygwin\bin\cygintl.dll
22k 2004/10/10 D:\cygwin\bin\cygmenu-8.dll
26k 2001/04/25 D:\cygwin\bin\cygmenu5.dll
20k 2002/01/09 D:\cygwin\bin\cygmenu6.dll
29k 2003/08/09 D:\cygwin\bin\cygmenu7.dll
21k 2004/10/22 D:\cygwin\bin\cygminires.dll
74k 2004/10/10 D:\cygwin\bin\cygncurses++-8.dll
156k 2001/04/25 D:\cygwin\bin\cygncurses++5.dll
175k 2002/01/09 D:\cygwin\bin\cygncurses++6.dll
216k 2004/10/10 D:\cygwin\bin\cygncurses-8.dll
226k 2001/04/25 D:\cygwin\bin\cygncurses5.dll
202k 2002/01/09 D:\cygwin\bin\cygncurses6.dll
224k 2003/08/09 D:\cygwin\bin\cygncurses7.dll
13k 2004/10/10 D:\cygwin\bin\cygpanel-8.dll
15k 2001/04/25 D:\cygwin\bin\cygpanel5.dll
12k 2002/01/09 D:\cygwin\bin\cygpanel6.dll
19k 2003/08/09 D:\cygwin\bin\cygpanel7.dll
62k 2003/12/11 D:\cygwin\bin\cygpcre-0.dll
63k 2003/04/11 D:\cygwin\bin\cygpcre.dll
9k 2003/12/11 D:\cygwin\bin\cygpcreposix-0.dll
61k 2003/04/11 D:\cygwin\bin\cygpcreposix.dll
22k 2002/06/09 D:\cygwin\bin\cygpopt-0.dll
108k 2001/06/28 D:\cygwin\bin\cygreadline4.dll
148k 2003/08/10 D:\cygwin\bin\cygreadline5.dll
144k 2004/10/12 D:\cygwin\bin\cygreadline6.dll
171k 2004/12/11 D:\cygwin\bin\cygssl-0.9.7.dll
62k 2004/10/10 D:\cygwin\bin\cygz.dll
1114k 2004/11/10 D:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.5.12
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 116
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Wed Nov 10 08:34:47 EST 2004
Shared id: cygwin1S4
local$ mount
D:\Documents and Settings on /home type user (textmode)
D:\cygwin\bin on /usr/bin type user (textmode)
D:\cygwin\lib on /usr/lib type user (textmode)
D:\cygwin on / type user (textmode)
c: on /cygdrive/c type user (textmode,noumount)
d: on /cygdrive/d type user (textmode,noumount)
local$ pwd
/home/nobody
--
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 -