public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: cygwin randomly pauses under Win2k
       [not found] <200204161603.MAA27469@acestes-fe0.ultra.net>
@ 2002-04-16  9:45 ` Larry Hall (RFK Partners, Inc)
  2002-04-17 10:01   ` Mark Paulus
       [not found]   ` <200204171655.MAA15550@acestes-fe0.ultra.net>
  0 siblings, 2 replies; 16+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-16  9:45 UTC (permalink / raw)
  To: Mark Paulus, cygwin

At 12:03 PM 4/16/2002, Mark Paulus wrote:
>I have this wierd behaviour, and it is causing some stats that I 
>run to whack out.....
>
>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:


If you're interested in trying to track down why you see this behavior, you
might want to try running with strace.  With it, you should be able to 
pinpoint any Cygwin internals that are in force when you see this pause.


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-16  9:45 ` cygwin randomly pauses under Win2k Larry Hall (RFK Partners, Inc)
@ 2002-04-17 10:01   ` Mark Paulus
       [not found]   ` <200204171655.MAA15550@acestes-fe0.ultra.net>
  1 sibling, 0 replies; 16+ messages in thread
From: Mark Paulus @ 2002-04-17 10:01 UTC (permalink / raw)
  To: cygwin, Larry Hall (RFK Partners, Inc)

Great!

I set up a strace on the 'doit script', and the very act of
running strace seems to make everything behave as 
expected.  But, I can't run this thing all the time, as 
strace generates a small quantity of output.
Oh well, I'll keep monitoring it for a while and see what
comes out.....




On Tue, 16 Apr 2002 12:17:11 -0400, Larry Hall (RFK Partners, Inc) wrote:

>At 12:03 PM 4/16/2002, Mark Paulus wrote:
>>I have this wierd behaviour, and it is causing some stats that I 
>>run to whack out.....
>>
>>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:
>
>
>If you're interested in trying to track down why you see this behavior, you
>might want to try running with strace.  With it, you should be able to 
>pinpoint any Cygwin internals that are in force when you see this pause.
>
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>838 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>--
>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/
>




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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
       [not found]   ` <200204171655.MAA15550@acestes-fe0.ultra.net>
@ 2002-04-17 10:33     ` Larry Hall (RFK Partners, Inc)
  2002-04-17 11:14       ` Mark Paulus
  0 siblings, 1 reply; 16+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-17 10:33 UTC (permalink / raw)
  To: Mark Paulus, cygwin

Yep.  That's the occasional detriment of strace.  It hides the problem you're
looking to track.  I wouldn't dismiss it's potential as a solution for your
problem so quickly though.  strace with a much larger disk and a top-of-the-
line processor is a clear win! ;-)

Sorry it wasn't more help to you.

Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX



At 12:56 PM 4/17/2002, Mark Paulus wrote:
>Great!
>
>I set up a strace on the 'doit script', and the very act of
>running strace seems to make everything behave as 
>expected.  But, I can't run this thing all the time, as 
>strace generates a small quantity of output.
>Oh well, I'll keep monitoring it for a while and see what
>comes out.....
>
>
>
>
>On Tue, 16 Apr 2002 12:17:11 -0400, Larry Hall (RFK Partners, Inc) wrote:
>
> >At 12:03 PM 4/16/2002, Mark Paulus wrote:
> >>I have this wierd behaviour, and it is causing some stats that I 
> >>run to whack out.....
> >>
> >>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:
> >
> >
> >If you're interested in trying to track down why you see this behavior, you
> >might want to try running with strace.  With it, you should be able to 
> >pinpoint any Cygwin internals that are in force when you see this pause.
> >
> >
> >Larry Hall                              lhall@rfk.com
> >RFK Partners, Inc.                      http://www.rfk.com
> >838 Washington Street                   (508) 893-9779 - RFK Office
> >Holliston, MA 01746                     (508) 893-9889 - FAX
> >
> >
> >--
> >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/
> >
>


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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-17 10:33     ` Larry Hall (RFK Partners, Inc)
@ 2002-04-17 11:14       ` Mark Paulus
  0 siblings, 0 replies; 16+ messages in thread
From: Mark Paulus @ 2002-04-17 11:14 UTC (permalink / raw)
  To: cygwin, Larry Hall (RFK Partners, Inc)

Ah yes.  My instructor for our Advanced Unix course
was always fond of stating:  "It is perfectly acceptable
to smother your performance problems with hardware."


On Wed, 17 Apr 2002 12:59:10 -0400, Larry Hall (RFK Partners, Inc) wrote:

>Yep.  That's the occasional detriment of strace.  It hides the problem you're
>looking to track.  I wouldn't dismiss it's potential as a solution for your
>problem so quickly though.  strace with a much larger disk and a top-of-the-
>line processor is a clear win! ;-)
>
>Sorry it wasn't more help to you.
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>838 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>
>At 12:56 PM 4/17/2002, Mark Paulus wrote:
>>Great!
>>
>>I set up a strace on the 'doit script', and the very act of
>>running strace seems to make everything behave as 
>>expected.  But, I can't run this thing all the time, as 
>>strace generates a small quantity of output.
>>Oh well, I'll keep monitoring it for a while and see what
>>comes out.....
>>
>>
>>
>>
>>On Tue, 16 Apr 2002 12:17:11 -0400, Larry Hall (RFK Partners, Inc) wrote:
>>
>> >At 12:03 PM 4/16/2002, Mark Paulus wrote:
>> >>I have this wierd behaviour, and it is causing some stats that I 
>> >>run to whack out.....
>> >>
>> >>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:
>> >
>> >
>> >If you're interested in trying to track down why you see this behavior, you
>> >might want to try running with strace.  With it, you should be able to 
>> >pinpoint any Cygwin internals that are in force when you see this pause.
>> >
>> >
>> >Larry Hall                              lhall@rfk.com
>> >RFK Partners, Inc.                      http://www.rfk.com
>> >838 Washington Street                   (508) 893-9779 - RFK Office
>> >Holliston, MA 01746                     (508) 893-9889 - FAX
>> >
>> >
>> >--
>> >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/
>> >
>>
>




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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-18 11:17 Heribert Dahms
@ 2002-04-18 12:39 ` Chris January
  0 siblings, 0 replies; 16+ messages in thread
From: Chris January @ 2002-04-18 12:39 UTC (permalink / raw)
  To: cygwin

> Anti Virus?
Yes, I'll wager that's it - the program I saw this in was lstat'ing DLL
files...

Chris



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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* RE: cygwin randomly pauses under Win2k
@ 2002-04-18 11:17 Heribert Dahms
  2002-04-18 12:39 ` Chris January
  0 siblings, 1 reply; 16+ messages in thread
From: Heribert Dahms @ 2002-04-18 11:17 UTC (permalink / raw)
  To: 'Chris January', cygwin

Anti Virus?

Bye, Heribert (heribert_dahms@icon-scm.com)

> -----Original Message-----
> From:	Chris January [SMTP:chris@atomice.net]
> Sent:	Thursday, April 18, 2002 18:30
> To:	cygwin@cygwin.com
> Subject:	Re: cygwin randomly pauses under Win2k
> 
> > >> 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:
> 
	[Heribert]  [snip]
>  
> I inserted some extra syscall_printf statements and it actually stalls on
> this line... (!)
>   x = CreateFile (get_win32_name (), access, shared, &sa,
> creation_distribution,
>           file_attributes, 0);
> This is with a local drive, not a network one. I have no idea why
> CreateFile
> is taking so long.
> 
	[Heribert]  [snip] 

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-18  9:17     ` Corinna Vinschen
@ 2002-04-18  9:59       ` Christopher Faylor
  0 siblings, 0 replies; 16+ messages in thread
From: Christopher Faylor @ 2002-04-18  9:59 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-18  8:57   ` Christopher Faylor
  2002-04-18  9:17     ` Corinna Vinschen
@ 2002-04-18  9:40     ` Chris January
  1 sibling, 0 replies; 16+ messages in thread
From: Chris January @ 2002-04-18  9:40 UTC (permalink / raw)
  To: cygwin

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

I inserted some extra syscall_printf statements and it actually stalls on
this line... (!)
  x = CreateFile (get_win32_name (), access, shared, &sa,
creation_distribution,
          file_attributes, 0);
This is with a local drive, not a network one. I have no idea why CreateFile
is taking so long.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-18  8:42 ` Chris January
  2002-04-18  8:57   ` Christopher Faylor
@ 2002-04-18  9:26   ` Mark Paulus
  1 sibling, 0 replies; 16+ messages in thread
From: Mark Paulus @ 2002-04-18  9:26 UTC (permalink / raw)
  To: Chris January, cygwin

Chris J (Not to be confused with Chris F),

How about sending along the source code for your small program,
so I can give it a wiz-bang.  So far, running strace on my system
seems to make the problem I have go away, so if you can readily 
reproduce the behaviour, I would like to try it on my system.

Thanks.


On Thu, 18 Apr 2002 16:31:56 +0100, Chris January wrote:

>> I have this wierd behaviour, and it is causing some stats that I
>> run to whack out.....
>>
>> 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:
>
>> What's interesting is that between seconds 42 & 45,
>> time shows an elapsed time of 1:00.21, but the system clock has
>> actually elapsed 2 minutes & 50 seconds, (unless there is some
>> major hangups in the invoking of the echo and/or `date` commands).
>>
>> I am working on this machine, so I know that there are no 2-3 minute
>> pauses in user responsiveness....
>>
>> Has anyone else experienced this kind of 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:
>
>   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)
> 1287 19150336 [main] base 2872 fhandler_base::open: filemode set to binary
>  192 19150528 [main] base 2872 fhandler_base::open: 1 = fhandler_base::open
>(C:\cygwin\opt\kde2\lib\cygkatecore.dll, 0x
>110000)
>   89 19150617 [main] base 2872 fhandler_disk_file::open: 1 =
>fhandler_disk_file::open (C:\cygwin\opt\kde2\lib\cygkateco
>re.dll, 0x110000)
>  136 19150753 [main] base 2872 fhandler_disk_file::fstat_helper: 1 =
>GetFileInformationByHandle (C:\cygwin\opt\kde2\lib
>\cygkatecore.dll, 412)
>  424 19151177 [main] base 2872 get_nt_attribute: file:
>C:\cygwin\opt\kde2\lib\cygkatecore.dll
>  208 19151385 [main] base 2872 read_sd: file =
>C:\cygwin\opt\kde2\lib\cygkatecore.dll
> 1385 19152770 [main] base 2872 read_sd: file =
>C:\cygwin\opt\kde2\lib\cygkatecore.dll: len=128
>
>Regards
>Chris
>
>
>
>--
>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/
>




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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-18  8:57   ` Christopher Faylor
@ 2002-04-18  9:17     ` Corinna Vinschen
  2002-04-18  9:59       ` Christopher Faylor
  2002-04-18  9:40     ` Chris January
  1 sibling, 1 reply; 16+ messages in thread
From: Corinna Vinschen @ 2002-04-18  9:17 UTC (permalink / raw)
  To: cygwin

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.

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

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-18  8:42 ` Chris January
@ 2002-04-18  8:57   ` Christopher Faylor
  2002-04-18  9:17     ` Corinna Vinschen
  2002-04-18  9:40     ` Chris January
  2002-04-18  9:26   ` Mark Paulus
  1 sibling, 2 replies; 16+ messages in thread
From: Christopher Faylor @ 2002-04-18  8:57 UTC (permalink / raw)
  To: cygwin

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.

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

cgf

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
       [not found] <E16xVQZ-0005tK-00@m1.dnsix.com>
@ 2002-04-18  8:42 ` Chris January
  2002-04-18  8:57   ` Christopher Faylor
  2002-04-18  9:26   ` Mark Paulus
  0 siblings, 2 replies; 16+ messages in thread
From: Chris January @ 2002-04-18  8:42 UTC (permalink / raw)
  To: cygwin

> I have this wierd behaviour, and it is causing some stats that I
> run to whack out.....
>
> 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:

> What's interesting is that between seconds 42 & 45,
> time shows an elapsed time of 1:00.21, but the system clock has
> actually elapsed 2 minutes & 50 seconds, (unless there is some
> major hangups in the invoking of the echo and/or `date` commands).
>
> I am working on this machine, so I know that there are no 2-3 minute
> pauses in user responsiveness....
>
> Has anyone else experienced this kind of 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:

   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)
 1287 19150336 [main] base 2872 fhandler_base::open: filemode set to binary
  192 19150528 [main] base 2872 fhandler_base::open: 1 = fhandler_base::open
(C:\cygwin\opt\kde2\lib\cygkatecore.dll, 0x
110000)
   89 19150617 [main] base 2872 fhandler_disk_file::open: 1 =
fhandler_disk_file::open (C:\cygwin\opt\kde2\lib\cygkateco
re.dll, 0x110000)
  136 19150753 [main] base 2872 fhandler_disk_file::fstat_helper: 1 =
GetFileInformationByHandle (C:\cygwin\opt\kde2\lib
\cygkatecore.dll, 412)
  424 19151177 [main] base 2872 get_nt_attribute: file:
C:\cygwin\opt\kde2\lib\cygkatecore.dll
  208 19151385 [main] base 2872 read_sd: file =
C:\cygwin\opt\kde2\lib\cygkatecore.dll
 1385 19152770 [main] base 2872 read_sd: file =
C:\cygwin\opt\kde2\lib\cygkatecore.dll: len=128

Regards
Chris



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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
  2002-04-17 12:07 ` Marc Chantreux
@ 2002-04-17 12:43   ` Randall R Schulz
  0 siblings, 0 replies; 16+ messages in thread
From: Randall R Schulz @ 2002-04-17 12:43 UTC (permalink / raw)
  To: Marc Chantreux, cygwin

Marc,

Yes.

% strace --version
trace V1.0, Copyright (C) 2001, 2002 Red Hat Inc., Feb 25 2002

% strace --help
Usage: strace [OPTIONS] <command-line>
  -b, --buffer-size=SIZE       set size of output file buffer
  -d, --no-delta               don't display the delta-t microsecond timestamp
  -f, --trace-children         also trace forked child processes
  -h, --help                   display this help info
  -m, --mask=MASK              set message filter mask
  -o, --output=FILENAME        set output file to FILENAME
  -p, --pid=n                  attach to executing program with cygwin pid n
  -n, --crack-error-numbers    output descriptive text instead of error
                               numbers for Windows errors
  -S, --flush-period=PERIOD    flush buffered strace output every PERIOD secs
  -t, --timestamp              use an absolute hh:mm:ss timestamp insted of the
                               default microsecond timestamp.  Implies -d
  -v, --version                display version info
  -w, --new-window             spawn program under test in a new window

    MASK can be any combination of the following mnemonics and/or hex values
    (0x is optional).  Combine masks with '+' or ',' like so:

                      --mask=wm+system,malloc+0x00800

    Mnemonic Hex     Corresponding Def  Description
    =========================================================================
    all      0x00001 (_STRACE_ALL)      All strace messages.
    flush    0x00002 (_STRACE_FLUSH)    Flush output buffer after each message.
    inherit  0x00004 (_STRACE_INHERIT)  Children inherit mask from parent.
    uhoh     0x00008 (_STRACE_UHOH)     Unusual or weird phenomenon.
    syscall  0x00010 (_STRACE_SYSCALL)  System calls.
    startup  0x00020 (_STRACE_STARTUP)  argc/envp printout at startup.
    debug    0x00040 (_STRACE_DEBUG)    Info to help debugging.
    paranoid 0x00080 (_STRACE_PARANOID) Paranoid info.
    termios  0x00100 (_STRACE_TERMIOS)  Info for debugging termios stuff.
    select   0x00200 (_STRACE_SELECT)   Info on ugly select internals.
    wm       0x00400 (_STRACE_WM)       Trace Windows msgs (enable _strace_wm).
    sigp     0x00800 (_STRACE_SIGP)     Trace signal and process handling.
    minimal  0x01000 (_STRACE_MINIMAL)  Very minimal strace output.
    exitdump 0x04000 (_STRACE_EXITDUMP) Dump strace cache on exit.
    system   0x08000 (_STRACE_SYSTEM)   Serious error which goes to console and log.
    nomutex  0x10000 (_STRACE_NOMUTEX)  Don't use mutex for synchronization.
    malloc   0x20000 (_STRACE_MALLOC)   Trace malloc calls.
    thread   0x40000 (_STRACE_THREAD)   Thread-locking calls.


Randall Schulz
Mountain View, CA USA


At 11:55 2002-04-17, Marc Chantreux wrote:
>is strace/ltrace available on cygwin ??? :)
>
>I've just run the setup.exe but i don't find it ! not more on the web:(
>
>Marc


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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
       [not found] <3CB43BBD0072ED1B@>
@ 2002-04-17 12:07 ` Marc Chantreux
  2002-04-17 12:43   ` Randall R Schulz
  0 siblings, 1 reply; 16+ messages in thread
From: Marc Chantreux @ 2002-04-17 12:07 UTC (permalink / raw)
  To: cygwin

is strace/ltrace available on cygwin ??? :)

I've just run the setup.exe but i don't find it !
not more on the web :(

Marc


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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: cygwin randomly pauses under Win2k
       [not found] <20020416160351.C85D922A45@flognat.myip.org>
@ 2002-04-16 10:45 ` Andrew Markebo
  0 siblings, 0 replies; 16+ messages in thread
From: Andrew Markebo @ 2002-04-16 10:45 UTC (permalink / raw)
  To: Mark Paulus; +Cc: cygwin

/ "Mark Paulus" <mpaulus78@earthlink.net> wrote:
| I have this wierd behaviour, and it is causing some stats that I 
| run to whack out.....
| 
| 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:

Just a quick thought, could it be something being done over the
network? Like saving the history to a network mounted homedir, is
cygwin local, or on network? 

        /Andy

-- 
 The eye of the beholder rests on the beauty!

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

^ permalink raw reply	[flat|nested] 16+ messages in thread

* cygwin randomly pauses under Win2k
@ 2002-04-16  9:18 Mark Paulus
  0 siblings, 0 replies; 16+ messages in thread
From: Mark Paulus @ 2002-04-16  9:18 UTC (permalink / raw)
  To: cygwin

I have this wierd behaviour, and it is causing some stats that I 
run to whack out.....

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:

$ cat doit
#!/usr/bin/bash
while [ 1 ]
do
    echo `date` Starting >> doit.log
    /usr/bin/time -o doit.log -a sleep 60
    echo `date` Ending >> doit.log
done

I have also written a quick sed script to filter the output from time:
$ cat gettimes
#!/usr/bin/sed -f
s/^.* \([^ ]*\)elapsed .*$/\1 elapsed/
/^0inputs.*$/d

And here is some of the offending output
Tue Apr 16 09:40:53 2002 Starting
1:00.13 elapsed
Tue Apr 16 09:41:54 2002 Ending
Tue Apr 16 09:41:54 2002 Starting
1:00.11 elapsed
Tue Apr 16 09:42:55 2002 Ending
Tue Apr 16 09:42:55 2002 Starting
1:00.21 elapsed
Tue Apr 16 09:45:45 2002 Ending
Tue Apr 16 09:45:46 2002 Starting
1:00.16 elapsed
Tue Apr 16 09:46:46 2002 Ending
Tue Apr 16 09:46:47 2002 Starting
1:00.16 elapsed
Tue Apr 16 09:47:47 2002 Ending

What's interesting is that between seconds 42 & 45, 
time shows an elapsed time of 1:00.21, but the system clock has
actually elapsed 2 minutes & 50 seconds, (unless there is some
major hangups in the invoking of the echo and/or `date` commands).

I am working on this machine, so I know that there are no 2-3 minute
pauses in user responsiveness....

Has anyone else experienced this kind of behaviour??

Thanks.



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

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2002-04-18 19:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200204161603.MAA27469@acestes-fe0.ultra.net>
2002-04-16  9:45 ` cygwin randomly pauses under Win2k Larry Hall (RFK Partners, Inc)
2002-04-17 10:01   ` Mark Paulus
     [not found]   ` <200204171655.MAA15550@acestes-fe0.ultra.net>
2002-04-17 10:33     ` Larry Hall (RFK Partners, Inc)
2002-04-17 11:14       ` Mark Paulus
2002-04-18 11:17 Heribert Dahms
2002-04-18 12:39 ` Chris January
     [not found] <E16xVQZ-0005tK-00@m1.dnsix.com>
2002-04-18  8:42 ` Chris January
2002-04-18  8:57   ` Christopher Faylor
2002-04-18  9:17     ` Corinna Vinschen
2002-04-18  9:59       ` Christopher Faylor
2002-04-18  9:40     ` Chris January
2002-04-18  9:26   ` Mark Paulus
     [not found] <3CB43BBD0072ED1B@>
2002-04-17 12:07 ` Marc Chantreux
2002-04-17 12:43   ` Randall R Schulz
     [not found] <20020416160351.C85D922A45@flognat.myip.org>
2002-04-16 10:45 ` Andrew Markebo
  -- strict thread matches above, loose matches on Subject: below --
2002-04-16  9:18 Mark Paulus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).