From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44721 invoked by alias); 20 Nov 2017 17:05:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 44532 invoked by uid 89); 20 Nov 2017 17:05:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=hangs, validates, CIFS, cifs X-HELO: forward105j.mail.yandex.net Received: from forward105j.mail.yandex.net (HELO forward105j.mail.yandex.net) (5.45.198.248) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Nov 2017 17:05:05 +0000 Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward105j.mail.yandex.net (Yandex) with ESMTP id EE1E81828A0; Mon, 20 Nov 2017 20:05:02 +0300 (MSK) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:8]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id DKzg9NO7BK-52L4neeP; Mon, 20 Nov 2017 20:05:02 +0300 Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xi6lfiGmoM-528W2eKe; Mon, 20 Nov 2017 20:05:02 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 20 Nov 2017 17:02:39 -0000 Date: Mon, 20 Nov 2017 17:05:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1238325825.20171120200239@yandex.ru> To: Richard H Lee , cygwin@cygwin.com Subject: Re: Git status delay In-Reply-To: <092c4159-1f86-a64a-6ae1-c9909ef4ef90@gmail.com> References: <092c4159-1f86-a64a-6ae1-c9909ef4ef90@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-11/txt/msg00232.txt.bz2 Greetings, Richard H Lee! > I have an issue with git where it hangs for 10 to 20 seconds on several > commands, including "git status". For me this is reproducible on a fresh > install of Cygwin x64 in Windows 7. > I get the feeling I am doing something wrong on my end as "git status" > is a very commonly used command, yet I see no mentions of this on the > Cygwin mailing list. > Using gdb I can see git hang in the function validate_headref on an > lstat call. validate_headref pretty much does what it says and validates > the HEAD reference file. validate_headref is called multiple times for > different candidate paths for the HEAD reference file, e.g. ".git/HEAD" > etc. For some reason the path "//HEAD" is checked and this is causing a > delay. Paths starting with "//" are treated in Cygwin as CIFS paths and > the delay comes from the timeout when Windows tries to resolve the > hostname "HEAD" to a server. > Subsequent executions of "git status" return immediately as I guess the > resolution of "HEAD" as a hostname is cached. > I don't recall having this problem previously. > Does anyone else experience this issue? Is this (or a remote system) an AD member? If names resolution is a culprit, try setting up cygserver, it may speed up name resolution. -- With best regards, Andrey Repin Monday, November 20, 2017 20:01:40 Sorry for my terrible english... -- 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