delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/11/10:06:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <9BE596E8BDDC3443BF23B9678D03CC2930B320B4@ECDS-CLT-MX1.ecdeliverysystems.com>
References: <22455814 DOT post AT talk DOT nabble DOT com> <5a05e0e60903110745n3f5c7defs475bdbc3f190edac AT mail DOT gmail DOT com> <9BE596E8BDDC3443BF23B9678D03CC2930B320B4 AT ECDS-CLT-MX1 DOT ecdeliverysystems DOT com>
Date: Wed, 11 Mar 2009 11:05:50 -0400
Message-ID: <5a05e0e60903110805j347f9239p77e3c428d39b1f89@mail.gmail.com>
Subject: Re: Connecting to cygwin ssh is slow
From: Dave Steenburgh <dave DOT steenburgh AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 Wed, Mar 11, 2009 at 10:53 AM, Allan Schrum
<aschrum AT ecdeliverysystems DOT com> wrote:
>> -----Original Message-----
>> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On
>> Behalf Of Dave Steenburgh
>> Sent: Wednesday, March 11, 2009 10:45 AM
>> To: cygwin AT cygwin DOT com
>> Subject: Re: Connecting to cygwin ssh is slow
>>
>> On Wed, Mar 11, 2009 at 10:05 AM, UdiK <udik AT commtouch DOT com> wrote:
>> > When I connect to our cygwin SSH machine (Windows 2003 server), it
>> usually
>> > takes more than 5 seconds to get a prompt and be able to start
>> working. This
>> > delay slows down many of our scripts which rely on SSH to connect to
>> > Windows.
>> >
>> > What causes this delay? What is SSH doing that is taking it so long?
>> I don't
>> > have any anti-virus running on that machine. If anybody has any
>> explanations
>> > I really appreciate the help.
>>
>> Connect, then immediately logoff and connect again. =A0Does the second
>> connect have the same pause? =A0If not, then I suspect the delay is your
>> hard drive. =A0If you connect infrequently, then when you do connect,
>> it's likely that the necessary processes (or parts of them) will have
>> to be retrieved from the page file, and any configuration files will
>> probably have to be loaded from the hard drive. =A0If you connect
>> frequently, I think there's a way to make the ssh connection
>> persistent---you might avoid the delay that way, or lessen it. =A0I
>> don't know how to set that up, though.
>>
>> I also experience a delay when I make the first connection, but
>> subsequent connections are pretty snappy. =A0Most of the time I don't
>> need subsequent connections, but I do have a script that makes two
>> connections. =A0If this isn't the answer, then I'd like to know what is,
>> so I can improve that first connection time.
>
> Don't forget DNS lookup time.

Good point.  Taking that out of the equation, there's still a
noticeable delay when I connect across my home LAN using the IP
address.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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