public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: bad performance when opening many files on Win7
Date: Tue, 08 May 2012 13:56:00 -0000	[thread overview]
Message-ID: <20120508135544.GY18516@calimero.vinschen.de> (raw)
In-Reply-To: <loom.20120508T150823-706@post.gmane.org>

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

  parent reply	other threads:[~2012-05-08 13:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 20:48 Achim Gratz
2012-04-27  3:19 ` Larry Hall (Cygwin)
2012-04-27  5:55   ` Achim Gratz
2012-04-27  8:42     ` Achim Gratz
2012-04-30 15:37       ` Larry Hall (Cygwin)
2012-05-08 13:19       ` Achim Gratz
2012-05-08 13:54         ` Achim Gratz
2012-05-08 13:56         ` Corinna Vinschen [this message]
2012-05-08 16:38           ` Achim Gratz
2012-05-08 17:29             ` Corinna Vinschen
2012-05-09  6:57               ` Achim Gratz
2012-05-09 18:17                 ` Corinna Vinschen
2012-05-09 18:39                   ` Achim Gratz
2012-06-26 16:37                   ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120508135544.GY18516@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).