Folding on Ubuntu 7.10 cpu's running slowly

Come join the... uh... er... fold.

Moderators: farmpuma, just brew it!

Folding on Ubuntu 7.10 cpu's running slowly

Postposted on Sun Oct 28, 2007 12:31 pm

FYI I just noticed and fixed this on my setup. I thought it might be of interest to others

I have Ubuntu 7.10 installed on a Quad 6600 rig and noticed that the cpus were still speedstepped down. The way to tell is to open a Terminal and do
Code: Select all
cat /proc/cpuinfo
and look at the entry "cpu MHz" for each processor. If you have folding running and that is lower than the maximum your processor goes to, you have this problem.

The problem is that the ondemand scaling control ignores "nice" processes by default. A "nice" process is one that is running in the background with the priority set to give up the CPU when just about anything else runs. We need to change the control to include "nice" processes in the calculation of what speed to run the CPUs:
Code: Select all
sudo echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load

Repeat this for each processor changing the "/cpu0/" to the appropriate processor number on each time. Now double check the output of
Code: Select all
cat /proc/cpuinfo
and you should see the "cpu MHZ" field for each processor now reporting the max value for that processor.

To get this to happen when you reboot the computer, you can either add it to any script you have to start up folding, or add it in to /etc/rc.local before the line "exit 0".

Editted to fill in details.
notfred
Minister of Gerbil Affairs
 
Posts: 2555
Joined: Tue Aug 10, 2004 9:10 am
Location: Ottawa, Canada

Postposted on Mon Oct 29, 2007 8:59 am

Thanks for the info, notfred. I'll have to double-check my machines when I get a chance.
Fold! And I don't mean your clothes!

Do you have a favorite gerbil recipe? Please share with the TR community!
flybywire
Gerbil Jedi
 
Posts: 1857
Joined: Wed Jun 16, 2004 1:28 pm
Location: Springfield, VA - USA

Postposted on Mon Oct 29, 2007 10:41 am

Hi NotFred! Thanks for the post. I am running Ubuntu 7.10 on two Q6600s. I changed the "niceness" setting on my folding processes to a midrange value when I first starting running Ubuntu 7.10. I don't know if this causes max CPU performance. I do know that I have to restore the niceness setting evertime I restart my computer so your script would be a nice tool. I'll check tonight and make a post. :D
Join UGN's Drive to the Top!
Image
UnitedGerbilNation wants you!!
jeffry55
Grand Gerbil Poohbah
 
Posts: 3128
Joined: Sat Oct 30, 2004 3:38 pm
Location: Menlo Park - just down the street from the F@H Servers!

Postposted on Tue Oct 30, 2007 6:00 am

Hmm, there's something not right here, mine keeps getting set back to 1 and I have to keep resetting it. I can't see any userspace program (like cpufreqd or powernowd) that might be doing it. I'll keep hunting...
notfred
Minister of Gerbil Affairs
 
Posts: 2555
Joined: Tue Aug 10, 2004 9:10 am
Location: Ottawa, Canada

Postposted on Tue Oct 30, 2007 5:05 pm

Hi NotFred,

I am running 7.04 not 7.10. I was thinking about upgrading to the new version to see how their version of "Aero" looked, but I haven't done it yet.

On the System Tab of System Monitor for my Q6600 it shows 2.4 ghz per core. I also see 2.4 ghz per core when I use your command line in a terminal window. I have all instaces of the folding core set at nice=19.

I changed the nice=0 for all folding instances and the processor speed did not change. Maybe I needed to let it hang out for a while or do a restart to see if there was impact. :-?
Join UGN's Drive to the Top!
Image
UnitedGerbilNation wants you!!
jeffry55
Grand Gerbil Poohbah
 
Posts: 3128
Joined: Sat Oct 30, 2004 3:38 pm
Location: Menlo Park - just down the street from the F@H Servers!

Postposted on Tue Oct 30, 2007 5:36 pm

jeffry55 wrote:Hi NotFred,

I am running 7.04 not 7.10. I was thinking about upgrading to the new version to see how their version of "Aero" looked, but I haven't done it yet.


just install beryl from the add/remove programs app. Seems pretty stable on my 7.04 install.
Fernando!
Your mother ate my dog!
cheesyking
Gerbil Jedi
 
Posts: 1820
Joined: Sun Jan 25, 2004 6:52 am
Location: That London (or so I'm told)

Postposted on Tue Dec 11, 2007 8:36 am

I upgraded to 7.10 and didn't have any issues with slow CPU clock speed.
Join UGN's Drive to the Top!
Image
UnitedGerbilNation wants you!!
jeffry55
Grand Gerbil Poohbah
 
Posts: 3128
Joined: Sat Oct 30, 2004 3:38 pm
Location: Menlo Park - just down the street from the F@H Servers!


Return to TR Distributed Computing Effort

Who is online

Users browsing this forum: No registered users and 1 guest