delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/27/03:59:44

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=wWcxHgApUVZyYcHYL5WqgamELWL8SgLFRGS0kAEUJTML0htDIHVZH
CE0Io1vzrrpmXMztgvIniIGMb4MEJUiaSPx37lI0w8kqMoTOX33rgzGSXz74tU6+
ytTPvHYr1RdzQkfoYktfl7p4O7bU/sGEHUcnuUJw3QQrMuRrdtYROU=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=QN5UR/1llzCaqsTXNmkRdyWhNB4=; b=OxXSdbcsLdsyFYp5zrHtxtESraKr
3UOX+3lCPTiMse7oabEKwJzpALBefIWALt5l1HD2pY31PZHza1efH4aF3HwfThDr
WtZYgCR3agTwlTXbjw1Hum/IOOge+GGVcykJ840M9wjkp5GZjjagL+FGl+3hjfYH
fI8CrTqSo8GrMbQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPAM_BODY1,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: Testers needed: New passwd/group handling in Cygwin
Date: Thu, 27 Feb 2014 08:58:53 +0000 (UTC)
Lines: 70
Message-ID: <loom.20140227T095414-414@post.gmane.org>
References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de> <87fvn7cb68 DOT fsf AT Rainer DOT invalid> <20140225200414 DOT GA4238 AT calimero DOT vinschen DOT de> <87y50zaqjb DOT fsf AT Rainer DOT invalid> <20140225215423 DOT GA6065 AT calimero DOT vinschen DOT de> <loom DOT 20140226T085959-119 AT post DOT gmane DOT org> <20140226100209 DOT GR2246 AT calimero DOT vinschen DOT de> <20140226135222 DOT GW2246 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Corinna Vinschen writes:
[...]
> With this patch applied, the aforementioned `id' now takes about 1.9
> secs, in an otherwise identical scenario.
[...]
> With this patch applied as well, `id' now takes constantly 0.4 secs.
> 
> Note that this speedup is only possible when fetching lots of group
> account information.  For user accounts we still need the info from AD,
> but apart from the getpwent functionality, which can be restricted via
> the db_enum setting in /etc/nsswitch.conf, there's not very often a good
> reason to fetch information for hundreds of user accounts.
> 
> Anyway, if I send you the link to two DLLs with these patches, would you
> mind to test their speed in your environment?

Thanks.  I'm basically seeing the same with your DLL snapshots, plus the
login times (each with an invocation of "id") are following suit.  It also
seems that our DC is a bit less loaded today.  Here are the results of doing
this:

foreach p ( `seq 1 10` )
 time id >/dev/null
end


"stock"

0.561u 0.514s 0:08.93 11.9%     0+0k 0+0io 7690pf+0w
0.499u 0.499s 0:09.04 10.8%     0+0k 0+0io 7717pf+0w
0.592u 0.686s 0:09.03 14.0%     0+0k 0+0io 7690pf+0w
0.639u 0.576s 0:09.18 13.0%     0+0k 0+0io 7698pf+0w
0.608u 0.390s 0:09.11 10.8%     0+0k 0+0io 7691pf+0w
0.577u 0.514s 0:09.03 11.9%     0+0k 0+0io 7048pf+0w
0.499u 0.468s 0:08.91 10.6%     0+0k 0+0io 7724pf+0w
0.498u 0.561s 0:08.84 11.8%     0+0k 0+0io 7744pf+0w
0.561u 0.405s 0:08.73 10.9%     0+0k 0+0io 6664pf+0w
0.452u 0.545s 0:08.96 11.0%     0+0k 0+0io 6968pf+0w


"getgroups"

0.249u 0.202s 0:03.33 13.2%     0+0k 0+0io 3506pf+0w
0.234u 0.296s 0:03.33 15.6%     0+0k 0+0io 3489pf+0w
0.171u 0.296s 0:03.26 14.1%     0+0k 0+0io 3493pf+0w
0.171u 0.265s 0:03.25 13.2%     0+0k 0+0io 3486pf+0w
0.156u 0.358s 0:03.33 15.0%     0+0k 0+0io 3486pf+0w
0.171u 0.265s 0:03.29 13.0%     0+0k 0+0io 3487pf+0w
0.311u 0.373s 0:03.46 19.6%     0+0k 0+0io 3506pf+0w
0.171u 0.217s 0:03.27 11.6%     0+0k 0+0io 3488pf+0w
0.234u 0.202s 0:03.36 12.7%     0+0k 0+0io 3491pf+0w
0.218u 0.202s 0:03.42 11.9%     0+0k 0+0io 3487pf+0w


"noldap"

0.249u 0.202s 0:03.33 13.2%     0+0k 0+0io 3506pf+0w
0.234u 0.296s 0:03.33 15.6%     0+0k 0+0io 3489pf+0w
0.171u 0.296s 0:03.26 14.1%     0+0k 0+0io 3493pf+0w
0.171u 0.265s 0:03.25 13.2%     0+0k 0+0io 3486pf+0w
0.156u 0.358s 0:03.33 15.0%     0+0k 0+0io 3486pf+0w
0.171u 0.265s 0:03.29 13.0%     0+0k 0+0io 3487pf+0w
0.311u 0.373s 0:03.46 19.6%     0+0k 0+0io 3506pf+0w
0.171u 0.217s 0:03.27 11.6%     0+0k 0+0io 3488pf+0w
0.234u 0.202s 0:03.36 12.7%     0+0k 0+0io 3491pf+0w
0.218u 0.202s 0:03.42 11.9%     0+0k 0+0io 3487pf+0w


Best regards,
Achim.


--
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