public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
To: cygwin@cygwin.com
Subject: Re: Machine very sluggish while compiling
Date: Sun, 04 Dec 2011 20:23:00 -0000	[thread overview]
Message-ID: <4EDBD69D.4020004@cs.utoronto.ca> (raw)
In-Reply-To: <4EDBD5A5.2000707@cs.utoronto.ca>

Trying again without the verboten 80kB PNG attachment...

On 04/12/2011 3:18 PM, Ryan Johnson wrote:
> On 04/12/2011 2:29 PM, Christopher Faylor wrote:
>> On Sun, Dec 04, 2011 at 02:55:13AM -0500, Ryan Johnson wrote:
>>> On 25/11/2011 10:47 AM, Spiro Trikaliotis wrote:
>>>> Hello,
>>>>
>>>> * On Thu, Nov 24, 2011 at 07:59:58PM -0500 Ryan Johnson wrote:
>>>>
>>>>> Lately I've noticed that running make -j4 on my quad-core win7-x64
>>>>> machine causes it to become sluggish or even unresponsive.
>>>> I have seen very similar effects on my Win7-64 box. I can force the
>>>> problem here just be running "ccrypt", though, I do not need to use 
>>>> "make
>>>> -j4".
>>>>
>>>> I assume it has to do with the Windows 64 bit problems of Cygwin 
>>>> (search
>>>> the ML archives for that).
>>>>
>>>> For me, this is the first machine since years where I do not use 
>>>> Cygwin
>>>> because of this issue.
>>> Update: I hit the problem again, this time running python, and the
>>> problem is repeatable with the native 64-bit windows python 
>>> interpreter.
>>> It looks like cygwin doesn't cause the problem, but rather my high-cpu
>>> tasks tend to run under cygwin. Honestly, I wouldn't expect cygwin 
>>> to be
>>> the cause, given that it's a user space only piece of software!
>>>
>>> Now what other entity could be the cause, I haven't a clue... process
>>> explorer doesn't show anything. Maybe that's because it's frozen along
>>> with the rest of the world during these episodes; right as it comes 
>>> back
>>> I see context switch deltas above 100k for the interrupt/DPC module,
>>> which suggests I've got a wonky driver somewhere.
>> Out of curiousity, is the current snapshot any better?  I just found a
>> case where Cygwin could essentially enter a tight loop while waiting for
>> I/O.  It would seem to be working correctly but it would use a lot of
>> CPU time.
> Again, I'm no longer convinced that this is Cygwin's fault -- it just 
> so happened that all my CPU-intensive tasks were cygwin apps. I'm 
> starting to notice a pattern, though: with three cpu-bound apps 
> running, my laptop's fan comes on every two minutes (precisely). About 
> five seconds later, the frequency drops by 50% and cpu util promptly 
> saturates as a result. After one minute of this, the frequency hikes 
> back up and we're good... until the cycle repeats a minute later (see 
> the attached snippet of screen shot).
>
> So, the questions are how come:
> - power/heat management isn't giving the fan a chance to work before 
> clamping the clock frequency?
> - scheduler can't cope better with 100% cpu util?
>
> While I'm glad to take any expert advice people might have, I think we 
> can close this thread as far as Cygwin is concerned.
>
> BTW, Corinna's advice to disable PCA did help somewhat (and 
> Firefox/Thunderbird util dropped as well as a bonus). However, it's 
> probably only a treatment of symptoms in my case; I already had 
> superfetch disabled.
>
> Thanks,
> Ryan
>


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

  parent reply	other threads:[~2011-12-04 20:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-25  4:07 Ryan Johnson
2011-11-25  4:17 ` Mike
2011-11-25  7:22   ` Ryan Johnson
2011-11-25 15:48 ` Spiro Trikaliotis
2011-12-04  7:55   ` Ryan Johnson
2011-12-04 10:07     ` Corinna Vinschen
2011-12-05 22:25       ` Ken Brown
2011-12-06 10:39         ` Corinna Vinschen
2011-12-08 11:18       ` Robert Miles
2011-12-08 13:15         ` Ryan Johnson
2011-12-04 19:29     ` Christopher Faylor
     [not found]       ` <4EDBD5A5.2000707@cs.utoronto.ca>
2011-12-04 20:23         ` Ryan Johnson [this message]
2011-12-06 17:39 ` Andrew Schulman
2011-12-07  5:23   ` Mike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EDBD69D.4020004@cs.utoronto.ca \
    --to=ryan.johnson@cs.utoronto.ca \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).