Windows Server 2012 R2 - man very very slow

Diomidis Spinellis dds@aueb.gr
Tue Mar 17 12:16:00 GMT 2015


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



More information about the Cygwin mailing list