| www.delorie.com/archives/browse.cgi | search |
| 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:subject:to:references:from:message-id:date | |
| :mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=Hm5JPs4jAafco7B/ | |
| 9Cxb1COaeFRVRWeIx/VSLSeLqvV2CXXinYMiPiu5oDDO8CDwrsTN9/lWaVnd0cd/ | |
| V4Hq7bKVwNzTVZC6H668s2ilbZTJquY42lfwabDWlAODa6rsKmZaeIAuO+7hEN8b | |
| ojVKPG1wHzfgY4NMGMtJtLVfD40= | |
| 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:subject:to:references:from:message-id:date | |
| :mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; s=default; bh=EEyutdy5kLu4DItelcl796 | |
| z4zBg=; b=Nrw3nAncU9gdK/KQtGI42rc6UvC0sxLaLNcqyDmFud52pJt5ssnuJ1 | |
| vMF6b3T6oeZTFGsDmGoWNYlhxfYz51ydVEapRRgzGMtKvHEvb3ko3qEUMJAmIJIR | |
| 47JC3OFO6sfauG1Po82LXs6BCtnad0yASPQPZpexK5qI4MDT+FALk= | |
| 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=1.6 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Association, Riedel,Till, riedel,till, riedeltill |
| X-HELO: | scc-mailout-kit-02.scc.kit.edu |
| Subject: | Re: man incredibly slow because it scans for share directory in PATH?? |
| To: | cygwin AT cygwin DOT com |
| References: | <19074b1d-78d1-a425-5a79-434ce8b1d480 AT kit DOT edu> <310054882 DOT 20160612134916 AT yandex DOT ru> |
| From: | "Riedel,Till (TM)" <till DOT riedel AT kit DOT edu> |
| Message-ID: | <1c58d754-9720-0780-6f5e-76edc056b480@kit.edu> |
| Date: | Sun, 12 Jun 2016 15:30:09 +0200 |
| User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <310054882.20160612134916@yandex.ru> |
> You have lots of duplicated, obsolete and overlapping paths in your
%PATH%.
> I suggest you start from some homecleaning.
> Not to mention strange ones, like "/".
Thx alot!
I know that my path is messy, but having "/" in the path should not be
all too fatal.
Furthermore, I probably did not set any of those strange paths myself
(this is afterall Windows ;) ).
@Eliot: Good idea to set MANPATH!
>MANPATH=/usr/share/man PATH="/usr/bin:/foo" strace man bar |grep
'foo/share'
returns nothing and fixes the issue!
IMHO at least in Windows/Cygwin creating MANPATH from PATH makes no
sense! (although I now get the idea what was the rationell!) Reasonably
setting MANPATH should IMHO be a default...
BR
Till
Am 6/12/2016 um 12:49 PM schrieb Andrey Repin:
> Greetings, Riedel,Till (TM)!
>
>> I traced down my problem with really slow man page views this:
>
>> {{{
>
> >>PATH="/usr/bin:/foo" strace man bar |grep 'foo/share'
>
>> }}}
>
>> I am getting this:
>
>> {{{
>
>> 13 39756 [main] man 6688 normalize_posix_path: src /foo/share/man
>> 16 39772 [main] man 6688 normalize_posix_path: /foo/share/man =
>> normalize_posix_path (/foo/share/man)
>> 13 39785 [main] man 6688 mount_info::conv_to_win32_path:
>> conv_to_win32_path (/foo/share/man)
>> 12 39810 [main] man 6688 mount_info::conv_to_win32_path: src_path
>> /foo/share/man, dst C:\tools\cygwin\foo\share\man, flags 0x3000A, rc 0
>> 16 39912 [main] man 6688 mount_info::conv_to_win32_path:
>> conv_to_win32_path (/foo/share)
>> 14 39942 [main] man 6688 mount_info::conv_to_win32_path: src_path
>> /foo/share, dst C:\tools\cygwin\foo\share, flags 0x3000A, rc 0
>
>> }}}
>
>> If my PATH is the real one this goes on forever, and generates some
>> problems,like:
>
> You have lots of duplicated, obsolete and overlapping paths in your %PATH%.
> I suggest you start from some homecleaning.
> Not to mention strange ones, like "/".
>
>> {{{
>
> >>time man bar
>> No manual entry for bar
>
>> real 0m23.650s
>> user 0m0.000s
>> sys 0m0.108s
>
>> hanging e.g. on
>
>> 20 2449004 [main] man 8124 mount_info::conv_to_win32_path: src_path
>> //share/man, dst \\share\man, flags 0x4022, rc 0
>
>> }}}
>
>> VS.
>
>> {{{
>
> >>PATH=/usr/bin/ bash -c "time man bar"
>> No manual entry for bar
>
>> real 0m0.082s
>> user 0m0.031s
>> sys 0m0.045s
>
>> }}}
>
>> Any ideas why man does look for "share" in the whole path? Tbh I haven't
>> looked at the man source code. Thx in advance!
>
>
--
KIT- Research University in the Helmholtz Association
Dr.-Ing. Till Riedel
Lab Leader TECO, SDSC-BW/SDIL
Karlsruhe Institute of Technology (KIT)
Institute of Telematics (TM)
Pervasive Computing Systems - Prof. Beigl
Bldg. 07.07., Room 211
Vincenz Prießnitz Str. 1, 76131 Karlsruhe
+49 (0)721 608 41706
www.teco.kit.edu/~riedel
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |