Re: Windows Server 2012 R2 - man very very slow
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 00C2 00:00:03 [WNetOpenEnum] man 3120 cygthread::stub: thread 'WNetOpenEnum', id 0x141C, stack_ptr 0xD1AD40 --- Process 3120, exception 06ba 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
Re: Windows Server 2012 R2 - man very very slow
Hi Vilius, On Sun, Dec 14, 2014 at 4:17 PM, Vilius Mockūnas wrote: Hello, 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 ? Was this the first time you launched man (e.g. after a fresh install)? If yes, was the next invocation of man also slow? If you have Process Explorer (Microsoft TechNet), try running it while issuing man ls. You may be able to see which program is taking so long to complete (man may start other programs). Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. Ok, it boots. Which means it must be bug-free and perfect. -- Linus Torvalds People disagree with me. I just ignore them. -- Linus Torvalds -- 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
Re: Windows Server 2012 R2 - man very very slow
Hello, Yes fresh install and yes it happened on first man launch. I checked processes - it's man.exe which waits. And for example if man page not installed it takes 40s too: $ man init waits 40s before returning No manual... No manual entry for init - Original Message - From: Csaba Raduly rcs...@gmail.com To: cygwin list cygwin@cygwin.com Sent: Monday, December 15, 2014 12:57 PM Subject: Re: Windows Server 2012 R2 - man very very slow Hi Vilius, On Sun, Dec 14, 2014 at 4:17 PM, Vilius Mockūnas wrote: Hello, 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 ? Was this the first time you launched man (e.g. after a fresh install)? If yes, was the next invocation of man also slow? If you have Process Explorer (Microsoft TechNet), try running it while issuing man ls. You may be able to see which program is taking so long to complete (man may start other programs). Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. Ok, it boots. Which means it must be bug-free and perfect. -- Linus Torvalds People disagree with me. I just ignore them. -- Linus Torvalds -- 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 -- 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
Re: Windows Server 2012 R2 - man very very slow
On 12/15/2014 06:42 AM, Vilius Mockūnas wrote: Hello, Yes fresh install and yes it happened on first man launch. I checked processes - it's man.exe which waits. And for example if man page not installed it takes 40s too: $ man init waits 40s before returning No manual... No manual entry for init Sounds like something locally installed is getting in your way. https://cygwin.com/acronyms/#BLODA? -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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
Re: Windows Server 2012 R2 - man very very slow
None of those on the list. - Original Message - From: Larry Hall (Cygwin) reply-to-list-only...@cygwin.com To: cygwin@cygwin.com Sent: Monday, December 15, 2014 4:09 PM Subject: Re: Windows Server 2012 R2 - man very very slow On 12/15/2014 06:42 AM, Vilius Mockūnas wrote: Hello, Yes fresh install and yes it happened on first man launch. I checked processes - it's man.exe which waits. And for example if man page not installed it takes 40s too: $ man init waits 40s before returning No manual... No manual entry for init Sounds like something locally installed is getting in your way. https://cygwin.com/acronyms/#BLODA? -- Larry _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- 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 -- 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
Re: Windows Server 2012 R2 - man very very slow
Vilius Mockūnas writes: man displays man pages very slowly - for example man ls takes about 45s to display. Those 45 seconds seem excessive whichever way I look at it, unless there is quite some load on the filesystem that Cygwin is on. In that case, moving Cygwin to a different disk or investing into an SSD might be your samrtest investment in ages. But if it is not that, try if running mandb -c helps those display times. Note that this will likely take quite some time to run, maybe even hours, on your system. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Waldorf MIDI Implementation additional documentation: http://Synth.Stromeko.net/Downloads.html#WaldorfDocs -- 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
Re: Windows Server 2012 R2 - man very very slow
Greetings, Vilius Mockūnas! Please don't top-post. Thank you. On 12/15/2014 06:42 AM, Vilius Mockūnas wrote: Hello, Yes fresh install and yes it happened on first man launch. I checked processes - it's man.exe which waits. And for example if man page not installed it takes 40s too: $ man init waits 40s before returning No manual... No manual entry for init Sounds like something locally installed is getting in your way. https://cygwin.com/acronyms/#BLODA? None of those on the list. The list is far from exhaustive. It only gives you an idea of how it is a widespread problem, and what kind of software to watch for. Your mileage may vary. -- WBR, Andrey Repin (anrdae...@yandex.ru) 16.12.2014, 04:43 Sorry for my terrible english...