maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Overclock the N900? (https://talk.maemo.org/showthread.php?t=39753)

MONVMENTVM 2010-06-30 12:14

Re: Overclock the N900?
 
Quote:

Originally Posted by arbitrabbit (Post 735259)
Even while playing Music or running a movie, the CPU is not ON all the time. A lot of that is done via the DSP anyways, so your CPU would remain idle a significant amount of time (as an example, play an mp3 and run Conky and you would see that the CPU is usually at 500MHz if you are running ideal). So while the test is valid, the premise isn't. Also, to sample current properly, unfortunately once every second isn't enough. You are talking more like 30 times a second, given how many times the CPU is waking up every second.

Having said that, there is definitely a compromise frequency, which would vary from device to device. So for ideal, it could be 600Mhz but for LV, it could be lower.

One sample per second is enough in this test because I feed the CPU with constant load. The variation between the results usually is maximum +/- 10mA... if i raise the time span from 1 minute to several minutes or even an hour, then the variation should be even less and we should achieve even more precise results (but you still get a good idea from these results).

Polling 30 times a second should basically be no problem but I assume that this alone would possibly create too much CPU load and therefore affect the result.

You are right that while playing music, the CPU stays mainly at 500MHz with ideal configuration, which is because CPU load stays usually around 20 - 30 %. But that wasn't necessarily what I was testing for, as I was setting the frequencies to a fixed value to check WHICH frequency is the most efficient in terms of battery consumption. So I don't really get your point. Besides if you check powertop while playing music you'll see that the CPU never gets into its deepest sleep state C3 (which again is slightly offtopic here).

Matan 2010-06-30 20:08

Re: Overclock the N900?
 
Quote:

Originally Posted by MONVMENTVM (Post 735125)
Clock [MHz]
Time [s] when Pi calculation finished
average current consumption [mA?]

So here it goes:

500
49
556

600
41
560

850
31
609

1000
25
736

My conclusion at the moment though is that a higher clock (even with lowered voltage) isn't necessarily more battery friendly than a lower clock just because it allows the CPU to complete its tasks faster and have more sleep time. This is probably because at higher clocks it consumes so much more power that it's not worth it... anyway I'll also have to check how the CPU behaves at 125MHz and 250MHz... At the moment 600MHz seems to be most effective clock though.

Your data does not support your conclusion:

The CPU took 41*560=22960 units of energy to calculate pi at 600MHz, but only took 25*736=18400 units to do the exact same job at 1000MHz, so was, in fact 20% more power efficient at 1000MHz.

Matan 2010-06-30 20:22

Re: Overclock the N900?
 
Quote:

Originally Posted by arbitrabbit (Post 735259)
Even while playing Music or running a movie, the CPU is not ON all the time. A lot of that is done via the DSP anyways, so your CPU would remain idle a significant amount of time (as an example, play an mp3 and run Conky and you would see that the CPU is usually at 500MHz if you are running ideal). So while the test is valid, the premise isn't. Also, to sample current properly, unfortunately once every second isn't enough. You are talking more like 30 times a second, given how many times the CPU is waking up every second.

Assuming you use the BQ27200 to read current consumption (is there another way on the N900?), then you should know it is only updating the value every 5.12 seconds, so there is no use of reading it more frequently. Further more it gives you the average over that time (actual amount of power consumed in the divided by 5.12), so you don't have to worry about that.

MONVMENTVM 2010-06-30 22:15

Re: Overclock the N900?
 
Quote:

Originally Posted by Matan (Post 736045)
Your data does not support your conclusion:

The CPU took 41*560=22960 units of energy to calculate pi at 600MHz, but only took 25*736=18400 units to do the exact same job at 1000MHz, so was, in fact 20% more power efficient at 1000MHz.

Hmm... that's not entirely true. It took 560mA to calculate pi, which finished after 41 seconds, AND to stay in idle mode for another 19 seconds. On the other hand it took 736mA for calculating pi at 1000MHz, which finished after 25 seconds, AND to stay in idle mode for 35 more seconds.

In both cases the test time was 60 seconds. The faster the cpu was, the faster it finished the calculation of pi and therefore was able to spend more time in idle mode until the 60 seconds finished. But as you can see even if it takes less time to finish the calculation and get into idle mode at 1000MHz it's still consuming more power overall.

Edit: But this shouldn't shock anybody... it really would be paradise if we could overclock by almost 100% and save battery at the same time ^^.

egoshin 2010-06-30 22:55

Re: Overclock the N900?
 
Quote:

Originally Posted by MONVMENTVM (Post 736246)
But as you can see even if it takes less time to finish the calculation and get into idle mode at 1000MHz it's still consuming more power overall..

Huh? Idle mode for 3430 is effectively around 20-30 and that mostly depends from VDD2 setup (mSD etc). How did you get your conclusion?

MONVMENTVM 2010-07-01 07:14

Re: Overclock the N900?
 
Quote:

Originally Posted by egoshin (Post 736317)
Huh? Idle mode for 3430 is effectively around 20-30 and that mostly depends from VDD2 setup (mSD etc). How did you get your conclusion?

I get this conclusion from the results of the measurement!? It's 560mA vs. 736mA... ergo it's easy to understand that it's using more current at 1000MHz.

lucas777 2010-07-01 07:21

Re: Overclock the N900?
 
Hey guys serious question here, i just overclocked mine to 500 1100 running super fast and fine atm, im look at conky and its jumping from like 700 to 500 to 1100 whats the go here and i just seen 805.... when i was in terminal i just went sudo...

kernel config limits 500 1100 succesfully loaded

is that normal to see it go from 700 to 500 and random like that.. when im pushing it to it stays at 1100

matts76 2010-07-01 07:42

Re: Overclock the N900?
 
Quote:

Originally Posted by lucas777 (Post 736692)
Hey guys serious question here, i just overclocked mine to 500 1100 running super fast and fine atm, im look at conky and its jumping from like 700 to 500 to 1100 whats the go here and i just seen 805.... when i was in terminal i just went sudo...

kernel config limits 500 1100 succesfully loaded

is that normal to see it go from 700 to 500 and random like that.. when im pushing it to it stays at 1100

Your cpu will use every freq that you haven't avoided, its just that conky cant take frequent enough samples to show all of them.
With ondemand govenor under load it will scale up to your max freq and then scale down through all the available freqs one by one.

MONVMENTVM 2010-07-01 07:43

Re: Overclock the N900?
 
Quote:

Originally Posted by lucas777 (Post 736692)
Hey guys serious question here, i just overclocked mine to 500 1100 running super fast and fine atm, im look at conky and its jumping from like 700 to 500 to 1100 whats the go here and i just seen 805.... when i was in terminal i just went sudo...

kernel config limits 500 1100 succesfully loaded

is that normal to see it go from 700 to 500 and random like that.. when im pushing it to it stays at 1100

Are there any processes running?

gsever 2010-07-01 07:49

Re: Overclock the N900?
 
Quote:

Originally Posted by matts76 (Post 736708)
Your cpu will use every freq that you haven't avoided, its just that conky cant take frequent enough samples to show all of them.
With ondemand govenor under load it will scale up to your max freq and then scale down through all the available freqs one by one.

Ondemand governing is default mode on the CPU, right?

gsever 2010-07-01 07:51

Re: Overclock the N900?
 
Quote:

Originally Posted by mangal_sk8erboy (Post 735290)
so what IS the big advantage of overclocking??what do you GET out of it?please tell me better contact scrolling..less screen tearing!what DO you get?

Hey,

I am max at 850 using the ideal setting. Works flawlessly so far. The conversation dialogs loads much faster and the system responds quicker when I hit the message.

matts76 2010-07-01 08:07

Re: Overclock the N900?
 
Quote:

Originally Posted by gsever (Post 736714)
Ondemand governing is default mode on the CPU, right?

Yes, and from what ive read and from my own tests there is little if any advantage to using any of the others (at least untill we have the ability to avoid freqs and adjust the sample rate and up threshold)
Afaik there is no way to monitor the cpu freqs in real time as it is just too fast.

mangal_sk8erboy 2010-07-01 08:44

Re: Overclock the N900?
 
Quote:

Originally Posted by gsever (Post 736716)
Hey,

I am max at 850 using the ideal setting. Works flawlessly so far. The conversation dialogs loads much faster and the system responds quicker when I hit the message.

Hey, ive just overclocked the phone.
SUPER fast, SUPER happy :D!
they should SELL the phone with this setting!
it seems flawless!
at 600, it used to lag when i used microb and ive got an sms or im..
sound comes 1st and then the msg lol!
loving it so far!
i wish they could fix the frame rate issue though :(!
if ANYONE can fix the frame rate issue of the scrolling/ panoramic desktop switching (i know its not much for the panoramic desktop..but still, perfect fps shows the quality of the phone)
if anyone could fix this final problem, this phone is PERFECT!

gsever 2010-07-01 10:01

Re: Overclock the N900?
 
I am still using the ideal mode (max @850). Over 1 Ghz seems a bit dangerous waters for me :D

Are there any 250-900 users around testing different voltages? What are your observations, performance wise at the limits and battery usage?

NokiaRocks 2010-07-01 10:11

Re: Overclock the N900?
 
I'm using this settings : just upped the voltages a bit cause it wasn't stable with the standard starving config

# tonism starving undervolt configuration
# minimum frequency to use
MINFREQ=250
# maximum frequency to use
MAXFREQ=900
# list of frequency configurations: each "frequency:volt,dsprate"
FREQS="0:22,90 125:22,90 250:30,180 500:33,360 550:33,400 600:36,430 700:42,430 750:44,430 805:47,430 850:48,500 900:54,500 950:52,500 1000:55,500 1100:63,520 1150:69,520"
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=0
GOVERNOR=ondemand
UP_THRESHOLD=75
SAMPLING_RATE=150000
IGNORE_NICE_LOAD=1
POWERSAVE_BIAS=0

Mr. Incredible 2010-07-01 12:10

Re: Overclock the N900?
 
@NokiaRocks

Hi, here are my configs. They are stable on my phone.

# minimum frequency to use
MINFREQ=500
# maximum frequency to use
MAXFREQ=1100
# list of frequency configurations: each "frequency:volt,dsprate"
FREQS="0:22,90 500:30,360 550:33,400 600:36,430 700:42,430 750:44,430 805:47,430 850:48,500 900:51,500 1000:59,500 1100:69,500 1150:72,500"
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=0
GOVERNOR=ondemand
UP_THRESHOLD=75
SAMPLING_RATE=150000
IGNORE_NICE_LOAD=1
POWERSAVE_BIAS=0

altorn 2010-07-02 11:54

Re: Overclock the N900?
 
People, how do I custom overclock the DSP?

gabby131 2010-07-02 21:14

Re: Overclock the N900?
 
i got a considerable pocket heat last day on my n900.

i was at work, it was in stock kernel (600/250mhz). for some reason, i notice a straight 1-2hours of 100% cpu usage.

then after a few moments, our I.T. told me that out work e-mail (outlook) is down, which is synced on my n900.

the n900 might be trying in hours syncing with a server that is not responding, will this may be the reason of the pocket heat? or there may also be, other reasons?

egoshin 2010-07-02 21:22

Re: Overclock the N900?
 
Quote:

Originally Posted by MONVMENTVM (Post 736686)
I get this conclusion from the results of the measurement!? It's 560mA vs. 736mA... ergo it's easy to understand that it's using more current at 1000MHz.

Something is definitely wrong with your measurements. Idle state should not take so much. I got 20-30 measuring it personally.

But you should give a reasonable time to settle before you start looking into BQ values. I used to wait 10secs after I locked N900 before script got values. And I got 20-30 and that doesn't depend from VDD1 (CPU voltage) but from VDD2 (peripheral devices voltage).

mangal_sk8erboy 2010-07-03 10:36

Re: Overclock the N900?
 
hmm...my phone ran amazingly fast on ideal for around 8 to 9 hours..then it got back to the lazy laggy 600 mhz feel, but conky showed 850 mhz :S!
help?

Mara 2010-07-03 14:08

Re: Overclock the N900?
 
Quote:

Originally Posted by NokiaRocks (Post 736858)
I'm using this settings : just upped the voltages a bit cause it wasn't stable with the standard starving config

# tonism starving undervolt configuration
# minimum frequency to use
MINFREQ=250
# maximum frequency to use
MAXFREQ=900
# list of frequency configurations: each "frequency:volt,dsprate"
FREQS="0:22,90 125:22,90 250:30,180 500:33,360 550:33,400 600:36,430 700:42,430 750:44,430 805:47,430 850:48,500 900:54,500 950:52,500 1000:55,500 1100:63,520 1150:69,520"
SMARTREFLEX_VDD1=0
SMARTREFLEX_VDD2=0
GOVERNOR=ondemand
UP_THRESHOLD=75
SAMPLING_RATE=150000
IGNORE_NICE_LOAD=1
POWERSAVE_BIAS=0

I did the same thing manually adjusting the voltages to find out the "sweet spot".

In your config I think you can change the 900MHz voltage lower (from 54) to somewhere around 50 since your 950 setting is 52. If 950MHz works with 52, it is hard to believe why 900MHz would need more voltage...

NokiaRocks 2010-07-03 14:20

Re: Overclock the N900?
 
I did not test 950, so it's still on the default.

Mara 2010-07-03 14:31

Re: Overclock the N900?
 
Quote:

Originally Posted by NokiaRocks (Post 739594)
I did not test 950, so it's still on the default.

Ok. Then it makes sense.

Just for reference my current CPU core voltages:
250:29, 500:30, 550:33, 600:35, 700:42, 750:44, 805:48, 850:50, 900:53, 950:57, 1000:60, 1100:68, 1150:72

I have used my device with all frequencies up to 1150. When looking at the voltages it can be seen that after 900MHz the voltage requirement really takes off. Therefore I have settled to 900MHz max in my everyday use.

vicegerent 2010-07-04 08:32

Re: Overclock the N900?
 
2 Attachment(s)
Quote:

Originally Posted by jakiman (Post 724181)
Hope my guide in sig helps. :D

Hi Jakiman,

I was following the instructions given in your guide to overclock.

However, I need some clarification.

In step 2, you advised:

Quote:

2. Install the package "Enhanced linux kernel for power users" (section 'system' in application manager).
So, when I check the list of applications my phone, I have the following linux Kernel already installed on my phone as showin in attachment maemo-1.

However, when I browse in the Apps Manager, under System Utilities, there is another Linux Kernel with same file name as shown in my attachment pic maemo-2

So, please advice, since I already have "Enhanced Linux Kernel for Power Users" (with version 2.6.28.10) already installed on my pc (shown in screenshot 1), do I still have to install the one shown in second screenshot?

Also, what is the difference between these two Kernels as they both have the same file name but different icon.

Another thing, I checked in the list of installed programs on my phone, and I could not find "rootsh". So when I check in Apps Manager I found rootsh given in the list. And since it is still showing under Apps manager list, so I think its not yet installed on my phone. Because, as you know, once an application is already installed on your phone it doesn't show in the list of Apps Manager anymore.

So could you please advice how should I proceed? Shall I uninstall Enhanced Linux for Power users (version 2.6.28.10) from my phone and then first install "rootsh" then install this package of Linux Kernel? Also, Which of the two Kernel's should I be installing?

Thanks for the great blog you have maintained to help others with overclocking. =D

MONVMENTVM 2010-07-04 08:59

Re: Overclock the N900?
 
Quote:

Originally Posted by egoshin (Post 739023)
Something is definitely wrong with your measurements. Idle state should not take so much. I got 20-30 measuring it personally.

But you should give a reasonable time to settle before you start looking into BQ values. I used to wait 10secs after I locked N900 before script got values. And I got 20-30 and that doesn't depend from VDD1 (CPU voltage) but from VDD2 (peripheral devices voltage).

It's not idling... it's calculating 6 digits of Pi and after it finishes it's idling for the remaining time.

jakiman 2010-07-04 10:19

Re: Overclock the N900?
 
Quote:

Originally Posted by vicegerent (Post 740173)
So, please advice, since I already have "Enhanced Linux Kernel for Power Users" (with version 2.6.28.10) already installed on my pc (shown in screenshot 1), do I still have to install the one shown in second screenshot?

Also, what is the difference between these two Kernels as they both have the same file name but different icon.

Another thing, I checked in the list of installed programs on my phone, and I could not find "rootsh". So when I check in Apps Manager I found rootsh given in the list. And since it is still showing under Apps manager list, so I think its not yet installed on my phone. Because, as you know, once an application is already installed on your phone it doesn't show in the list of Apps Manager anymore.

So could you please advice how should I proceed? Shall I uninstall Enhanced Linux for Power users (version 2.6.28.10) from my phone and then first install "rootsh" then install this package of Linux Kernel? Also, Which of the two Kernel's should I be installing?

1. Yes. It's mentioned on step 4. =)
2. One is a kernel. One that says (settings) at the end is not. It's a set of scripts that can be used with the kernel.
3. Just install both "Enhanced kernel for power users (settings)" and "Rootsh". Doesn't matter the order. Just need both installed.

vicegerent 2010-07-04 14:28

Re: Overclock the N900?
 
Quote:

Originally Posted by jakiman (Post 740233)
1. Yes. It's mentioned on step 4. =)
2. One is a kernel. One that says (settings) at the end is not. It's a set of scripts that can be used with the kernel.
3. Just install both "Enhanced kernel for power users (settings)" and "Rootsh". Doesn't matter the order. Just need both installed.

Oh yes you are right. Thanks for the clarification.

Just one question, I want to have a profile like 125Mhz - 850Mhz... like when the phone is idle then it should be at 125Mhz and when its in use then depending on the application I am using it should go max to 850Mhz... is that possible?

techie 2010-07-04 15:21

Re: Overclock the N900?
 
Depending on application?
If you mean depending on how much load there is on the CPU, then yes, this is done by the ondemand governor which is enabled by default so you needn't worry.
For example if you use the ideal profile and set the minimum limits to 125 (also remove from list of frequencies to avoid) and max to 850, then the cpu will idle at 125 and if it is busy it wont just shot up to 850 but gradually scale through the frequencies in between upto a maximum clock of 850 in case of heavy load.
Similarly for downscaling.

vicegerent 2010-07-04 15:40

Re: Overclock the N900?
 
How do we set the minimum and maximum limits? I mean as far as I know when we do the overclocking and select the ideal profile, I thought the min limit on ideal profile is 500 and max is 850.

So how do we change the min from 500 to 125?

techie 2010-07-04 17:20

Re: Overclock the N900?
 
@vicegerent
This is explained in jakiman's guide as well as here
To summarize this is what you need to type:
kernel-config limits min max
where min & max are the lower and upper limits respectively.
In your case
kernel-config limits 125 850

EDIT:Also note 125 may be disabled because of this
To enable type the following all in one line:
Code:

echo > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/avoid_frequencies

zimmerit 2010-07-05 00:14

Re: Overclock the N900?
 
Jakiman just stole my virginity, you bastard! (what comes to overlocking:D:D) Thank you very much for good instruction, you obiviously used few hours to prepare them.

I loaded starving (thx tonism!) voltage profile with frequency range 250-700, and the phone seems to run stable and noticeably faster with it.

There is one thing that I'm not sure of though. Does anyone know how long do those voltage profiles go that are loaded to the current power user kernel? Do they all go between 0-1150 Mhz?

tobylee 2010-07-05 08:16

Re: Overclock the N900?
 
I'm unable to remove the kernel and revert to the original nokia one, every time I try, it tells me it can't download the original nokia one. I've tried through wireless and o2. My USB is not working anymore so I cant flash it. Any ideas?

tzsm98 2010-07-05 08:33

Re: Overclock the N900?
 

jakiman 2010-07-05 11:56

Re: Overclock the N900?
 
Quote:

Originally Posted by zimmerit (Post 740742)
There is one thing that I'm not sure of though. Does anyone know how long do those voltage profiles go that are loaded to the current power user kernel? Do they all go between 0-1150 Mhz?

Haha. Glad my guide helped you out a bit. :D

Yes. All the voltage profiles that comes with the "settings" package is configured for the entire frequency range supported.

See this table for the full comparison:
(ideal uses 0.975v for 125/250Mhz)

http://talk.maemo.org/showthread.php...072#post646072

vicegerent 2010-07-05 15:12

Re: Overclock the N900?
 
@techie and Jakiman,

Thanks for the support. You guys have helped really a great deal.

Since update of PR1.2 my phone was hanging/freezing all the time no matter whichever application. Also, since the update phone would connect to wireless and try to log on to gtalk and skype. However, since it can't connect to the net unless I manually enter username and password so after picking up wireless it would constantly try to connect skype and gtalk. This would drain out the battery really fast and fone would get heated up alot.

So, last few weeks since PR update I was really getting frustrated on how to fix the freezing problem as it was happening almost when accessing any application.

However, after overclocking last night by following the instructions you guys have provided, I am surprised that it has resolved almost all the problems I have been struggling with over the last few weeks.

- Apps manager was so bad and slow in loading after the PR update - it is amazingly fast... even faster than it was when I bought the phone.
- Email App which also used to hang after PR update is super fast like never before.
- Wifi switcher would take effect literally after a min when I have disabled. However now after overclocking its back to normal. Although at times there is still slight lag.

So basically all apps that were freezing and hanging terribly since PR update have started to load smooth and fast. I am loving my fone even more now.

Thanks to you guys for the great contributions and advice.

Jakiman, your guide is really good :up: keep up the great work.

I have overclocked the phone in this way:

Quote:

sudo gainroot
kernel-config load lv
kernel-config limits 250 850
kernel-config save myprofile1
kernel-config default myprofile1
I need one advice though. currently I have the above profile 250-850. However, can you guys tell me whats the difference between this profile and the one with limits as 125-850. I would prefer to keep the profile as 125-850, if it means that the phone would use 125 when it is idle mode. Does that means less (energy) consumption on the downward side?

NOMOS 2010-07-05 15:25

Re: Overclock the N900?
 
So, without any technical knowledge, but using the power kernel install and QCPUFreq, I can now have my device running at 900 Mhz without any issue. Great work guys!

gtessier00 2010-07-05 15:25

Re: Overclock the N900?
 
**Duplicate, please delete this post**
Sorry :)

gtessier00 2010-07-05 15:26

Re: Overclock the N900?
 
Quote:

Originally Posted by vicegerent (Post 741323)
I need one advice though. currently I have the above profile 250-850. However, can you guys tell me whats the difference between this profile and the one with limits as 125-850. I would prefer to keep the profile as 125-850, if it means that the phone would use 125 when it is idle mode. Does that means less (energy) consumption on the downward side?

Hey!
125-850 doesn't mean that the phone will be at 125 at idle mode. At idle, the phone goes to ''sleep'' and the cpu nearly stops (sorry I don't know EXACTLY how to say it). Also, when at 125, you must know that the device will be really slow when unlocking it, or things like receiving calls.
Honestly, I suggest you stick to 250 as the lower limit, and having experienced both ''ideal'' and ''lv'' profiles, ideal was really unstable for me. It was slow and got back to 600mhz a couple of times.
I have been using LV profile with 250-700mhz (summer is hot here, I hate seeing my temp @ 40 degrees) and really, so far so good!

mangal_sk8erboy 2010-07-07 21:40

Re: Overclock the N900?
 
hey guys, ive been testing the ideal profile for a few days and i have a SMALL complaint.
see, ideal works like its on drugs for a good 10 hours..but after that it FEELS like it goes back to the same state it was before on the nokia kernel.a lotta lag n random freezes.
is there a reason for this?should increase the max limit?or decrease it?
increase voltage or decrease it?(assuming lv =low voltage)
i thought i should ask this before i venture on to 900 mhz n 1Ghz :D!!

gtessier00 2010-07-07 21:47

Re: Overclock the N900?
 
hey!
Yeah, put it on lv. I had problems with ideal too.
Do this:
Sudo kernel-config load lv
sudo kernel-config limits 250-805
sudo kernel-config save lv8
sudo kernel-config default lv8


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

vBulletin® Version 3.8.8