This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Windows Server 2012 R2 - man very very slow
- From: Diomidis Spinellis <dds at aueb dot gr>
- To: cygwin at cygwin dot com
- Date: Tue, 17 Mar 2015 14:09:00 +0200
- Subject: Re: Windows Server 2012 R2 - man very very slow
- Authentication-results: sourceware.org; auth=none
- Phone: +30 210 8203621
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