From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70624 invoked by alias); 23 Jan 2016 17:35:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 70613 invoked by uid 89); 23 Jan 2016 17:35:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-92.8 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=prudent, Maintainer, opens, H*f:sk:8737tpq X-HELO: calimero.vinschen.de Received: from ipbcc05c50.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.92.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 23 Jan 2016 17:35:55 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id DD21BA803D9; Sat, 23 Jan 2016 18:35:52 +0100 (CET) Date: Sat, 23 Jan 2016 19:55:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Performance of "ls -F" Message-ID: <20160123173552.GE3268@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <3a9ff6ec2d5e4e64a96a8f8e31d12f22@ntmaexbe04.bedford.progress.com> <20160122201418.GC3268@calimero.vinschen.de> <8737tpqqb6.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5oH/S/bF6lOfqCQb" Content-Disposition: inline In-Reply-To: <8737tpqqb6.fsf@Rainer.invalid> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-01/txt/msg00316.txt.bz2 --5oH/S/bF6lOfqCQb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1470 On Jan 22 22:04, Achim Gratz wrote: > Corinna Vinschen writes: > > Just a hint: ls -F requires to stat every single file. stat in turn > > requires to load not only the usual metadata but also to fetch the ACL > > and convert it to POSIX permissions. >=20 > The timings are from shares mounted with the noacl option, so that bit > of code shouldn't be involved. I will try the same operations on an ACL > enabled mount of the same share later and I also need to find a share > that is exported from a true NTFS server for comparison. >=20 > > Assuming this slow access only occurs under 2.4.0, >=20 > No, the behaviour is quite a bit older, although I didn't time it since > I didn't recognize the connection to the aliased ls. In any case, it > really is just the determination of whether or not the file is > executable that takes up all that time. In the noacl case, Cygwin tries to find out if files are scripts. It opens the file and checks the first two bytes in the file for a shebang (and other stuff). This may take a lot of time, more so on network drives. Can you try adding the "notexec" mount option to the "noacl" share and see if that helps? This test is done for a looong time to accommodate FAT filesystems in the first place. It might be prudent to disable it by default these days... Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --5oH/S/bF6lOfqCQb Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWo7n4AAoJEPU2Bp2uRE+g3CgP/jY/5z7pSXLVokYxhfTO1ZIO SjZcs895qgT67dMa1o/IOmwnrXtmliIYNbwRh6NqbTYuyfI8oeY38SuRx2csOnGB U73q5wNsBsnVg4w34/egxrgv6Q8ib0aMtxVSDT99+0SMenZyFtHVkOFF5Qt82N8A GKfkZaYRo0+bGG4tRdQXGi/gFbizx/CfceEk7mQQwsoCZYZqfFFzmLsqOxW/FDjr /5UgN6Ga7izL526Fc6Ug/kFl7NtF6O+5Oc4lgIxhnpGhzpa1nBsbGHzgdRoOMxYP Ao2jHpdueYuTT64JRXtsAsaIZXY9whl1KsLhB6rQLpaK2RPGg0WJ73Hl40x0N9Qu 4AFhwSBOaLs3oIBnsIw6J5RJTvmPJ1poof32Zy+girWjmCcFhaw9r15MpUM7VE4h 0V1OVKFYBqbmxeUt8MGUy+IbDDdr2ksgAt59iMTRQArNVgtfqST2ib2ys3ecwx5V o+2+XTmzZKPIwVJJwlrp5raZpTamtbM2ryRoC+xP9RnsLVSZWFvMXHPLEEiMass9 WGMAuZpa2eYXW9v4AivXYyypi17HE4XTzAf8qhRjYQMFQcL5VtjMkWcJRJzb0Ce/ LY6sZwBWiwZdvu4rtsDH+eNnfAqE+d0xO4gQFY7VEzv2yq4UwKiClW1WcwdfwqZZ 9PMgrLgnQ0i04+q1oMtU =m/jv -----END PGP SIGNATURE----- --5oH/S/bF6lOfqCQb--