mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet

Reply
 
Thread Tools
Old 2008-11-09, 12:14   #1
graysky
 
graysky's Avatar
 
Jul 2004

3×13 Posts
Default LINUX mprime does not switch speedstep off

This may be by design, but the latest 64-bit version of mprime doesn't run with a nice level high enough to trigger the flip of speedstep from low to full.

For example, my X3360 speedsteps down to 6x333 when idle and 8.5x333 which under load - except when mprime is loading it! It doesn't matter which of the three torture tests I run, all four cores get loaded @ 100 % but at 70 % power (6x333). I have to manually tweak the nice level from -19 to 0 to invoke speedstep applying full power to the machine.

Just wanted to report this behavior even if it's known and by design :)
graysky is offline   Reply With Quote
Old 2008-11-09, 14:30   #2
S00113
 
S00113's Avatar
 
Dec 2003

23·33 Posts
Default

You can adjust the nice value via the Prioryty setting in prime.txt. Priority 1 corresponds to nice 19, priority 10 is 0.

The point of SeedStep is to save power, and the only time SpeedStep saves power is when a process uses 100% CPU. Power consumption while idling is far below power consumption while working at any frequency, and does not depend on CPU frequency as most of the CPU is switched off. It is best to leave the frequenzy at max to make short bursts of activity complete as fast as possible, staying idle most of the time. Speedstep s only useful when a backgrond task like mprime is using 100% CPU all the time. In that case you save some power by lowering the CPU frequency, but get less work done as well.
S00113 is offline   Reply With Quote
Old 2008-11-09, 19:27   #3
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

792 Posts
Default

Quote:
Originally Posted by graysky View Post
This may be by design, but the latest 64-bit version of mprime doesn't run with a nice level high enough to trigger the flip of speedstep from low to full.

For example, my X3360 speedsteps down to 6x333 when idle and 8.5x333 which under load - except when mprime is loading it! It doesn't matter which of the three torture tests I run, all four cores get loaded @ 100 % but at 70 % power (6x333). I have to manually tweak the nice level from -19 to 0 to invoke speedstep applying full power to the machine.

Just wanted to report this behavior even if it's known and by design :)
This is an issue that crops up with many different varieties of lowest-priority/computationally-intensive apps, such as Prime95, LLR, etc., on many varieties of Linux, both 32-bit and 64-bit (though it tends to happen more on 64-bit systems.) One way to fix this is to use the "CPU Frequency Scaling Monitor" taskbar applet to change the CPU scaling governor to "Performance" (though this only works on GNOME--though I'm sure KDE and others have a similar applet available), though unfortunately that requires you to "re-fix" the problem each time you restart. A more permanent solution is to add the following to /etc/rc.local:

echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

If you have a multi-core/multi-CPU system, you'll need to add more such lines, one for each CPU/core, changing "cpu0" to the respective value each time.

Hope this helps!
mdettweiler is offline   Reply With Quote
Old 2008-11-09, 21:05   #4
graysky
 
graysky's Avatar
 
Jul 2004

3·13 Posts
Default

Dunno... the Gnome app doesn't allow me control at all...

http://img362.imageshack.us/img362/9416/37351629ge6.gif

Last fiddled with by graysky on 2008-11-09 at 21:05
graysky is offline   Reply With Quote
Old 2008-11-09, 21:09   #5
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

792 Posts
Default

Quote:
Originally Posted by graysky View Post
Dunno... the Gnome app doesn't allow me control at all...

http://img362.imageshack.us/img362/9416/37351629ge6.gif
First of all, which distro are you using? If it's Debian, Ubuntu, or any other distro that uses the Debian package managing system, the following will fix this:

-Open a terminal.
-Run the command "sudo dpkg-reconfigure gnome-applets"
-Answer yes to the question asking whether to allow cpufreq-selector to run with root privileges.
mdettweiler is offline   Reply With Quote
Old 2008-11-09, 21:31   #6
graysky
 
graysky's Avatar
 
Jul 2004

3·13 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
First of all, which distro are you using? If it's Debian, Ubuntu, or any other distro that uses the Debian package managing system, the following will fix this:

-Open a terminal.
-Run the command "sudo dpkg-reconfigure gnome-applets"
-Answer yes to the question asking whether to allow cpufreq-selector to run with root privileges.
I'm running lenny amd64. Very cool, now I can adjust the properties.

Thanks!

Last fiddled with by graysky on 2008-11-09 at 21:34
graysky is offline   Reply With Quote
Old 2008-11-15, 18:08   #7
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

11·521 Posts
Default

Quote:
Originally Posted by graysky View Post
This may be by design, but the latest 64-bit version of mprime doesn't run with a nice level high enough to trigger the flip of speedstep from low to full.

For example, my X3360 speedsteps down to 6x333 when idle and 8.5x333 which under load - except when mprime is loading it! It doesn't matter which of the three torture tests I run, all four cores get loaded @ 100 % but at 70 % power (6x333). I have to manually tweak the nice level from -19 to 0 to invoke speedstep applying full power to the machine.

Just wanted to report this behavior even if it's known and by design :)
you should be able to turn speedstep off in the bios
henryzz is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clicks of death, good opportunity to switch to Linux jasong jasong 4 2013-12-28 02:47
Switch from Windows to Linux Svenie25 Software 2 2013-12-18 11:23
Okay to switch between windows and linux? Unregistered Information & Answers 1 2011-06-09 02:28
HowTo: Switch to Linux to finish factoring Batalov Linux 25 2009-09-18 06:38
mprime and linux Echoblade Information & Answers 3 2007-06-24 22:28

All times are UTC. The time now is 05:47.

Wed Oct 21 05:47:44 UTC 2020 up 41 days, 2:58, 0 users, load averages: 2.00, 1.50, 1.43

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.