Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: 21 Feb 2005 04:47:57 -0000 To: cygwin AT cygwin DOT com Subject: executing commands is VERY slow (redux?) Encoding: 8bit From: "Paul S R Chisholm" Message-ID: <28634-24938@sneakemail.com> 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'