X-Spam-Check-By: sourceware.org Date: Wed, 28 Mar 2007 12:39:15 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Ken Fast cc: cygwin AT cygwin DOT com Subject: Re: Waiting for //.terminfo or //.termcap In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, 28 Mar 2007, Ken Fast wrote: > Opening a bash shell has been much slower lately. (New WinXP machine, > or new cygwin install?) Also, using some simple commands like man is > terribly slow. In looking through the strace logs for bash, less (the > slow part of man pages), and more (tried as an alternative to less for > man pages) I see a 6 or 7 second delay for a search for //.terminfo or > //.termcap. I am on a network connected machine in a corporate setting, > so there are a lot of entries at //. A simple ls // comes back in a > second or two, but searching for //.terminfo is killing me. My TERM > environment variable is set to cygwin. Why doesn't cygwin look in > C:/cygwin/usr/share/terminfo/c/cygwin first instead of looking across > the entire network for .terminfo? > > Note: I posted yesterday on another thread about the DLA problem. I > think it may not be a DLA issue at all, unless DLA is causing this > global search for terminfo. > > Some of the output from strace: > 19 25722 [main] more 1580 fhandler_console::open: opened conin$ 0x13, conout$ 0x23 > 23 25745 [main] more 1580 fhandler_console::output_tcsetattr: 0 = tcsetattr (,6002001C) (ENABLE FLAGS 3) (lflag 107 oflag 9) > 40 25785 [main] more 1580 fhandler_console::need_invisible: invisible_console 0 > 29 25814 [main] more 1580 mount_info::conv_to_posix_path: conv_to_posix_path (C:\cygwin\bin\cygintl-3.dll, keep-rel, no-add-slash) > 20 25834 [main] more 1580 normalize_win32_path: C:\cygwin\bin\cygintl-3.dll = normalize_win32_path (C:\cygwin\bin\cygintl-3.dll) > 17 25851 [main] more 1580 mount_info::conv_to_posix_path: /usr/bin/cygintl-3.dll = conv_to_posix_path (C:\cygwin\bin\cygintl-3.dll) > 36 25887 [main] more 1580 dll_crt0_1: user_data->main 0x404520 > 16 25903 [main] more 1580 __set_errno: void dll_crt0_1(void*):948 val 0 > 465 26368 [main] more 1580 fhandler_console::tcgetattr: 0 = tcgetattr (0x40A620) enable flags 0x1F, t->lflag 0x107, t->iflag 0x502 > 19 26387 [main] more 1580 tcgetattr: iflag 502, oflag 9, cflag BF, lflag 107, VMIN 1, VTIME 0 > 26 26413 [main] more 1580 isatty: 1 = isatty (1) > 123 26536 [main] more 1580 stat64: entering > 18 26554 [main] more 1580 normalize_posix_path: src //.terminfo > 16 26570 [main] more 1580 normalize_posix_path: //.terminfo = normalize_posix_path (//.terminfo) > 17 26587 [main] more 1580 mount_info::conv_to_win32_path: conv_to_win32_path (//.terminfo) > 19 26606 [main] more 1580 set_flags: flags: binary (0x2) > 15 26621 [main] more 1580 mount_info::conv_to_win32_path: src_path //.terminfo, dst \\.terminfo, flags 0x2, rc 0 > 20 26641 [main] more 1580 build_fh_pc: fh 0x61167DF0 > 125 26766 [WNetGetResourceInformation] more 1580 cygthread::stub:thread 'WNetGetResourceInformation', id 0x20C, stack_ptr 0x18D3CDC0 > --- Process 1580, exception 000006BA at 7C812A5B > 6876665 6903431 [main] more 1580 __set_errno: fhandler_base* build_fh_name(const char*, void*, unsigned int, suffix_info*):345 val 136 > _______ ~6 seconds to timeout looking for //.terminfo You didn't attach the output of "cygcheck -svr", as requested in > Problem reports: http://cygwin.com/problems.html so I have to ask: what is your HOME set to? If it's set to "/", that would explain the behavior (although it's arguably a bug in ncurses, since it should be looking for /.terminfo instead). Try setting your HOME to something else. And please follow the above "Problem reports" link and provide the requested information. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/