delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/24/09:47:13

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:from:to:subject:date:message-id:references
:content-type:content-transfer-encoding:mime-version; q=dns; s=
default; b=gZo8YMg3sSYUKcouB+a1lu35+AxiLFgkWXqoW4T69GZW2n/ItIihv
ekdC/IWGlasHciEL9q0eV2nL2yITkXJ6ahh1cL09D5BumjdppUoyw94OJnhwiLnw
C8PosjxU2jDn0PTzsjNofZBBB0wtXUdRz8CoS5HkD27Q/zw+KGJ1ME=
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:from:to:subject:date:message-id:references
:content-type:content-transfer-encoding:mime-version; s=default;
bh=odkbA3dWkR32bx6xYjGjz2asLUM=; b=OHj5QEcYUNywYiC1+eMr73dY2QES
d7cjFCqNZ01JDt0+fZeA6UuIuW6hwZep/Gu99qI6xQRd2uYmrrzp29WCu0D+MaZ9
NYFlQIzjc9AMPeTswjlieXriX2kqnbK7Plv2zisJVFQAk/rLs629/ePgeXBIbDYA
NxlPGY/Ukbr8Gqk=
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.4 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: alln-iport-4.cisco.com
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AuBgB/juxU/49dJa1bgwZSWgSDBL1ugiqFcAIcgQlDAQEBAQEBfIQPAQEBBCMRUQQCAQgYAgIGIAICAjAVAgENAgQbiCcNuxuYdQEBAQEBAQEBAQEBAQEBAQEBARYEgSGJcoQ9FoMKL4EUBY9Wg2CHAIMVi0mDPiKCAhyBUG8BgUN/AQEB
From: "Dennis Hagarty (dehagart)" <dehagart AT cisco DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Very slow Cygwin startup on Windows 7
Date: Tue, 24 Feb 2015 14:46:47 +0000
Message-ID: <3FEEC3A37A0B0A48AA326075128C32EE4EE2B31C@xmb-rcd-x01.cisco.com>
References: <3FEEC3A37A0B0A48AA326075128C32EE4DC9F137 AT xmb-rcd-x01 DOT cisco DOT com> <869208266 DOT 20150210030528 AT yandex DOT ru> <3FEEC3A37A0B0A48AA326075128C32EE4EE263B8 AT xmb-rcd-x01 DOT cisco DOT com> <20150218111515 DOT GL8493 AT calimero DOT vinschen DOT de> <3FEEC3A37A0B0A48AA326075128C32EE4EE26DE4 AT xmb-rcd-x01 DOT cisco DOT com> <20150218125429 DOT GN8493 AT calimero DOT vinschen DOT de> <3FEEC3A37A0B0A48AA326075128C32EE4EE275A7 AT xmb-rcd-x01 DOT cisco DOT com> <20150219103235 DOT GD26084 AT calimero DOT vinschen DOT de> <3FEEC3A37A0B0A48AA326075128C32EE4EE27AEC AT xmb-rcd-x01 DOT cisco DOT com> <20150220162024 DOT GZ26084 AT calimero DOT vinschen DOT de> <20150223211530 DOT GA23639 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t1OEl8Jf024443

Hi,

With Roger's very patient help, I was able to get ADInsight capturing information.

I did a run with the original dll under 32 bit Cygwin running a 32 bit program (echo).

Output and all possible reports (in html) from the tool are here:
https://dl.dropboxusercontent.com/u/33069639/ADInsight.tar.gz 

This 32 bit version is the original slower version (takes a few mins to open a window):
CYGWIN_NT-6.1-WOW DEHAGART-WS02 1.7.34(0.285/5/3) 2015-02-04 12:12 i686 Cygwin 

So I downloaded the snapshot DLL for 32 bits and did it again:
CYGWIN_NT-6.1-WOW DEHAGART-WS02 1.7.35s(0.286/5/3) 20150223 21:02:38 i686 Cygwin

But this time I wasn't able to get any output on the ADInsight (scratches head)
But the task runs within a second rather than the many minutes from the original version.

Thanks and Regards
Dennis

-----Original Message-----
Hi Corinna,

Using x86_64/cygwin1-20150223.dll.xz??

~ uname -a
CYGWIN_NT-6.1 DEHAGART-WS02 1.7.35s(0.286/5/3) 20150223 21:02:38 x86_64 Cygwin

~ cat /etc/nsswitch.conf
passwd: db
group: db

First manual start of bash shell *seemed* to take slightly longer than before and slightly longer than files db setting.
But anyway, the timed results show this:

cmd /v:on /c "echo !TIME! & C:\cygwin64\bin\mintty.exe /bin/echo "test" & echo !TIME!"

C:\Users\dehagart>cmd /v:on /c "echo !TIME! & C:\cygwin64\bin\mintty.exe /bin/echo "test" & echo !TIME!"	
14:22:01.74	
14:22:02.56	00:00.82
	
C:\Users\dehagart>cmd /v:on /c "echo !TIME! & C:\cygwin64\bin\mintty.exe /bin/echo "test" & echo !TIME!"	
14:22:07.10	
14:22:07.27	00:00.17
	
C:\Users\dehagart>cmd /v:on /c "echo !TIME! & C:\cygwin64\bin\mintty.exe /bin/echo "test" & echo !TIME!"	
14:22:08.99	
14:22:09.16	00:00.17
	
C:\Users\dehagart>cmd /v:on /c "echo !TIME! & C:\cygwin64\bin\mintty.exe /bin/echo "test" & echo !TIME!"	
14:22:10.72	
14:22:10.89	00:00.17

I.e. significantly better.
Regards
Dennis

-----Original Message-----

Hi Dennis,

On Feb 20 17:20, Corinna Vinschen wrote:
> On Feb 19 19:04, Dennis Hagarty (dehagart) wrote:
> > >It would be pretty helpful to get an idea what's so slow in your case.
> > >Either you get ADInsight working, or...  is it ok if I send you a link
> > >to a debug-augmented DLL via PM?
> > 
> > Sure.
> 
> Thanks for helping debugging, Dennis.

I have another one for testing.  I rewrote the function fetching all the
group information for the groups in your user token, the one which is
mainly responsible for the 1.4 secs startup time.

In theory the performance improvement should be pretty noticable, even
with /etc/nsswitch.conf only using the "db" setting for groups.  In a
bigger environment with a user token of 150 groups, the time this
function took was reduced from ~300ms to ~50ms so I have high hopes.

Can you test this again with the Cygwin DLL from the latest developer
snaphshot at https://cygwin.com/snapshots/ please? 


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019