From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9755 invoked by alias); 12 Jun 2016 13:30:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 9717 invoked by uid 89); 12 Jun 2016 13:30:30 -0000 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 Received: from scc-mailout-kit-02.scc.kit.edu (HELO scc-mailout-kit-02.scc.kit.edu) (129.13.231.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 12 Jun 2016 13:30:20 +0000 Received: from teco141pc.teco.kit.edu ([129.13.170.141] helo=teco141pc.teco.edu) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (envelope-from ) id 1bC5Sx-0000ti-3l for cygwin@cygwin.com; Sun, 12 Jun 2016 15:30:17 +0200 Received: from p4fd235c4.dip0.t-ipconnect.de ([79.210.53.196] helo=[192.168.178.79]) by teco141pc.teco.edu with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bC5Ss-0005zP-6T auth-from riedel; Sun, 12 Jun 2016 15:30:11 +0200 Subject: Re: man incredibly slow because it scans for share directory in PATH?? To: cygwin@cygwin.com References: <19074b1d-78d1-a425-5a79-434ce8b1d480@kit.edu> <310054882.20160612134916@yandex.ru> From: "Riedel,Till (TM)" Message-ID: <1c58d754-9720-0780-6f5e-76edc056b480@kit.edu> Date: Sun, 12 Jun 2016 17:18:00 -0000 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> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2016-06/txt/msg00187.txt.bz2 > 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