X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Gene Smith <gds@chartertn.net>
Subject:  Re: Slow/sluggish response ("system" task at 50%)
Date:  Wed, 24 Jun 2009 10:21:39 -0400
Lines: 51
Message-ID: <h1tcpr$g4o$1@ger.gmane.org>
References:  <h1ofen$qvu$1@ger.gmane.org> <4A3FCCBD.70101@cygwin.com> <h1ok6h$b50$1@ger.gmane.org> <h1p35n$rtc$1@ger.gmane.org> <4A401CF4.6050202@cygwin.com> <h1plfn$16o$1@ger.gmane.org> <4A405B7D.7020700@cygwin.com> <h1r1dv$4g4$1@ger.gmane.org> <4A411665.1040300@cygwin.com> <h1rnnl$a3j$1@ger.gmane.org> <4A4167A4.4090900@gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <4A4167A4.4090900@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Korn wrote:
> Gene Smith wrote:
>> Larry Hall (Cygwin) wrote:
>>> Gene Smith wrote:
>>>
>>> <snip>
>>>
>>>> Since I don't have a "HOME" env var in windows, cygwin is getting the
>>>> cygwin HOME from /etc/passwd. So I tried it both ways. With 1.5 I set
>>>> home to be the empty directory /home/smited (under c:/cygwin). It
>>>> didn't make it any faster. With beta-1.7 I set home to
>>>> /cygdrive/c/Documents and Settings/smited (where all the cruft is)
>>>> and it didn't make it any slower. So where cygwin points $HOME at
>>>> terminal startup does not seem to have an effect for me. Current
>>>> version 1.5 is slow while beta-1.7 is fast, for still unknown reasons.
>>> I guess you're stuck looking at strace output to see if that helps
>>> pinpoint the problem...
>>>
>> I ran the make under "strace -o outfile make" but I couldn't really tell
>> what I was looking at in the outfile.
> 
>   The main thing to look at is the absolute and relative timestamps in the
> first two columns, and see if any of the delays look inordinately long, that
> would indicate a specific syscall ran into a big delay.
> 
>     cheers,
>       DaveK

Well, it was OK at first after a reinstall with the "default" setup, 
enough to run and build a project with an cross compiled embedded 
toolchain. But when I install gcc, make, svn etc (enough to compile the 
openocd project) then it is slow again. I ran strace on the make process 
again and see lines like this that look bad:

3688545 13178956 [proc_waiter] make 868 
pinfo::maybe_set_exit_code_from_windows: pid 9176, exit value - old 
0x8000000, windows 0xDEADBEEF, cygwin 0x8000000n/

The "deadbeef" sounds like a marker of some sort?

This delay occur repetitively and many times during the build.

I think the *exact* same problem is pointed to by this thread:
http://sources.redhat.com/ml/cygwin/2007-02/msg00571.html
Unfortunately, no solution is described. :(

If I set my windows path into /usr/bin of cygwin, I can run the same 
build in a dos cmd window and it runs fast. For me, it is only slow in 
the cygwin terminal. However, for my co-worker, it seems to be slow for 
him too in the dos box (I have no idea why).



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

