X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=G4U2EVcnjFBGLas/34fK+QZMKtOtEr1mUzx2c5TTggOF0NqY7fOfz 0Tq0aLefzysL3Gv4F3ieI4vEE30UI5hnRs/+XhLgSXsOn/6iEtjaHd7YOF7OqrTx He5qotqLRvrgjdMSp4ZQIQ1wHDFtIeiBNJd8fWitCrryXxCdjjIkGg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=j5eXtpTIB+IK4IfzJGgypwjADmk=; b=uQte9O1wWJeQLeM6WrQgiscoNMX/ 6vg0iBy/I6awKIuLOfqD0FmJxkZvuNmZciCtraNxONTTh/Xp9ub0YcoGRvywUT8A dF0YfJkg67yS568FAt2EF74UudVlSMEvOMkpodUO+Oo9pymsvzVC/fGzwlx7c76d rRK1/n/Xmvgk7+4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Fri, 28 Feb 2014 13:07:48 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Testers needed: New passwd/group handling in Cygwin Message-ID: <20140228120748.GN2246@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20140225215423 DOT GA6065 AT calimero DOT vinschen DOT de> <20140226100209 DOT GR2246 AT calimero DOT vinschen DOT de> <20140226135222 DOT GW2246 AT calimero DOT vinschen DOT de> <20140227094951 DOT GD2246 AT calimero DOT vinschen DOT de> <20140227134632 DOT GG2246 AT calimero DOT vinschen DOT de> <765945729 DOT 20140228031219 AT yandex DOT ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n9CNlyQeypRpBagv" Content-Disposition: inline In-Reply-To: <765945729.20140228031219@yandex.ru> User-Agent: Mutt/1.5.21 (2010-09-15) --n9CNlyQeypRpBagv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 28 03:12, Andrey Repin wrote: > Greetings, Corinna Vinschen! > > While we're at it, I just had this weird idea. >=20 > > 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. >=20 > Umhm. I'd have to see, how slightly. Because my primary use of Cygwin too= ls > does not expect to have a parent Cygwin process. (I.e. diff'ing between > file manager panels.) >=20 > > As always, there's a trade-off: Users running cygwin processes from CMD > > a lot would encounter a slowdown. >=20 > > What do you think, guys? >=20 > Needs some tests. I would certainly appreciate faster initial startups, b= ut 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 c= ertain > features enabled and disable for local test, I'd be glad to have a round = at it > over weekend. I've just uploaded a new snapshot to http://cygwin.com/snapshots/ It allows you to do the following in /etc/nsswitch.conf: db_cache: no No caching of passwd and group data at all db_cache: yes Caching of passwd and group data, no initial caching of the user's supplementary groups from the user token. db_cache: full This is the default now. Caching of passwd and group data *plus* initial caching of all groups from the user token. Please try it out. Average timings from your environment (process startup, and calling `id') would be nice. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --n9CNlyQeypRpBagv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTEHwUAAoJEPU2Bp2uRE+gb8QP/jiZBHrydGLrvNG+tKoPjXZa 7+YznClblCgnUHwJq4hUJ9sUnJ8Iht1iU7IgsVKccRgNSYee8UQvBU6muwi4JQ2e YUd3tNloPburxcAcctkY/y1yNjOrqUYWy2+js2ehC3FwI5ybA3/OOmWTIxRvFHjM zZ4HfuSjK4gUADIjDs8E1WJkL7Aedb6KHng208t6sTHfcDEAQaN2G+HfuCbaen5g sZQpWydpJx0nG2HkgtQIM3CcuJtSQaH2UNKpTEkUQKooFnfBoiGVhV8EPvjNhL89 fqwvuKSPa5CE4AINNTCuSJSGTOG7UwvVUUvN2NEkpyvesxqJYyPJve1rm/Z/UbCC Lcac2HoOgOmgZqc6tCRTz02hwKT+ba7bNA5jiu1hTF/4dKfQe8u6dE3Feqxs1YKU kqiHG2qFT2sjEZPGr+7gWO07QpYFssOgFdQQLAGuuJv8jtwvv+6OHwG9iE5yNttC k87h4CDcvU6L5pH2qYyO+wDSQQ+hQAsWQKkQM2frdf5GPwKMRwKIlx4wDDpqkguS GUdS42Ymbzxg9O9GiedRIuQMozznQ3ybuGSyWECXfUT5V2hzQh4EiWiryI96xfn/ 57J3eza/0daG+bIPtpPGirFMKcknX8J6UHDcV8aYoUUyk1YbC12VxJe8NNEzemdc m+A/SbZD02fuhpKvw6V/ =ZJrK -----END PGP SIGNATURE----- --n9CNlyQeypRpBagv--