From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5456 invoked by alias); 27 Feb 2014 23:20:27 -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 5440 invoked by uid 89); 27 Feb 2014 23:20:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtpback.ht-systems.ru Received: from smtpback.ht-systems.ru (HELO smtpback.ht-systems.ru) (78.110.50.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 27 Feb 2014 23:20:23 +0000 Received: from [91.76.98.252] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) id 1WJAFS-0006X0-Uf for cygwin@cygwin.com; Fri, 28 Feb 2014 03:20:15 +0400 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 27 Feb 2014 23:12:19 -0000 Date: Thu, 27 Feb 2014 23:20:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <765945729.20140228031219@yandex.ru> To: Corinna Vinschen Subject: Re: Testers needed: New passwd/group handling in Cygwin In-Reply-To: <20140227134632.GG2246@calimero.vinschen.de> References: <20140225200414.GA4238@calimero.vinschen.de> <87y50zaqjb.fsf@Rainer.invalid> <20140225215423.GA6065@calimero.vinschen.de> <20140226100209.GR2246@calimero.vinschen.de> <20140226135222.GW2246@calimero.vinschen.de> <20140227094951.GD2246@calimero.vinschen.de> <20140227134632.GG2246@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00729.txt.bz2 Greetings, Corinna Vinschen! >> > 1 second? That sounds still a bit slow. Considering that I'm now >> > member of 414 groups, and you are member of 440 groups, the extra number >> > of groups cannot account for that. >> > >> > This sounds surprisingly as if the >> > names of some of your groups are not cached on your machine. Or >> > something. Or is this a rather slow machine?!? >> >> It's not a slow machine by any means, but it certainly gets its fair share >> of security policies, so it may have something to do with that. I don't know. >> >> > Still, it seems like the right thing to do to drop the group name >> > configuration stuff entirely. >> >> Yes (unless you'd want to make it configurable like the getpwent stuff). > Nah, not really. As I said, I'm questioning some of the old functionality > anyway, and the less we have to ask AD the better for us. > I applied my patch which removes this group name change facility from AD > and uploaded a new snapshot to http://cygwin.com/snapshots/. > While we're at it, I just had this weird idea. > What if, as soon as the first Cygwin process in a process tree starts, > this process not only caches the primary group info, but also caches all > supplementary groups from the user's token? This would slow down > startup of the first process slightly, but it would speed up any > subsequent request for group information of a group in the user's token. > An `id' call would be almost instant, and `ls' calls would probably be > faster as well. Umhm. I'd have to see, how slightly. Because my primary use of Cygwin tools does not expect to have a parent Cygwin process. (I.e. diff'ing between file manager panels.) > As always, there's a trade-off: Users running cygwin processes from CMD > a lot would encounter a slowdown. > What do you think, guys? Needs some tests. I would certainly appreciate faster initial startups, but if the delay is manageable, I can cope with more long-term friendly approach. I've got entangled in current work and lost track of snapshots for now. If there's some DEF's in library, that I can toggle and rebuild it with certain features enabled and disable for local test, I'd be glad to have a round at it over weekend. -- WBR, Andrey Repin (anrdaemon@yandex.ru) 28.02.2014, <03:06> Sorry for my terrible english... -- 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