delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/11/11/11:09:36

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Mon, 11 Nov 2002 11:09:45 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: ntsec patch #4: passwd and group
Message-ID: <20021111160945.GA16199@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <3DCBD52C DOT A1F794FD AT ieee DOT org> <20021108171918 DOT P21920 AT cygbert DOT vinschen DOT de> <3DCBEFF5 DOT 850B999E AT ieee DOT org> <20021111145612 DOT T10395 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
In-Reply-To: <20021111145612.T10395@cygbert.vinschen.de>
User-Agent: Mutt/1.5.1i

On Mon, Nov 11, 2002 at 02:56:12PM +0100, Corinna Vinschen wrote:
>On Fri, Nov 08, 2002 at 12:10:13PM -0500, Pierre A. Humblet wrote:
>> Corinna Vinschen wrote:
>> Can you elaborate? Why is it a problem to store them in the 
>> cygheap? 
>> I saw Chris' comments about slowing things down. That makes 
>> sense for programs that never stat or create a file with uid 
>> and gid different from the current user.
>> However when Chris was doing the test this caching mechanism
>> wasn't present yet, stating or creating any file would force
>> a passwd/group reread. So it's more surprising.
>
>AFAIR, Chris was surprised, too.  I don't know more details, though.

There is always a tradeoff between the overhead of ReadProcessMemory and
file I/O.  In this case, I guess file I/O from a file that was in cache
probably won.

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019