X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4C48F896.1090902@cygwin.com> Date: Thu, 22 Jul 2010 22:04:06 -0400 From: "Larry Hall \(Cygwin\)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin command line takes a long time to start References: <20100722171413 DOT GA943 AT ns DOT sdsitehosting DOT net> <4C48803D DOT 906 AT cygwin DOT com> <20100722184328 DOT GA3431 AT ns DOT sdsitehosting DOT net> <4C48A0AE DOT 8060607 AT cygwin DOT com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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, , 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