X-Spam-Check-By: sourceware.org
Date: Tue, 9 May 2006 14:13:25 -0400 (EDT)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Michael Hirsch <mdhirsch@gmail.com>
cc: cygwin@cygwin.com
Subject: Re: 1.5.19 slow access to shares
In-Reply-To: <9c2aabaf0605091059t615ecaddn7e21d4a8cee874d4@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0605091410350.4624@access1.cims.nyu.edu>
References: <9c2aabaf0605091059t615ecaddn7e21d4a8cee874d4@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed
Content-ID: <Pine.GSO.4.63.0605091410352.4624@access1.cims.nyu.edu>
Content-Disposition: INLINE
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, 9 May 2006, Michael Hirsch wrote:

> I have a network share (//xcocluster1/vpg) mounted to g:.  Depending
> on which name I try to access it with I get radically different access
> times:
>
> mhirsch@xcomhirsch20 ~
> $ time ls //xcocluster1/vpg
> Presentations/  appdist/  backups/  buildenv/  conf/  opt/  sysgen/  users/
>
> real    0m10.875s
> user    0m0.030s
> sys     0m0.062s
>
> mhirsch@xcomhirsch20 ~
> $ time ls g:
> Presentations/  appdist/  backups/  buildenv/  conf/  opt/  sysgen/  users/
>
> real    0m0.063s
> user     0m0.030s
> sys     0m0.015s
>
> mhirsch@xcomhirsch20 ~
> $ time ls //xcocluster1/vpg
> Presentations/  appdist/  backups/  buildenv/  conf/  opt/  sysgen/  users/
>
> real    0m17.094s
> user    0m0.046s
> sys      0m0.046s
>
> I couldn't find and explanation for this.  Is this normal?  Is there a
> way to make them both fast?
>
> Running a similar command in the windows CMD window yields fast
> accesses, regarless of whether I refer to drive letter or machine WINS
> name.

When you use the WINS name, Cygwin does some processing of the network
share path itself, whereas with the g: drive it delegates to Windows.  I
don't know if it's always possible to delegate to Windows when the WINS
name is specified.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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

