Alright, I've been working for a few days off and on on this problem. Here it is:
I'm running a 64-bit Ubuntu 10.10 install. I'm trying to run Folding@Home (and am running it through Origami using the nscd fix) without giving it free rein over my processors, especially considering that I would like to have it running while I'm taking notes in class, an activity which doesn't justify an i5. However, I also would like to get more than an hour (or less) out of the battery. I recall running Folding@Home in a previous version of Ubuntu (9.10?) and it had the perfect behavior: The processor stayed at it's lowest clock and all cpu cycles were used, because the FAH process had the lowest priority (nice value of 19 if memory serves) and the CPU governor was set to ignore the nice load. Whenever I launched anything, it would simply cut into the CPU time of the FAH process. I'd like to replicate this behavior on 10.10.
The problem is that all the fixes I've found are only applicable to 10.04. This includes:
Creating a startup script with the commands:
These commands (4 'processors', 2 cores w/ HT) work for a little bit, but don't work on reboot -- even when putting them in a startup script I made for conky and putting them in /etc/rc.local or /etc/init.d/local according to this guide: https://help.ubuntu.com/community/RcLocalHowto . Using the sysfs package and appropriately editing sysfs.conf also fails to produce results.Code:echo 1 | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/ondemand/ignore_nice_load
As it stands I'm using the cpulimit package (preinstalled) to slow down the process so it doesn't use enough clock cycles to run up the clock on the CPU (though occasionally it still does if I open a program, etc.)
Also, I've had even less success with my other machine, but if I get it working on the laptop I'll be happy.
I'd much appreciate any help with this.