delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/10/10:09:13

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Sun, 10 Jun 2001 16:09:06 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: dtable changes causing _very_ slow startup and process-startup headache. [was Re: auto-import ld]
Message-ID: <20010610160906.E1144@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: Corinna Vinschen <vinschen AT redhat DOT com>,
cygwin-developers AT sourceware DOT cygnus DOT com
References: <000901c0ef4e$904cbe50$6e032bb7 AT BRAMSCHE> <018e01c0ef53$02e833f0$0200a8c0 AT lifelesswks> <20010607155145 DOT A21540 AT redhat DOT com> <009901c0efa2$23f65320$0200a8c0 AT lifelesswks> <15974599808 DOT 20010608103149 AT logos-m DOT ru> <01e201c0f04e$d42f5140$0200a8c0 AT lifelesswks> <20010608214444 DOT K18483 AT cygbert DOT vinschen DOT de> <02aa01c0f08c$e6f5a5c0$0200a8c0 AT lifelesswks> <20010609233611 DOT A1144 AT cygbert DOT vinschen DOT de> <00a401c0f1ac$41b53f00$0200a8c0 AT lifelesswks>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <00a401c0f1ac$41b53f00$0200a8c0@lifelesswks>; from robert.collins@itdomain.com.au on Sun, Jun 10, 2001 at 10:52:49PM +1000

On Sun, Jun 10, 2001 at 10:52:49PM +1000, Robert Collins wrote:
> ----- Original Message -----
> From: "Corinna Vinschen" <vinschen AT redhat DOT com>
> 
> 
> > On Sat, Jun 09, 2001 at 12:35:51PM +1000, Robert Collins wrote:
> > >
> > > ----- Original Message -----
> > > From: "Corinna Vinschen" <vinschen AT redhat DOT 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 AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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