public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Paul Hartman <paul.hartman+gentoo@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] CPU "choking" under high load
Date: Fri, 26 Mar 2010 17:50:06 -0500	[thread overview]
Message-ID: <58965d8a1003261550g6da01b74qf54574e8527a9781@mail.gmail.com> (raw)
In-Reply-To: <201003262047.55200.expendable.0@danielquinn.org>

On Fri, Mar 26, 2010 at 3:47 PM, Daniel Quinn
<expendable.0@danielquinn.org> wrote:
> I don't know if this is a hardware issue or not, but I thought that maybe I'd
> configured my kernel incorrectly and that this might be a known issue someone
> here has run across in the past so here goes:
>
> My computer is a pretty impressive AMD 64 X2 Dual Core Processor 6400+ box
> with 2GB of RAM and for the most part, I just use it to write code at work.
> However, whenever I'm doing something CPU-intensive, two things happen:
>
>  * The load on the box goes up to 4
>  * The box intermittently wobbles from running at full-speed and dropping to
>    a crawl.  This is best seen while watching Flash videos online,
>    compressing/encoding video, or compiling.  Everything is fine for a few
>    minutes, then suddenly the rate of compiling/compression/playback etc.
>    drops to a crawl for about 1-3minutes, then back up to full speed.
>
> I don't know why it's happening.  I've tried various kernel options with no
> change in behaviour.  Outside of that though, I don't know what to try.
> Suggestions welcome :-(

My initial thoughts, it sounds like what I experienced a few kernels
ago when they introduced the new group scheduler features. In my case
I disabled "Group CPU scheduler" in kernel config and changed from
SLUB back to SLAB. Also perhaps try to change your preemption model,
timer frequency, NO_HZ mode. These things have all had noticeable
differences to me in responsiveness over the years.

If it's not a kernel issue, perhaps use "nice" to tame CPU-hungry
processes, or "ionice" if they are disk-intensive.

Be sure your Video Card is not overheating or going into low-power
mode. Nvidia cards go into a super-slow-mode when they overheat
(happened to me 3 times when the fan on the card died). When that
happened, for example my FPS in glxgears would go from thousands down
to double digits... I could see lines painting on the screen, it was
painfully slow.

Also, if your CPU has frequency scaling make sure it's not gone crazy,
cat /proc/cpuinfo to see CPU speed, or powertop might be a more
friendly way to view the P-States.

Download memtest86+ from memtest.org and run it to be sure you don't
have any faulty RAM (in my experience tests 5 and 8 are the only ones
that ever show any errors, so you can save time by only running one
full pass of all tests and then a multiple passes of 5 and 8 just to
be sure it's good)



      parent reply	other threads:[~2010-03-26 22:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-26 20:47 [gentoo-user] CPU "choking" under high load Daniel Quinn
2010-03-26 20:48 ` Kyle Bader
2010-03-26 21:36 ` Neil Walker
2010-03-26 22:43 ` Dale
2010-03-26 22:52   ` Paul Hartman
2010-03-26 23:37     ` Johannes Kimmel
2010-03-26 22:50 ` Paul Hartman [this message]

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=58965d8a1003261550g6da01b74qf54574e8527a9781@mail.gmail.com \
    --to=paul.hartman+gentoo@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /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