delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/23/18:33:37

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:in-reply-to:subject:date:message-id
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=Dae3YODvyF/O4X6v+BEo/KVezuZjCAWBMmHlFPgSi5SHFAtLenAjI
ZeOPbfNH28aCqUXFttkNdjk1Z+8gJHcw/nQlJYW8yHmC5I91nSK54dQH60C7XmrB
ZvLZRoiEoIHhIdIRbmUn7pa2raooTyJvqCd2Tc7MR6liQ4vR9ambFs=
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:in-reply-to:subject:date:message-id
:mime-version:content-type:content-transfer-encoding; s=default;
bh=UX6Ui5AxLw3yS9LONRcjWLii2bM=; b=mEoS64JcrmeMakPzwYkqMSwikCV2
yV4d8XtXTuIEgMAXDOX6ZY7Q8cdFXGhakYl1gUMDy05pIae4RH7aDGvxrPMU9qJr
2FFfV29hHfN6wBIf4HSXnmrq0vLSi3dsr4b+crL71f5AZiEeRnt7JsRXUYgAtxIX
EQIcLPvHQeNJMHs=
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.6 required=5.0 tests=AWL,BAYES_50,KAM_COUK,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2
X-HELO: smtp.demon.co.uk
From: "Roger Orr" <rogero AT howzatt DOT demon DOT co DOT uk>
To: <cygwin AT cygwin DOT com>
In-Reply-To: <20150223211554.GA437@calimero.vinschen.de>
Subject: RE: slow startup after upgrade
Date: Mon, 23 Feb 2015 23:33:08 -0000
Message-ID: <BDAFF347644F44EEB9CD224AA3690342@Tamar>
MIME-Version: 1.0
X-MDF-HostID: 4
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t1NNXYW4011636

Hi Corinna,
sounds good. I'll give this a go, all being well, tomorrow.

In other news it appears that the ADInsightDll uses some shared data to
communicate, so in order to get ADInsight to work with injection one has to
ensure that the DLL injected is the same actual *file* as the one loaded by
the ADInsight program (in the (windows) %TEMP% directory) - a copy of the
DLL doesn't seem to be effective.

Regards,
Roger.

-----Original Message-----
From: Corinna Vinschen [mailto:corinna-cygwin AT cygwin DOT com] 
Sent: 23 February 2015 21:16
To: cygwin AT cygwin DOT com
Cc: Roger Orr
Subject: Re: slow startup after upgrade

Hi Roger,

On Feb 16 20:02, Roger Orr wrote:
> Corinna Vinschen wrote:
> > So I'd think the best way forward is to update to the
> > 1.7.35-0.1 test release and report further from there.     
> 
> Thanks, this does help a little. However I will still be using the 'files'
> setting.
> 
> Here are some results in case they're of interest. (Windows 7/64 with
> cygwin/64.)
> 
> 1) Running cygwin "echo.exe" from a cmd.exe command shell
> 
> a) With passwd: files and group: files in /etc/nsswitch.conf
>   0.03 - 0.4 s
> 
> b) With 1.7.34 and default /etc/nsswitch.conf
> 
>   around 120s
> 
> C) With 1.7.35 and default /etc/nsswitch.conf
> 
>   4.4 - 4.6s

I rewrote the function responsible for the slow startup, the one
fetching all the group information for the groups in your user token.

As I just wrote in my mail to Dennis Hagarty, the performance improvement
should be noticable, even with /etc/nsswitch.conf only using the "db"
setting for groups.  The group info for a user token with 150 groups was
fetched in ~50 ms rather than the ~300ms of the former code.

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


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