Reply
Thread Tools
Posts: 59 | Thanked: 16 times | Joined on May 2010
#331
Originally Posted by nightfire View Post
In case anyone isn't following the overclocking thread (pretty high traffic), if you're looking for even more performance (at the potential cost of some battery life, though I haven't observed any diference so far), try this (copied from my post there):

Code:
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
By default, the ondemand governor is very aggressive about when it cycles up (waits for 95% load), and can have a significant latency of up to 300ms. This means if you saturate your CPU, your average wait for frequency increase is 150ms (0-300ms).

This change cuts that time in half, and lowers the bar for how much load is needed before committing.

It may affect battery life slightly (more frequent sampling, more aggressive cycle-up), but gives a yet more snappy feel. It may have no effect (or even lower battery consumption) by minimizing unneeded time at high cycle rates (responding to drop in load more quickly). Try it out!

If you want to make it permanent, just do this:

Code:
cat > /etc/event.d/ondemand-config << EOF
start on started xsession

console output
script
        echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
        echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
end script
EOF
In case anyone is wondering "why on started xsession?" .. it's because at some point late in the bootup, the ondemand scheduler is selected by something and I'm not sure what. When it's set, it resets the values. So I just wait a bit.

Perfect complement to any overclocking kernel.
how to undo this command? or how to check if its working or not?
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#332
The sampling_rate=150000 really makes the difference. I left the up_threshold at the default value and there's still a big speedup.
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 219 | Thanked: 40 times | Joined on Sep 2010
#333
EDIT: deleted.

Last edited by zerocool2k; 2011-07-07 at 17:55.
 
Posts: 172 | Thanked: 98 times | Joined on Aug 2010 @ Forest of Dean, England.
#334
NightFire - Thanks for this. Works really well, in fact transforms the device...well impressed

[Thanks!]



Originally Posted by nightfire View Post
In case anyone isn't following the overclocking thread (pretty high traffic), if you're looking for even more performance (at the potential cost of some battery life, though I haven't observed any diference so far), try this (copied from my post there):

Code:
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
By default, the ondemand governor is very aggressive about when it cycles up (waits for 95% load), and can have a significant latency of up to 300ms. This means if you saturate your CPU, your average wait for frequency increase is 150ms (0-300ms).

This change cuts that time in half, and lowers the bar for how much load is needed before committing.

It may affect battery life slightly (more frequent sampling, more aggressive cycle-up), but gives a yet more snappy feel. It may have no effect (or even lower battery consumption) by minimizing unneeded time at high cycle rates (responding to drop in load more quickly). Try it out!

If you want to make it permanent, just do this:

Code:
cat > /etc/event.d/ondemand-config << EOF
start on started xsession

console output
script
        echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
        echo 150000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
end script
EOF
In case anyone is wondering "why on started xsession?" .. it's because at some point late in the bootup, the ondemand scheduler is selected by something and I'm not sure what. When it's set, it resets the values. So I just wait a bit.

Perfect complement to any overclocking kernel.
__________________
My N900 LCD REPLACEMENT VIDEO
----------------------------
N900 @ 1ghz....keeps me warm in winter

PICTURES TAKEN WITH MY N900
 

The Following User Says Thank You to thebtman For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:03.