Ubuntu :: Configuring Cpu Scaling To Set To Ondemand Upon Reboot
Sep 26, 2010
I know that this has been a frequent discussion post and I have read a large portion of the posts but none of them have fixed this problem for me. My computer seems to default to performance upon reboot (and yes I have waited the 60 seconds it should take to switch to ondemand). I have tried a number of the ideas posted throughout the web but have been unable to set the default upon reboot. Here is my current /etc/init.d/ondemand script:
Code:
### BEGIN INIT INFO
# Provides: ondemand
# Required-Start: $remote_fs $all
# Required-Stop:
Is there any possible way to keep my CPU frequency scaling on PERFORMANCE mode through a reboot? Ubuntu likes to default it back to ONDEMAND all the time.
The CPU frequency scaling monitor won't stay at 800mhz after reboot or a certain period of time. My goal is to always have my dual core CPU locked at 800mhz to have it run cooler. I'm running Ubuntu 10.10 on my toshiba u300 laptop.
I'm trying Ubuntu 11.04 for a week now, tbh I'm not really fully satisfied with it: high hard drive temperatures, graphical glitches and often the radeon driver hung up and has to restart itself, not to mention the general X11 window lockups and graphical glitches. But the fact that the ondemand cpu scaler doesn't work good is truly absurd.
I launched an instance of prime95, a famous benchmark and stress tool program, and the ondemand scaler don't care of the fact that the program is using 100% of cpu usage. It just don't switch the processor on the fastest pstate, leaving it at miserable 525 Mhz. If I use the conservative scaler, it correctly put the processor at high frequency when required. For example, the 768Kb FFT benchmark takes at best 76.602ms with ondemand scaler and 32.884ms with the conservative scaler.
On an asus p4C800, i have a, very old, pentium 4 3.2 GHz (HT, prescott). On which i installed an opensuse 11.4 (after some network quirks and some grub tricks)... First i saw that the p4_clockmod module was not compiled for the kernel. It took me one night to compile the modules, and it borked my whole installation, which i spent my day to remake, but that's another story. After loading all the appropriate modules (speedstep-lib, cpufreq-something, etc...), i run this command :
Whenever I unplug my laptop it gets slugishly slow, and I don't understand why. I noticed that when on battery I cannot by any means make the cpu work at its full speed (1.7Ghz) even with the performance governor; it always stays at 1.2Ghz. When unplugged from AC, cpufreq-info also tells me the speed can vary between 600MHz and 1.2Ghz, even though it reports the max hardware speed of 1.7Ghz. Besides, I have tested the laptop on AC power at 1.2GHz and it seems a whole lot faster than when on battery at the same speed. Are there any more "power-friendly" reductions in... say for example, graphics card? It would impact UI redesign significantly (and it sure as hell looks slow). How can I customize (or at least disable) these inconvenient cpu speed reductions?
I just wanted to know if having my laptop set to ondemand, will this affect performance in any way? I realize it increases the clock speed to performance when the CPU is under load, but does the time it take to go from ondemand to performance affect speed? Will there be any noticeable difference between the two setups? I have a dual core intel at 2.2GHz when in performance. When ondemand is set with no load it downclocks to 800Mhz.
I want to be able to disable CPU scaling, whenever I want. The reason is that I run some timing tests, and I want the results to be reproducable (ie the CPU running at the same frequency). I have tried the following on 9.10 and 10.04 (both amd64). I use rcconfig to disable "on demand" (from [URL] but then when I use cpufreq-info tool I get:
I have the CPU frequency scaling applet in the panel and it worked fine when I had 8.10 but now that I'm using Karmic, I cant get it to work correctly!
It won't change the speed to what I tell it to. I click on a different speed and it does nothing.
The CPU spins too slowly and videos lag or it spins at full speed and overheats even though I have nothing open! I really need to be able to adjust it.
I've been trying to get lucid to work on my gateway netbook. The major problem I've seen is that it would overheat (to about 63 C or a little higher, and then the display would go crazy and crash. My BIOS doesn't support cpu scaling. Somewhere in a google search, someone mentioned the 2.6.34 kernel. I had no ideal what I was doing, and I installed this kernel. (could not install headers -- a dependency issue I didn't understand). Tried it, and it booted.
Saw some errors, like timer or something not found and something about a soft reset. However, it boots, and it works, and the temperature is much better (at least for the last 42 minutes: I've not been able to run it that long before). Are those errors likely to cause problems? Are there any issues I should be aware of using a non-standard kernel like this? I am dual booting with 9.10, which works well, and all my serious work is on the 9.10 partitions.
HID compliant mouse Synaptics PS/2 Port touchPad Generic PnP Monitor Atheros AR5B95 Wireless Network Adapter Realtek PCIe FE Family Controller AMD Athlon(tm) Processor L110 Realtgek High Definition Audio Microsoft iSCISI Initator Gateway LT3103u
As I write, temp is still at 56, but I am getting some intermittent display problems. Should I give up on lucid?
I am new to ubuntu. I have just one question, everytime I reboot my laptop the CPU Frequency Scaling Monitor goes back to "On Demand." Why is that and can I also set it so it stays on Performance.
I'm running ubuntu 10.10 64 bit. CPU speed scaling says my CPU (AMD PhenomII 1090T) is not supported, and shows full speed on all cores, regardless of load. I've read that those issues were solved in kernel 2.6.34...
How can I make it work? or do I have to wait for an update?
Motherboard is an ASUS Crossfire IV.
Admins: Feel free to shift this post to another (sub-)forum if necessary, I wasn't sure where to put it.
i face problem with Firefox 3.6.11: smooth image scaling doesn't work. When i zoom in websites (ctrl +), images are not anti aliased, but appear pixelated, which is very ugly.
What I found out about so far, this seems not to be a FF problem (FF3 should support smooth image scaling), but a problem with the video driver, who tells X it could do smooth image scaling automatically but it cant. There is also a "bug" fix for the FF:
launchpad.net/~firefox-smooth-scaling/+archive/ppa I putted this to my package sources and made a system update. But smooth image scaling still doesn't work
I am trying to set up my cpu freq. scaling to ignore BOINC. From what google has shown me this is done by setting a value of 1 for ignore_nice_load. However the location of said value does not seem to be the same in 10.04 as in the results from google. How do i set this or is there a better way to keep idle processes like BOINC from increasing the my cpu frequency?
Basic Info: Ubuntu 10.10, AMD RM-70 2GHZ Processor, HP G60-120US, Bios F54. I'm unable to scale my processor (either core) using the applet in the menu bar. Every time I try, I select 2GHZ, and re-open; then it's displayed that 500MHZ was selected. I'm unable to pick any speed, the computer has a mind of it's own in that sense. It's essentially stuck at 500MHZ for 98% of the uptime, which makes it impossible to do anything more than web browsing. Ex: I tried watching an HD video, I watched 5 min, and 1,400 out of the 10,000 or so were dropped!
Since the new Unity in Ubuntu 11.04 doesn't work with applets, like GNOME, I've lost an useful applet to choose the operating clock of my CPU as well as power profiles (Performance, Conservative, On Demand etc.).
I've looked into Ubuntu Software Center but couldn't find anything similar.
I managed to half fix my earlier problem of being unable to clone my desktop monitor to my TV. I set the configuration to TwinView, and the resolution to the same as my desktop (Doh) and that seemed to at least get my desktop the way it used to be.
The problem now is the TV. It's cutting off a lot of pixels, and I can get it almost to fit if I enable flat panel scaling and set GPU Scaling Method to "Centered". However, when I restart the X server, it always returns to "Stretched". I've tried saving it from nvidia-settings (nothing seems to happen to the xorg.conf file,) and ala [URL] s have tried to put some version of
I have a Core 2 Duo T9600. I noticed video playing performance has been really bad lately, and videos that used to work fine now stuttered. I would say it started happening 2-3 weeks ago. I discovered the culprit is that the CPU is scaling down to 800Mhz and sticking there. Running cpufreq-info yields:
I recently installed 10.04 and really like it so far, however I was wondering if it is possible to scale all hypertheading cores at once, currently I am using an applet for each and have to use several clicks to get into the desired powerstate.
I have read that with dual cores you will not have the option to go into different powerstates because it scales all cores at once, however the logical cores that show up with hyperthreading allow each to have a different power state, and will show up as different states if I use cpufreq-info in the terminal, so it seems like it is allowing it.
When I boot my machine (using a dual core 2ghz CPU) I always find myself out of "performance" mode (which I need), using only 1ghz per core.While this is easily fixable with "sudo cpufreq-set -g performance", I don't seem to be able to do it before having control of the machine. I would like to be able to boot with my CPU at full power.I would prefer to disable whatever is scaling down my CPUs to having to inject cpufreq-set to change governor. Anyone has any hint?I use default Ubuntu but I boot into a KDE4 desktop. But the same issue happens booting into the Gnome desktop.
I am not entirely convinced that my CPU is actually changing frequency as it is meant to. It sometimes changes frequency, but most of the time it is stuck on 800MHz even when doing cpu intensive tasks. Here is information that may or may not be of help:
In order to save power and to cool down my Debian system a little bit, I installed cpufregs the other day and changed it the cpu gonever to on_demand.
Well I came back to the box today and powertop tells me that the cpu has been running at 2.66ghz (max freq) for 99/99% of the time.
Running cpufreq says this: Code: analyzing CPU 0: driver: p4-clockmod CPUs which need to switch frequency at the same time: 1 hardware limits: 333 MHz - 2.67 GHz
In Lucid I cannot get CPU scaling to work anymore, in previous Ubuntu releases this was not a problem with the same hardware (AMD Phenom 9500 Quad). I used to load module 'powernow-k8' and 'powernowd' to make it work, but it seems 'powernow-k8' is not available in Lucid. Anyone who has cpu scaling working in Lucid?
Is there a way to edit the color of the text to white so I am able to see it? Example of the current text color in this attachment, see top right corner first scaling icon next to system monitor;
Trying to set my cpu to Powersave using the CPU Frequency Scaling applet. When I set it to powersave, it goes back to ondemand on its own. On the earlier versions of Ubuntu, I used to be able to set it from the main menu: system>powermanagement, but with 10.10, I don't get that option. Is there any way that I can set it to powersave permanently? I was also able to set it with Ubuntu Tweak, but it does not have that option either.
I have recently installed Ubuntu 11.04 on my PC with these configuration:CPU: AMD Athlon 7750 Black EditionRAM: 2GB 1066 MHzVGA: ATI Radeon HD 3200 (on AMD 780G)After I installed Natty Narwhal I felt that my CPU runs at the highest clock all the time (2.7GHz), even if I don't have any program run. I tried all settings for AMD Cool'n'Quiet from mainboard BIOS, but nothing's changed. I installed "CPU Frequency Scaling Monitor" to manually change CPU clock. It recognizes two clock for my CPU, 2.7GHz and 1.35Ghz plus 4 other options; Conservative, Ondemand, Performance and Powersave but the CPU indicator doesn't change on every option!
i would ask how to fix " frequency scaling disabled due to cpu bug" that come when my linux server is booting. although it just a WARNING buti want to fix it.this show up after i move my virtual machine from my Acer Veriton Desktop PC with Centos 5and VMware 6 for linux into my HP Proliant server with windows 2003 and VMware 6 for windows