delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/06/02:53:00

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
Message-ID: <4204D3BE.4080205@x-ray.at>
Date: Sat, 05 Feb 2005 15:10:06 +0100
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7) Gecko/20040616
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: slow handling of large sets of files?
References: <1107286130 DOT 3063 DOT 65 DOT camel AT slb163188094105 DOT sugar-land DOT nam DOT slb DOT com> <6 DOT 2 DOT 0 DOT 14 DOT 0 DOT 20050201144916 DOT 05a42210 AT pop DOT prospeed DOT net> <1107289362 DOT 3063 DOT 78 DOT camel AT slb163188094105 DOT sugar-land DOT nam DOT slb DOT com> <4200247C DOT 6F51F5E AT dessent DOT net>
In-Reply-To: <4200247C.6F51F5E@dessent.net>
X-IsSubscribed: yes

Brian Dessent schrieb:
> Ken Sheldon wrote:
>>Not only Cygwin apps incur this large performance penalty.  Something
>>similar happens with the cmd.exe prompt command "DIR", with the windows
>>file explorer, or with IIS (FTP server).  This only seems to happen in
>>the directory structures created by my CygWin scripts (using apps: tar,
>>wget, cp)
> 
> If I had to take a wild guess I'd say that's because when a normal win32
> app creates a file it usually inherits its ACL from the parent
> directory, and presumably NTFS is tuned for this in some way so that
> checking thousands of such files that all inherit ACLs is fast. 
> However, when cygwin creates a file or dir it usually sets the
> permissions explicitly to match what you would expect on a POSIX system
> (i.e. 644 or 755.)  Try creating your files/folders with "nontsec" set
> and see if the cygwin-created trees are as slow as native-created ones.

Yes, that's the cause.
ls is a bit optimized compared to cmd.exe dir for large filesets, but 
checking ACL's are the real pain.

nontsec or remove all the cygwin created groups but one. cygwin insists 
on at least two groups. Windows is happy with one.

Either turn off ACL inheritance (best) or if so be sure the the 
inherited ACL has not too much groups.

Compare getfacl . to CACLS . and you'll see the difference.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

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