www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/03/23:52:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=hSWZSe484pTn733M
NQoQt3iRvqfQbgmkBOwIg69nwsSniELHo7ZsU2ZZWVjakK9x7IT3zT/slYiOOpvP
bJVHB8CZNgD37oideglSH61bSxKGWi+Ax1nGIBHGaVMmUX6DZ9ai1UhDIEa3Jzho
RW8DmWSZpcpf1wDdj5Dgeo6H3EE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ZFpYRnnQRPjh1LBiyb1obo
b1K2c=; b=exDJDPkhEK6MeDMvl4lXlyOy7pP2Pbts2c2KRB7OYK/YbG14sTVn80
H+Ltg7c6fBpK5osK3zk5JYVq4Jp5IhUiDkbdWsAoIVo0u4SXI9n7mu4Vwz0V283i
NzxUvUhIyNxNi/YqVolr5UBDXrRNNcbyj+IgHTzb2VAgrHT1aC9D0=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,KAM_ASCII_DIVIDERS,SPF_HELO_PASS,SPF_PASS,TVD_RCVD_IP autolearn=no version=3.3.2 spammy=You've, Youve, look-up, 9999
X-HELO: glup.org
Authentication-Results: glup.org; dmarc=none header.from=glup.org
Subject: Re: last snapshot is not better than previous version
To: cygwin AT cygwin DOT com
References: <90DB300A-9605-4E19-BEFC-AFBFB5240C0E AT Denis-Excoffier DOT org> <20160530082547 DOT GB12694 AT calimero DOT vinschen DOT de> <6FE1A983-9CCD-4010-99DE-FEAA0BA6749E AT Denis-Excoffier DOT org> <20160531091651 DOT GB24015 AT calimero DOT vinschen DOT de>
From: John Hood <cgull AT glup DOT org>
Message-ID: <5752506F.3040602@glup.org>
Date: Fri, 3 Jun 2016 23:52:15 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
MIME-Version: 1.0
In-Reply-To: <20160531091651.GB24015@calimero.vinschen.de>

On 5/31/2016 5:16 AM, Corinna Vinschen wrote:
> On May 30 19:00, Denis Excoffier wrote:
>>> On 2016-05-30 10:25, Corinna Vinschen wrote:
>>>
>>>
>>> The problem is, there's no change at all in the snapshot which would
>>> explain a slowdown of such basic functions:
>>>
>>> - Assorted select(2) improvements:
>>>
>>>   commits a23e6a35d896a075640db714b28ce74bb6b8d7ff
>>>           e5665d8c930485d5ac6d8913573e27b9e5043d92
>> Thank you for your answer. However, i do insist.
>> I use again the file created with "seq 10000 > 10k" and still
>> look-up the string "9999" inside it.
>>
>> I perform:
>> strace -o vi.out /usr/bin/vim 10k
>> and inside vi:
>> :0
>> /9999
>> :q
>>
>> Without snapshot, vi.out contains 15133 lines
>> With snapshot, vi.out contains 426553 lines. Huh?
> I tested with 2.5.1, with the latest snapshot and with the latest from
> git master, on 32 and 64 bit.  In all cases, the above results in about
> 1000 'select_stuff::cleanup: calling cleanup routines' lines in vi.out,
> give or take, depending on my typing speed.
>
>> Without snapshot, the 6 lines:
>> ------------------------------
>> select: sel.always_ready 0
>> select: sel.wait returns 0
>> select_stuff::cleanup: calling cleanup routines
>> select_stuff::destroy: deleting select records
>> select: recalculating ms
>> select: ms now 0
>> ------------------------------
>> occur about 450 times
>>
>> With snapshot, the 6 lines:
>> ------------------------------
>> select: sel.always_ready 0
>> select: sel.wait returns 0
>> select_stuff::cleanup: calling cleanup routines
>> select_stuff::destroy: deleting select records
>> select: recalculating us
>> select: us now 0
>> ------------------------------
>> occur more than 69000 times
>>
>> Something is probably wrong near here. Please tell me what i should experiment next.
>>
>> Al least i have found a wrong line in select.cc: line 4, the copyright year is missing. ;-)
> Yeah, no worries.
>
> Again, I can *not* reproduce this.  Maybe we should start at the basics,
> a cygcheck output.  What's your OS?  I'm testing on a 64 bit W10.
> What's your terminal?  I tried from Mintty as well as from a console.
Corinna asked me to look at this since I coded the select()-related 
changes she mentioned.  I can't reproduce either of your cases.

Some things I'll mention:

1) Your Cygwin install seems to be in your Windows home directory. 
There's nothing wrong with that but it is unusual.  Is there some reason 
the usual location doesn't work?

2) The cygcheck output shows you being a member of over 50 groups, is 
this system in a domain?  Are any network shares involved?  (I tried 
mounting a local network share, then using ls.  It was 10 times slower-- 
but that was still only 4 seconds to list 11000 files.)

3) You have many thousands of packages installed.  It's not the complete 
Cygwin set but it is a substantial fraction.  It might be worth trying 
an install with a smaller number of packages.  Are you running these 
tests on the same Cygwin install but with different DLLs installed, or 
on different Cygwin installs?

4) You've given an interpretation of the strace output that you see, but 
it might be useful to see the actual strace output for your two test 
cases.  Perhaps the noisy logging for select() is an effect of the 
problem, rather than its cause.  Could you run them again (also with the 
-d flag, which will help us see where the time goes), and send them in 
email?

Regards,

   --jh

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