Cygwin command line takes a long time to start

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Fri Jul 23 02:16:00 GMT 2010


On 7/22/2010 9:53 PM, David Antliff wrote:
> On Fri, Jul 23, 2010 at 07:49, Larry Hall (Cygwin) wrote:
>> OK then the easiest thing to do is add "set -x" to your ~/.bash_profile
>> and watch where the delay happens as the statements scroll by.
>
> Ah, that's useful - I also have a 10-second-or-so delay when mintty
> starts. By using a bunch of 'echo' commands and that set -x (which of
> course extends the time, but at least makes it clear if anything is
> 'hanging') it's clear to me that the majority of the delay (about 6
> seconds) happens before .bash_profile executes.
>
> I am loading bash_completion and it does take about 5 seconds, but
> that's the last thing to run before the prompt appears, and the delay
> is happening before that.
>
> How would one go about debugging the bash or mintty startup before
> .bash_profile is read?

This suggests to me that there are "things" in your Windows environment
that are slowing things down (network directories in your PATH,
<http://cygwin.com/acronyms/#BLODA>, etc.)  I'd look to things like
that before jumping into bash more.  If that's really not it, you
can try running bash under strace and look for calls that are taking
very significant time.  That may lead you to something that's a problem
though I expect it will be external again.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



More information about the Cygwin mailing list