delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/16/10:39:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT net>
Subject: Re: Please test latest snapshot
Date: Mon, 16 May 2005 14:36:45 +0000 (UTC)
Lines: 70
Message-ID: <loom.20050516T160024-968@post.gmane.org>
References: <20050513220635 DOT GC2685 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> 
> We would like to release 1.5.17 soon.
> 
> Please try the latest snapshot, 2005-May-13, from http://cygwin.com/snapshots/
> 
> Additional to a couple of bugfixes there's also a new feature which needs a
> bit of testing.  You can now list servers in the machine's domain/workgroup
> with
> 
>   $ ls //

On my work machine, where there are at least 1600 machines on the network (a 
changing number, based on how many employees have their machines on), `ls -
F //' takes an inordinate amount of time while stat'ing all of those machines 
(serves me right for having alias ls='ls --color=auto -F').  Also, I cannot get 
ctrl-C or `/bin/kill -s TERM' to interrupt the ls process while it is 
attempting to access each and every one of those machines; after more than 10 
minutes of waiting I gave up and used `/bin/kill -s KILL' to get that shell 
back, with less than half the network traversed.

$ cd //
$ time \ls | wc -l
1723

real    0m0.133s
user    0m0.060s
sys     0m0.093s
$ time ls
ls: ABITLAB20: No such host or network path
ls: ABITTST1: No such host or network path
ls: ALICEB: No such host or network path
ls: AT247: No such host or network path
ls: AUTOPOINT: No such host or network path
ls: BCASE: No such host or network path
ls: BHORNE: No such host or network path
ls: CC9032LT: No such host or network path
ls: CCOOPER: No such host or network path
ls: CDENNIS: No such host or network path
ls: CHUCK: No such host or network path
ls: CJOHNSON: No such host or network path
ls: CLS: No such host or network path
ls: CLWOOD: No such host or network path
ls: CZACHER: No such host or network path
ls: DALLEN: No such host or network path
ls: DELTMODTEST: No such host or network path
ls: DHART: No such host or network path
ls: DIGENG6: No such host or network path
ls: DLJACKSO: No such host or network path
ls: DSTATES: No such host or network path
ls: GALLEN: No such host or network path
ls: GEE: No such host or network path
ls: GRJONES: No such host or network path
ls: GSTUDE: No such host or network path
Killed

real    11m57.623s
user    0m0.186s
sys     0m1.015s
$

I don't know if there is a reasonable way to speed this up, because you want to 
ensure that //machine exists before allowing `cd //machine' to succeed, but 
don't want to go stat'ing every machine on the network when doing a readdir() 
on //.

--
Eric Blake



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019