delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/17/08:09:22

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:message-id:date:from:mime-version:to:subject
:in-reply-to:content-type:content-transfer-encoding; q=dns; s=
default; b=YEpa7cRxdR9KL3T+8Lgq+va4s9E/qY9EK6FSHcVdTEcuwJrZq5c53
VZTi8Ff6967GmBuxnAGa5yaIqOlkIRoUv4+5S9t6Q12221r13aiWDckyTtVOCqDi
BIRzoI0ToA6dO7CQtv4RIyGwvjuh/E32EruqA+S54qULguBddh1PLg=
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:message-id:date:from:mime-version:to:subject
:in-reply-to:content-type:content-transfer-encoding; s=default;
bh=+2ORcbHs8FEEPq3TXhFdgqIBRfM=; b=mwP9OlBHg0s9WbpV60xaz+zjPMhz
bC3tz2zM/Jud+ZcGeMra0JncSCtkAVQVNjfFM3LzfWjfumjL+pEpJoyXxJSiCY5u
wHA0dCklhwGqYk7PskVk75NcLAG/24MOiw+bFs6dWU7LaqpI2OBFmdZ0YKKWTCk7
hXpuH0QJ3PXxUk4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: blade-b3-vm7-relay.servers.aueb.gr
Message-ID: <5508195C.8070407@aueb.gr>
Date: Tue, 17 Mar 2015 14:09:00 +0200
From: Diomidis Spinellis <dds AT aueb DOT gr>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Windows Server 2012 R2 - man very very slow
In-Reply-To: <548EEB8A.6070005@cygwin.com>
Phone: +30 210 8203621
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2HC9JLi022384

On Sun, Dec 14, 2014 at 4:17 PM, Vilius Mockūnas  wrote:
> Windows version:
> Windows Server 2012 R2 Standard (x64)
>
> Cygwin version:
> $ uname -a
> CYGWIN_NT-6.3-WOW64 host1 1.7.33-2(0.280/5/3) 2014-11-13 15:45 i686
Cygwin
>
> man displays man pages very slowly - for example "man ls" takes about
45s to
> display.
>
> Any ideas ?

I have been troubled by the same problem for years.  I pinpointed the 
problem by running strace on the man command.  See the following excerpt.

00:00:03 [main] man 3120 stat64: entering
00:00:03 [main] man 3120 normalize_posix_path: src //man
00:00:03 [main] man 3120 normalize_posix_path: //man = 
normalize_posix_path (//man)
00:00:03 [main] man 3120 mount_info::conv_to_win32_path: 
conv_to_win32_path (//man)
00:00:03 [main] man 3120 set_flags: flags: binary (0x2)
00:00:03 [main] man 3120 mount_info::conv_to_win32_path: src_path //man, 
dst \\man, flags 0x2, rc 0
00:00:03 [main] man 3120 build_fh_pc: fh 0x612AE734, dev 000000C2
00:00:03 [WNetOpenEnum] man 3120 cygthread::stub: thread 'WNetOpenEnum', 
id 0x141C, stack_ptr 0xD1AD40
--- Process 3120, exception 000006ba at 7753C42D
00:00:05 [main] man 3120 __set_errno: int stat_worker(path_conv&, 
stat*):1923 setting errno 2
00:00:05 [main] man 3120 stat_worker: -1 = (\??\UNC\man,0x28AA70)

As you can see, man is trying to open a UNC (network) path to //man, 
which is a non-existent host.  The network timeout causes the delay.

I addressed the problem by adding the following in my .bash_profile file

export MANPATH=/usr/share/man

Diomidis Spinellis - http://www.spinellis.gr



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


- Raw text -


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