public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Windows Server 2012 R2 - man very very slow
@ 2014-12-15 11:42 Vilius Mockūnas
  2014-12-15 14:09 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 8+ messages in thread
From: Vilius Mockūnas @ 2014-12-15 11:42 UTC (permalink / raw)
  To: cygwin

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" <rcsaba@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Windows Server 2012 R2 - man very very slow
  2014-12-15 11:42 Windows Server 2012 R2 - man very very slow Vilius Mockūnas
@ 2014-12-15 14:09 ` Larry Hall (Cygwin)
  2014-12-15 14:22   ` Vilius Mockūnas
  2015-03-17 12:16   ` Diomidis Spinellis
  0 siblings, 2 replies; 8+ messages in thread
From: Larry Hall (Cygwin) @ 2014-12-15 14:09 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Windows Server 2012 R2 - man very very slow
  2014-12-15 14:09 ` Larry Hall (Cygwin)
@ 2014-12-15 14:22   ` Vilius Mockūnas
  2014-12-16  1:50     ` Andrey Repin
  2015-03-17 12:16   ` Diomidis Spinellis
  1 sibling, 1 reply; 8+ messages in thread
From: Vilius Mockūnas @ 2014-12-15 14:22 UTC (permalink / raw)
  To: cygwin

None of those on the list.


----- Original Message ----- 
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Windows Server 2012 R2 - man very very slow
  2014-12-15 14:22   ` Vilius Mockūnas
@ 2014-12-16  1:50     ` Andrey Repin
  0 siblings, 0 replies; 8+ messages in thread
From: Andrey Repin @ 2014-12-16  1:50 UTC (permalink / raw)
  To: Vilius Mockūnas, cygwin

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 (anrdaemon@yandex.ru) 16.12.2014, <04:43>

Sorry for my terrible english...

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Windows Server 2012 R2 - man very very slow
  2014-12-15 14:09 ` Larry Hall (Cygwin)
  2014-12-15 14:22   ` Vilius Mockūnas
@ 2015-03-17 12:16   ` Diomidis Spinellis
  1 sibling, 0 replies; 8+ messages in thread
From: Diomidis Spinellis @ 2015-03-17 12:16 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Windows Server 2012 R2 - man very very slow
  2014-12-14 15:17 Vilius Mockūnas
  2014-12-15 10:57 ` Csaba Raduly
@ 2014-12-15 17:13 ` Achim Gratz
  1 sibling, 0 replies; 8+ messages in thread
From: Achim Gratz @ 2014-12-15 17:13 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Windows Server 2012 R2 - man very very slow
  2014-12-14 15:17 Vilius Mockūnas
@ 2014-12-15 10:57 ` Csaba Raduly
  2014-12-15 17:13 ` Achim Gratz
  1 sibling, 0 replies; 8+ messages in thread
From: Csaba Raduly @ 2014-12-15 10:57 UTC (permalink / raw)
  To: cygwin list

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Windows Server 2012 R2 - man very very slow
@ 2014-12-14 15:17 Vilius Mockūnas
  2014-12-15 10:57 ` Csaba Raduly
  2014-12-15 17:13 ` Achim Gratz
  0 siblings, 2 replies; 8+ messages in thread
From: Vilius Mockūnas @ 2014-12-14 15:17 UTC (permalink / raw)
  To: cygwin

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 ?

thanks,
Vilius M 


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-17 12:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 11:42 Windows Server 2012 R2 - man very very slow Vilius Mockūnas
2014-12-15 14:09 ` Larry Hall (Cygwin)
2014-12-15 14:22   ` Vilius Mockūnas
2014-12-16  1:50     ` Andrey Repin
2015-03-17 12:16   ` Diomidis Spinellis
  -- strict thread matches above, loose matches on Subject: below --
2014-12-14 15:17 Vilius Mockūnas
2014-12-15 10:57 ` Csaba Raduly
2014-12-15 17:13 ` Achim Gratz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).