delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/08/09:56:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 8 May 2012 15:55:44 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bad performance when opening many files on Win7
Message-ID: <20120508135544.GY18516@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <874ns6z0cr DOT fsf AT Rainer DOT invalid> <4F9A0FFB DOT 4080201 AT cygwin DOT com> <87y5ph4t4z DOT fsf AT Rainer DOT invalid> <loom DOT 20120427T103825-468 AT post DOT gmane DOT org> <loom DOT 20120508T150823-706 AT post DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <loom.20120508T150823-706@post.gmane.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On May  8 13:19, Achim Gratz wrote:
> Achim Gratz <Stromeko <at> NexGo.DE> writes:
> > Fetching all groups from the DC gave me some 60000 entries in a 4MiB group
> > file.  And if anything, things became even slower when using that file.  
> 
> I finally found some reproduceable case where the lsass.exe process will go
> berserk.  It's all programs that scan all files in /usr/bin... there are 3800
> and there seems to be no caching of any sort going on, so that always takes
> about 20 seconds. :-(
> 
> I've scanned the ACL in that directory and these are the principals used:
> 
> BUILTIN\Administrators
> BUILTIN\Administrators
> BUILTIN\Users
> BUILTIN\Users
> AD\Domain Users
> AD\Domain Users
> NT AUTHORITY\SYSTEM
> NT AUTHORITY\SYSTEM

How did you do that?  The ACLs in the Cygwin default dirs are supposed
to contain only three ACEs, one for the installing user, one for the
local admin group, and one for everyone.  At least that's how setup.exe
installs them.

> I have these in /etc/passwd and/or /etc/group.  I'm probably missing out on:
> 
> Everyone
> Everyone
> NT AUTHORITY\Authenticated Users
> NT AUTHORITY\Authenticated Users
> 
> How does one get suitable entries for /etc/group on these (I have
> Authentificated Users:S-1-5-11:11: in /etc/group, but nothing that I could map
> to "Everyone")?

You don't.  Everyone is the entry corresponding to POSIX "other".  It's
not actually a group, even if it has a SID.

Btw., my machine and my account are domain members as well.  Obviously
all entries in /usr/bin have an Everyone ACE.  My ls -l takes only about
1.2 secs with > 2200 entries in /usr/bin.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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