Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20011130115637.022e3e18@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 30 Nov 2001 12:00:05 -0500 To: arnaud AT apiic DOT info, cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Strange performance of Bash depending of current directory In-Reply-To: <3C0765D3.8070708@apiic.info> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 05:56 AM 11/30/2001, apiic wrote: >Hi, > >At first, thank you for CYGWIN environment which is so useful, specially for me to settle shells both on NT stations et UNIX stations. I ask about a strange problem about Bash performances >of scripts depending of the type of NT local directory. > >I maintain a bash profile running on NT4 station with CYGWIN and on IRIX station. This profile is stored on UNIX (IRIX station with Samba) server. > >Some users complaint about low performances of this profile running on their NT4 station. >I found that all users complaining got their home directory on UNIX station (net use with Samba). >The others got their home directory on NT station. > >So I wrote a little script and tested it, first in local directory and second in Samba directory. Here is the result : > >1) Running script in local directory (c:/users/) 2 seconds >2) Running script in share directory (net use Samba) 4 seconds > >Script : > >#!/bin/bash > >for ligne in $(mount | grep system | tr -s [:space:] | sed 's/ /,/g' ) >do > path=$(echo $ligne | sed 's/,/ /g' | cut -f1 -d " ") > point=$(echo $ligne | sed 's/,/ /g' | cut -f3 -d " ") > echo $point monte sur $path >done > >It appears that performances of scripts depend of the current directory in which they are run. I made several tests and it seems that variable HOME >and variable PATH have no relation with this behaviour. > >I read FAQ and Mailing list archive without any answer about this problem >Thank you for helping The overhead of network access is not insignificant with Cygwin. Putting network directories in the path can have a significant performance impact too. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/