X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 	tests=AWL,BAYES_20,J_CHICKENPOX_66,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49C2668B.2070000@cygwin.com>
Date: Thu, 19 Mar 2009 11:36:43 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: ls -lR too slow
References: <49C1EE41.5080808@princeton.edu> <49C1F3EA.6060600@gmail.com>
In-Reply-To: <49C1F3EA.6060600@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Dave Korn wrote:
> Vinod Gupta wrote:
> 
>> When I do "ls -lR /cygdrive/z" it takes very long.
>> There are only about 700 files on Z: totalling only 100 MB. When I
>> monitor network counters on laptop, I see that a whopping 90 MB were
>> downloaded for a payload (file list) of only 60 KB. Out of curiosity, I
>> did the same experiment between two linux machines configured as NFS
>> client+server. 
> 
>   Perhaps more instructive would be to compare with typing "DIR Z:" in a DOS
> prompt.  How much time does that take, and how much network traffic does it
> generate, by comparison?

If the OP is looking for truer comparisons with Linux, I would say that
using SAMBA on Linux is a better test than NFS.  Of course, Cygwin is
expected to be slower than Linux regardless.

In terms of overall time/traffic with Cygwin, I'd recommend comparing the
results of "DIR Z:" that Dave recommends above to "ls /cygdrive/z" (or
"DIR /S Z:" to "ls -R /cygdrive/z").  If you need to use "-l" with "ls"
and remote SAMBA shares, I'd recommend adding "smbntsec" to your "CYGWIN"
environment variable.  This should limit file accesses that "-l" (and other
flags) can require.  See the link below for more info:

<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

