Bug 132383
Summary: | cpuspeed should not count nice time as idle time (niced compiles don't raise CPU speed) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Baron <dbaron> | ||||||||
Component: | cpuspeed | Assignee: | Dave Jones <davej> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | rawhide | CC: | mitr, msz, oliva, pfrields | ||||||||
Target Milestone: | --- | Keywords: | Patch | ||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | cpuspeed-1.2.1-1.20 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2005-04-26 21:29:04 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
David Baron
2004-09-12 01:44:21 UTC
Created attachment 103744 [details]
proposed patch
I am not sure how should cpuspeed react to niced jobs. Ignoring them was actually the author's (Carl Thompson) choice (as found in FEATURES): * "nice()'d" processes will not increase CPU speed I agree with David that a background niced "make" should increase the CPU freq. On the other hand, one can argue that a long overnight job should not heat so much the CPU and make the laptop CPU fan noisy. I think about two possible solutions: 1. Simple, as David proposes, but controlled by an option (like -nice) 2. More complicated: niced jobs would speed up the CPU but not to the maximum freq (say one step below the max). regards, Michal. Created attachment 111209 [details]
Adds -n option to include nice time
Similar issue with FC3... I run mythtv on this box the transcode jobs are niced
so that they don't interfere with regular usage (but see how long it takes to
reencode mpeg4 at your lowest cpuspeed if you're doing absolutely nothing on
the machine at hte time :)
Some of the things Michal suggested are not so easy to code so I took the
simplest route that I hoped would be acceptable upstream and added a "-n"
option (they seem to be fond of one letter options so I went with it) that
defaults to off but, if included on the command line, will include nice time in
cpuspeed's calculations.
Patch attached (intended to be applied after the smp patch included in fc3
kernel-utils package so you may have to tweak if you want it in fc2, I don't
know).
Please push upstream as this would be a useful option to some people...
Any chance of integrating the patch in comment #3? It would be very useful to me as well. it needs rediffing against 1.2.1 Created attachment 112772 [details]
rediffed/updated patch
This is Thomas Walker's patch, heavily modified to apply cleanly in the latest
version of the package. I've tested it on AMD64. I switched -n on by default,
since I believe cpuspeed is far more useful this way, but I wouldn't mind too
much if that bit of the patch was dropped.
*** Bug 176775 has been marked as a duplicate of this bug. *** |