public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Richard Fish" <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Per-process CPU % usage limit
Date: Sat, 8 Jul 2006 14:13:05 -0700	[thread overview]
Message-ID: <7573e9640607081413h57d23dabt95c4d3b4456b638f@mail.gmail.com> (raw)
In-Reply-To: <200607081740.01670.shrdlu@unlimitedmail.org>

On 7/8/06, Etaoin Shrdlu <shrdlu@unlimitedmail.org> wrote:
> The problem is that some very CPU-consuming apps, even if started with
> the lowest priority (eg, nice -n 19), still eat up 100% CPU (with
> subsequent overheating, fan start, throttling, etc.) if the system is
> not busy and has nothing else to do. What I'd like to know is whether it
> is possible to impose such a CPU percentage usage limit.

Well, I would first upgrade my cooling fans so the processor couldn't
overheat! :-)

But you could also enable "CPU freqency scaling" in the kernel, with
the ondemand governor, and use the various settings in
/sys/devices/system/cpu/cpu0/cpufreq to control the clock speed and
behavior of the system.  You can use scaling_max_freq to specify the
maximum frequency of the processor so that it will not overheat or
throttle, no matter what the load is, and the
ondemand/ignore_nice_load setting will tell the governor not to
increase the clock speed for niced processes.

-Richard
-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-07-08 21:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-08 15:40 [gentoo-user] Per-process CPU % usage limit Etaoin Shrdlu
2006-07-08 21:13 ` Richard Fish [this message]
2006-07-09 15:35   ` Etaoin Shrdlu
2006-07-11 23:32 ` Evan Klitzke
2006-07-12 10:16   ` Etaoin Shrdlu

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=7573e9640607081413h57d23dabt95c4d3b4456b638f@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --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