Very slow Cygwin startup on Windows 7

Dennis Hagarty (dehagart) dehagart@cisco.com
Tue Feb 24 15:20:00 GMT 2015


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


More information about the Cygwin mailing list