From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10207 invoked by alias); 18 Apr 2002 16:43:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 10153 invoked from network); 18 Apr 2002 16:43:48 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 18 Apr 2002 16:43:48 -0000 Received: from redhat.com (vpn50-2.rdu.redhat.com [172.16.50.2]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g3IGhlk24952 for ; Thu, 18 Apr 2002 12:43:47 -0400 Received: by redhat.com (Postfix, from userid 201) id 51D941B9C3; Thu, 18 Apr 2002 12:09:29 -0400 (EDT) Date: Thu, 18 Apr 2002 09:59:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: cygwin randomly pauses under Win2k Message-ID: <20020418160929.GC32528@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <00df01c1e6ee$2d1c7850$0100a8c0@advent02> <20020418155243.GC30868@redhat.com> <20020418180155.E24044@cygbert.vinschen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020418180155.E24044@cygbert.vinschen.de> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-04/txt/msg00960.txt.bz2 On Thu, Apr 18, 2002 at 06:01:55PM +0200, Corinna Vinschen wrote: >On Thu, Apr 18, 2002 at 11:52:43AM -0400, Chris Faylor wrote: >>On Thu, Apr 18, 2002 at 04:31:56PM +0100, Chris January wrote: >>>>Every now and again (every 15-30 minutes or so), my cygwin apps pause >>>>for 1-2 MINUTES.... I have written a simple script to capture this >>>>behaviour: >>> >>>Yes, I've seen this behaviour. It's something to do with file I/O >>>IIRC. 100% reproducible in a small program I have. Here's an strace >>>demonstrating the problem: >> >>From the code, the only thing here that I can see which could take any >>time is the set_security_attribute() call, which is only invoked if you >>have CYGWIN=ntsec. > >And the only thing in set_security_attribute() which could take a lot >of time is the call to LookupAccountName() which is only called if the >/etc/passwd file doesn't contain the SID for the user *and* which can >only take a lot of time if the machine is asking a DC. > >OTOH, set_security_attribute() cant have been called, otherwise it >would have left footprints in the strace output. Oops. Good point. So much for my detective work. So the only other thing I can see is either the GetFileAttributes or the CreateFile itself. Not much we can do about either of those. cgf >>> 97 7911229 [main] base 2872 fhandler_base::open:(C:\cygwin\opt\kde2\lib\cygkatecore.dll, 0x110000) >>>*** big long pause *** >>>11237820 19149049 [main] base 2872 fhandler_base::open: 0x19C = CreateFileA (C:\cygwin\opt\kde2\lib\cygkatecore.dll, 0x8>0000000, 0x7, 0x22F764, 0x3, 0x2000080, 0) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/