delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/31/23:40:24

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:message-id:from:to:subject:in-reply-to
:references:date; q=dns; s=default; b=kPTCY6MAnaT0lAfP5txv66m72d
bnLJpglVwGWqWcJSYDw1prheXCmP4ml0h5Zrleo/Yxq3WnlYIFo5BrqlAfGbJiSX
Ps6U1vM70Zd34AjITW1AGK+duunoztzGzejpERICs5jWbVQ0TGcnXLIS4PPJDbuQ
eiYEAAkB0aLoBHp2c=
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:message-id:from:to:subject:in-reply-to
:references:date; s=default; bh=31+u8k6oXijoJ5QYImwYRiuPZxY=; b=
cdmaAx7LI1TH0BZA22OdklAkYqxfl6w/evcQ6O6eXDqrXHTcyJhaP/g+BfstjUcP
BBWmjFLd49bEdlxYIB9ENkjKILBkCqjZ1+fQ2LPTI2UA2g2FE5A8LC+ieKs9WnlF
6gNQJpNmWkiBcwQ15vLKcY5P8Jlk8ojUCthJJCdha90=
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=-0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: nm21-vm7.access.bullet.mail.bf1.yahoo.com
Message-ID: <474284.3203.bm@smtp119.sbc.mail.ne1.yahoo.com>
X-Yahoo-SMTP: BDVluRmswBBpb4.UU1_zlPhs_ysfXcBVjBNXyWpyS_6pPgE-
X-Rocket-Received: from solabel10.tnolan.com (tednolan AT 74 DOT 243 DOT 198 DOT 131 with plain [98.138.84.52]) by smtp119.sbc.mail.ne1.yahoo.com with SMTP; 01 Feb 2014 04:40:02 +0000 UTC
From: tednolan AT bellsouth DOT net
To: cygwin AT cygwin DOT com
Subject: Re: How big are your /etc/passwd and /etc/group files?
In-reply-to: <52EC4727.2000308@gmail.com>
References: <20140131203738 DOT GA8707 AT calimero DOT vinschen DOT de> <CAKf2h5R-FuQX9W=ojw4+ez8gqOHjwYshMh3FmmfNu3r12sRFeQ AT mail DOT gmail DOT com> <20140131220314 DOT GH2821 AT calimero DOT vinschen DOT de> <52EC4727 DOT 2000308 AT gmail DOT com>
Comments: In-reply-to Max Polk <maxpolk AT gmail DOT com> message dated "Fri, 31 Jan 2014 20:00:23 -0500."
Date: Fri, 31 Jan 2014 23:13:49 -0500
X-IsSubscribed: yes

In message <52EC4727 DOT 2000308 AT gmail DOT com>you write:
>On 1/31/2014 5:03 PM, Corinna Vinschen wrote:
>> On Jan 31 22:40, Frank Fesevur wrote:
>>> 2014-01-31 Corinna Vinschen:
>>>>    Is anybody here who's using /etc/passwd and/or group files
>>>>    of more than 16K in size?
>>> The new way to store the stuff would make Cygwin definitely faster, 
>>> but it would struggle with... uhm... 2.6 Megs file on the 32 bit 
>>> version of Cygwin, Hmm. I'm wondering how to solve that elegantly. 
>>> Corinna 
>
>Every process needs to load only the current user's entry up front. 
>Somewhere down the road it only *might* have to do things like translate 
>from uid/gid into a string for directory listings, in some cases only a 
>handful of these translations.  It's essentially a (old dbm style unix) 
>database lookup.
>
>So defer the database lookups to a libgdbm that goes against a (old dbm 
>style unix) database, and don't keep that in memory, unless you want a 
>small LRU algorithm in there to keep a small fixed number.  I bet the 
>tiny delay later on a ls or other unix translation won't be very noticeable.
>

Maybe an /etc/nsswitch.conf to choose the desired behavior?

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