Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <003b01c29030$464e9420$437517d2@astra03>
From: "Carlo Florendo" <carlo@astra.ph>
To: <pechtcha@cs.nyu.edu>
Cc: <cygwin@cygwin.com>
References: <Pine.GSO.4.44.0211172332260.4275-100000@slinky.cs.nyu.edu>
Subject: Re: ls problem
Date: Tue, 19 Nov 2002 17:00:47 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

Hi Igor,

I tried disabling ntsec and "ls -l" is still slow.  I'm using
1.3.15-cygwin-1-3-15-1.  "ls -l" and "ls -ln" takes almost the same amount
of time.    On a directory with 3 short text files, the difference, when I
timed "ls -l" and "ls -b", is still considerable.

fcarlo@ZEUS~
$ time ls -b
a  b  test

real    0m0.024s
user    0m0.030s
sys     0m0.015s

fcarlo@ZEUS ~
$ time ls -l
total 11
-rw-r--r--    1 fcarlo   None            5 Nov 19 13:58 a
-rw-r--r--    1 fcarlo   None            5 Nov 19 13:58 b
-rw-r--r--    1 fcarlo   None         8283 Nov 19 13:59 test

real    0m1.819s
user    0m0.030s
sys     0m0.000s

Best Regards,

Carlo Florendo






>
> Carlo,
> It would have been more helpful if you had provided your cygwin version,
> but even without it I could venture a guess...  The latest versions of
> cygwin have ntsec on by default, and doing 'ls -l' will result in the user
> lookup in the /etc/passwd (and /etc/group) file.  An easy way to test that
> is to time 'ls -ln' and see if it's faster.  Another test would be to
> *temporarily* turn off ntsec (by adding "nontsec" to your CYGWIN
> environment variable and reloading cygwin1.dll by exiting all running
> cygwin processes).  I say temporarily because ntsec is actually a very
> useful feature to have on, and this is suggested only as a means to find
> out whether it's the culprit.  You can restore the state by either
> changing "nontsec" to "ntsec", or leaving it off altogether, as it's the
> default now, and reloading cygwin1.dll again.
> Igor
> --
> http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_ pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_ igor@watson.ibm.com
>      |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski
>     '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> "Water molecules expand as they grow warmer" (C) Popular Science, Oct'02,
p.51
>
>
> --
> 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/
>
>


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

