This is the mail archive of the
mailing list for the Cygwin project.
RE: slow startup after upgrade
- From: "Roger Orr" <rogero at howzatt dot demon dot co dot uk>
- To: "'Roger Orr'" <rogero at howzatt dot demon dot co dot uk>, <cygwin at cygwin dot com>
- Date: Tue, 24 Feb 2015 19:55:41 -0000
- Subject: RE: slow startup after upgrade
- Authentication-results: sourceware.org; auth=none
It seems slightly faster than the previous patch and I've not noticed a
CYGWIN_NT-6.1-WOW LCLDN-DEV24 1.7.35s(0.286/5/3) 20150220 15:47:55 i686
~37ms to run echo.exe from Windows command prompt
~60ms to run .\id.exe -a from Windows command prompt
CYGWIN_NT-6.1-WOW LCLDN-DEV24 1.7.35s(0.286/5/3) 20150223 21:02:38 i686
~35ms to run echo.exe from Windows command prompt
~53ms to run .\id.exe -a from Windows command prompt
nsswitch.conf: passwd and group both set to 'db'
From: Roger Orr [mailto:email@example.com]
Sent: 23 February 2015 23:33
Subject: RE: slow startup after upgrade
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.
From: Corinna Vinschen [mailto:firstname.lastname@example.org]
Sent: 23 February 2015 21:16
Cc: Roger Orr
Subject: Re: slow startup after upgrade
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'
> Here are some results in case they're of interest. (Windows 7/64 with
> 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?
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple