X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Bkog7mQfhj148TPm E7g609a62BOssRZUue2J8LZ4XIP+Kkl46dqK7FUuVpqcdg68IP/MPf7ISgvhSH6D tGckZlcUijqkv1y5Rk1eQ0kM88jdVpr772qOcKWIsOwl1rtAEW56n2kH9oNN6RGv 1jzU0PE/cVj5z0puPgkdVKzcilI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=m/JFX2JyQFG0wiB9c7H9UL okHpA=; b=GQ+X5BJCEP0SLeOWbfkd/r9M18su668i2jU1ZsGM1GUtr2x0Mt1gGg 1bU3/cRlhDn7GS+J6z1cCrefF7w93mXhRFqqsKYQOEbCID07dnqEm9u3FNVrmp2Y 2bRL32Kurv4gSyj6c3TciKSZlUiVlYVAEu9YiiGmxMfnk7PZFF1fM= 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 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 Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Mon, 20 Nov 2017 20:02:39 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1238325825.20171120200239@yandex.ru> To: Richard H Lee , cygwin AT cygwin DOT com Subject: Re: Git status delay In-Reply-To: <092c4159-1f86-a64a-6ae1-c9909ef4ef90@gmail.com> References: <092c4159-1f86-a64a-6ae1-c9909ef4ef90 AT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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