From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1296 invoked by alias); 8 May 2012 13:56:39 -0000 Received: (qmail 1246 invoked by uid 22791); 8 May 2012 13:56:06 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Tue, 08 May 2012 13:55:47 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 66EAD2C1520; Tue, 8 May 2012 15:55:44 +0200 (CEST) Date: Tue, 08 May 2012 13:56:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: bad performance when opening many files on Win7 Message-ID: <20120508135544.GY18516@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <874ns6z0cr.fsf@Rainer.invalid> <4F9A0FFB.4080201@cygwin.com> <87y5ph4t4z.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 X-SW-Source: 2012-05/txt/msg00165.txt.bz2 On May 8 13:19, Achim Gratz wrote: > Achim Gratz 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