This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dtable changes causing _very_ slow startup and process-startup headache. [was Re: auto-import ld]


On Sun, Jun 10, 2001 at 10:52:49PM +1000, Robert Collins wrote:
> ----- Original Message -----
> From: "Corinna Vinschen" <vinschen@redhat.com>
> 
> 
> > On Sat, Jun 09, 2001 at 12:35:51PM +1000, Robert Collins wrote:
> > >
> > > ----- Original Message -----
> > > From: "Corinna Vinschen" <vinschen@redhat.com>
> > > >
> > > Sure. The long delay occurs on security.cc:230, the call to
> > >  NetServerEnum(NULL, 101, (LPBYTE *) &buf, MAX_PREFERRED_LENGTH,
> > > &cnt, &tot, SV_TYPE_DOMAIN_CTRL, primary, NULL).
> > >
> >
> > Back to your question: The Lsa code is now only called if the
> > logon server isn't retrieved already from the environment or by
> > a NetWkstaUserGetInfo() call.
> >
> > I hope that eliminates the 30sec delay.
> 
> It's down to  ~6 seconds, no other changes to my configuration made.
> This is fine for me, but could be a performance killer for folk using
> cygwin tools from cmd/command/win32 batch files.

Switch on the browser and server services or switch off ntsec. I need
at least _some_ services which keep me informed about the users
identity. However, it would again be of interest which part of
the startup waists the time. If your settings are correct (/etc/passwd
and the env vars USERNAME, USERDOMAIN and LOGONSERVER are most important)
that shouldn't happen (I thought). There's still a call to
NetWkstaUserGetInfo and calls to LookupAccountName under some
circumstances but not, if everything is setup correctly, theoretically.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]