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)

calltrace 2010-04-07 19:45

Re: Overclock the N900?
 
Quote:

Originally Posted by Rushmore (Post 599249)
2. Built in media player is a resource hog (50 to 60% playing 160kb MP3?!)

this is because (I think and test which i have done confirm that) playing an mp3 in media player provide low cpu usage ,so system underclock it at 125MHz ,and those usage percent are related to this frequenci (test : i set lowest freq to 500MHz and cpu usage was at ~22% @ mp3 vbr v3 (~190kbps))

Matan 2010-04-07 19:46

Re: Overclock the N900?
 
Quote:

Originally Posted by Rushmore (Post 599592)
Something seems to not make sense with Conky. Anyone notice that regardless of the clock speed, the percent of cpu usage stays fairly "constant"?

Example playing a 160KB MP3 with built-in media player:

Clock fluctuates from 125mhz on up to 800mhz, but the cpu usage percent ranges from 50% to 53%. I would expect both values (clock and usage) to be relative and not such a wide margin of fluctuation with the clock and usage. If one is constant, the other should be. I could see if there is lag for one value to the next, but that should be an issue of displacement of values, rather than one staying always "constant" (the usage).

BTW, most of the time, cpu is at 125mhz, but does fluctuate for several seconds up from 500 to 800, but usage does not deviate from 50% to 53% range.


The reason is that the kernel does not do exact accounting of CPU time - it only samples once for every slice (probably 10ms on N900, I did not check this), and accounts all the slice to the process, even if it uses only a part of the slice and then yields.

The way to get more accurate is to run another process that simply counts at a lower priority, and see how slower it becomes when an mp3 player is running. In this method mp3 players usually are over-reported, and use a lot less CPU than what seems.
I won't be surprised if pulse-audio also uses a lot less than what is always reported.

Lehto 2010-04-07 20:03

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599858)
@Matan and Lehto:
are you sure you're overclocking the DSP?
did also modify the tables in drivers/dsp/bridge/rmgr/drv_interface.c ?

No Im not. Theres no real way to test it so I cant tell. On my site I've put a note to not to use the DSP overclocked ones unless for some reason you really have to.

People should rather use your kernels, I'll continue on experimenting but as I dont have a wide knowledge of how all the kernel architechture works mine will be just shitty hacks.

biggzy 2010-04-07 20:09

Re: Overclock the N900?
 
Lehto any chance of a 125 - 650 kernel please? fiasco style so i can flash on device, thanx

Lehto 2010-04-07 20:14

Re: Overclock the N900?
 
Quote:

Originally Posted by biggzy (Post 599933)
Lehto any chance of a 125 - 650 kernel please? fiasco style so i can flash on device, thanx

I have to say that im incompetent and dont have a clue how to make a fiasco image.

titan 2010-04-07 20:21

Re: Overclock the N900?
 
Quote:

Originally Posted by Lehto (Post 599941)
I have to say that im incompetent and dont have a clue how to make a fiasco image.

http://talk.maemo.org/showpost.php?p...&postcount=861

Flandry 2010-04-07 20:22

Re: Overclock the N900?
 
Quote:

Originally Posted by egoshin (Post 599847)
Flandry, this N900 works on highest CPU voltage with 600MHz anyway. There is no way to increase it even more for higher frequencies (at least I don't know).

I though that was what i said. :o The top OPP is considered above spec and that's what's used for 600 MHz. That's what i was referring to...

I definitely don't see any value in tweaking the voltages even higher, if the way to do it becomes known. Without any way to improve the cooling that's just trouble waiting to happen.

biggzy 2010-04-07 20:22

Re: Overclock the N900?
 
Quote:

Originally Posted by Lehto (Post 599941)
I have to say that im incompetent and dont have a clue how to make a fiasco image.

ok Lehto no probs, keep up this great work.

titan 2010-04-07 20:23

Re: Overclock the N900?
 
Quote:

Originally Posted by Lehto (Post 599927)
No Im not. Theres no real way to test it so I cant tell. On my site I've put a note to not to use the DSP overclocked ones unless for some reason you really have to.

was just asking because I also missed the files in the DSP bridge driver.
It may be possible that the DSP is not overclocked over 430MHz unless you change that driver too.

jcompagner 2010-04-07 20:25

Re: Overclock the N900?
 
Quote:

Originally Posted by prana (Post 599850)
Where is the log file located? I want to see those messages. I am using the same OC kernel.

its located in /var/log/ (syslog file)

But you have to have syslogd or sysklogd installed.

Lehto 2010-04-07 20:32

Re: Overclock the N900?
 
Quote:

Originally Posted by biggzy (Post 599950)
ok Lehto no probs, keep up this great work.

Okay I know now how to make them, PM me and I'll hook you up with custom made kernels for your phone. If you wish to serve as a candidate that is? I'm personally interested how low the volts can be taken with 650mhz. As im currently running 750mhz step with 100% stableness with the same voltage setting that is normally used for 500mhz mode.


Quote:

Originally Posted by titan (Post 599951)
was just asking because I also missed the files in the DSP bridge driver.
It may be possible that the DSP is not overclocked over 430MHz unless you change that driver too.

Yeah, I dont really know what would be the use of overclocking the DSP.

I've been wondering what the hell is that L3 rate table setting as when you edit the clock speeds from 83mhz and 166mhz to something else the device feels like somebody put bananas in its exhaust stuttering and being all unresponsive, even the cpu runs at good speeds.

EDIT: Also looked through the omap3630 tables and theres a S200M defined for the L3. What might it be?

AlMehdi 2010-04-07 20:35

Re: Overclock the N900?
 
I just tested and can confirm when making a call the titan-oc resets to 600mhz. A reboot is needed to get the oc back. But when receiving a call it don't.

I also noticed a jump in cpu temp when making the call then reboot right after. Normaly i am around 20 degree on 850mhz but when doing this i was at 30 degrees for a brief time.

Matan 2010-04-07 20:35

Re: Overclock the N900?
 
Quote:

Originally Posted by Lehto (Post 599960)
Okay I know now how to make them, PM me and I'll hook you up with custom made kernels for your phone. If you wish to serve as a candidate that is? I'm personally interested how low the volts can be taken with 650mhz. As im currently running 750mhz step with 100% stableness with the same voltage setting that is normally used for 500mhz mode.


This will be (very) different for each individual CPU.

Lehto 2010-04-07 20:39

Re: Overclock the N900?
 
Quote:

Originally Posted by Matan (Post 599964)
This will be (very) different for each individual CPU.

Yeah Im familiar with this. Just interested how much scale is there in phones and at the same time mapping how bad chip I've got.

titan 2010-04-07 20:45

Re: Overclock the N900?
 
I did some tests with a kernel that has 601MHz instead 600MHz in the table of supported frequencies.
booting with 700MHz worked fine until I made a call - it switched to 600MHz ;-(

could someone with one of Lehto's kernels please report
Code:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
make a phone call, and report the same value after the call?
thanks!

casper27 2010-04-07 20:49

Re: Overclock the N900?
 
Quote:

Originally Posted by AlMehdi (Post 599963)
I just tested and can confirm when making a call the titan-oc resets to 600mhz. A reboot is needed to get the oc back. But when receiving a call it don't.

I also noticed a jump in cpu temp when making the call then reboot right after. Normaly i am around 20 degree on 850mhz but when doing this i was at 30 degrees for a brief time.

Also confirmed when making a call it takes it back down to 600.

thecube 2010-04-07 20:50

Re: Overclock the N900?
 
Quote:

Originally Posted by casper27 (Post 599978)
Also confirmed when making a call it takes it back down to 600.

this is really weird

rpgAmazon 2010-04-07 20:52

Re: Overclock the N900?
 
Lehto 950mhz: It reports allways 600000, Corky working at 950mhz... confused

hqh 2010-04-07 20:55

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599973)
could someone with one of Lehto's kernels please report
Code:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
make a phone call, and report the same value after the call?
thanks!

Not running Lehto's kernel, but I think mine has the same modifications (250-750MHz).

Interestingly scaling_max_freq always shows 600MHz (from /etc/pmconfig I guess). scaling_available_frequencies still lists 750MHz though, and scaling_cur_freq seems to go to 750 like it should. Phone call does reset scaling_max_freq to 600 if I change it.

thecube 2010-04-07 20:57

Re: Overclock the N900?
 
but the modified kernels don t change....so..

it really be nice to make a "power button" to turn it on and off :-)

Matan 2010-04-07 20:58

Re: Overclock the N900?
 
Empirically - it seems to me that the meaning of scaling_max_frequency is:
The maximum frequency that will be used is the lowest one that is >= scaling_max_frequency.

thecube 2010-04-07 21:02

Re: Overclock the N900?
 
yeahh :-)

Post 600000 :p

how can I get the current temp?

prana 2010-04-07 21:03

Re: Overclock the N900?
 
Quote:

Originally Posted by jcompagner (Post 599952)
its located in /var/log/ (syslog file)

But you have to have syslogd or sysklogd installed.

I see. I was wondering why /var/log didn't have the usual messages file or a syslog file. Thanks.

miwalter 2010-04-07 21:04

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599973)
I did some tests with a kernel that has 601MHz instead 600MHz in the table of supported frequencies.
booting with 700MHz worked fine until I made a call - it switched to 600MHz ;-(

could someone with one of Lehto's kernels please report
Code:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
make a phone call, and report the same value after the call?
thanks!

Before a call:
Code:

Nokia-N900-51-1:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
900000

After a call:
Code:

Nokia-N900-51-1:~# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
600000

Additional info:
Code:

Nokia-N900-51-1:~# cat /sys/devices/system/cpu/cpu0/cpufreq//cpuinfo_max_freq
930000
Nokia-N900-51-1:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
930000 127730
595000 1264
500000 20578
250000 317428
125000 11314

And a couple of seconds later:
Code:

Nokia-N900-51-1:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
930000 128530
595000 1264
500000 20578
250000 317728
125000 12292

It reports a max of 600mhz - but still uses the 930mhz.

titan 2010-04-07 21:05

Re: Overclock the N900?
 
I noticed that during the call both min and max are set to 600Mhz (using console via ssh).
after the call the minimum is reset to 250MHz.
can someone confirm that during extended phonecalls, even with the stock kernel,
scaling_min_freq, scaling_max_freq and scaling_cur_freq are 600000?

it would mean that Nokia keeps your device at the dangerous 600MHz during an entire extended phone call!
Calling is overclocking!

Bernard Wei 2010-04-07 21:07

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599565)
another observation: The dmse daemon seems to overwrite the max. freq. in the kernel with the value
from /etc/pmconfig every hour or so.

I noticed something quite strange. I am using a kernel configured to go as low as 125 and as high as 900, with pmconfig to clock from 250 to 800.

I then set different min/max via /sys/device for testing. I set it to 250-900 for speed testing, then 125-500 for underclocking, all done via /sys/device/system/..

With the speed set at 125-500, the device mysteriously clock up to 600 during a phone call, taking neither the 500 I set or the 800 in pmconfig. Weird :confused:

Lehto 2010-04-07 21:07

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 600003)
I noticed that during the call both min and max are set to 600Mhz (using console via ssh).
after the call the minimum is reset to 250MHz.
can someone confirm that during extended phonecalls, even with the stock kernel,
scaling_min_freq, scaling_max_freq and scaling_cur_freq are 600000?

This MIGHT possibly explain the reason why one user reported that the phone calls worked more smoothly with my crude OC kernel. As for that thing the min and max will be the maximum speed during phone call (bye bye battery life!).

Rushmore 2010-04-07 21:09

Re: Overclock the N900?
 
Quote:

Originally Posted by egoshin (Post 599769)
The reason is simple - battery.

Stability is too but it is not for underclocking like Droid.

Frying has nothing with it - CPU was designed by ARM and basing on common technology licensing practice I guess TI didn't change anything in it's design because ARM did all work - thermal, radio emmision, delay propogation etc. So, TI got ARM design which can run on max freq from 600MHz to 1GHz.

However, the TI production line quality limits an effective max frequency and for stable run use 600MHz. But your mileage varies...

(usual disclaimer: anything here is for education purpose only and is not intended to convince you for overclocking or doing something bad).

Battery IS the reason for the Droid clock. That being said, most report little battery impact with the 800mhz, low volt kernel after nearly several months of use. People that set the max to 1ghz and beyond are experiencing battery issues, but that is more due to hitting the operational ceiling of the chip. Hit that, and all kinds of battery, heat and lock-ups happen in an accelerated manner.

Based on mining waaay to many threads, most people that clock at 1.1 ghz or higher are having problems on Droid.

miwalter 2010-04-07 21:10

Re: Overclock the N900?
 
Quote:

Originally Posted by Lehto (Post 600007)
This MIGHT possibly explain the reason why one user reported that the phone calls worked more smoothly with my crude OC kernel. As for that thing the min and max will be the maximum speed during phone call (bye bye battery life!).

If the phone uses max mhz during calls, this would be a showstopper for me - only because of easter-holidays I'm not using the phone that much as a phone as I usualy do... :eek:

Very interesting thread!

hqh 2010-04-07 21:15

Re: Overclock the N900?
 
So the phone app apparently has the values hardcoded in...

titan 2010-04-07 21:16

Re: Overclock the N900?
 
Quote:

Originally Posted by thecube (Post 600000)
yeahh :-)
Post 600000 :p

what a coincidence! we are just fighting with the damn 600000 Hz limit! :D

Rushmore 2010-04-07 21:17

Re: Overclock the N900?
 
Are we sure about Conky being accurate? I still notice that 160kb MP3's being played by the built-in media player report:

1. Clock = 125mhz, 500mhz and 800 mhz (fluctuates, but mainly on 125)
2. CPU usage does not deviate from 50% to 53% (4 point range)

Usage seems to not correlate well with what the clock is reporting at the same time. Why go from 125mhz and up to 800mhz, yet usage never deviates from within four point of 50%.

CraigRobbo 2010-04-07 21:18

Re: Overclock the N900?
 
I am on my 3rd day of using 900mhz kernal - been pushing it with emulators, apps music etc...running great and no problems at all.

titan 2010-04-07 21:19

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 599973)
I did some tests with a kernel that has 601MHz instead 600MHz in the table of supported frequencies.
booting with 700MHz worked fine until I made a call - it switched to 600MHz ;-(

brief summary:
phone application sets the frequency to the next available frequency >= 600MHz during phone calls.
If you use one of the hardcoded kernels with high frequencies you're phone is at the max. freq. during the phone call and overheats!
with my kernel the frequency during phone calls is 600Mhz as with the stock kernel. However, it is not reset to the user-specified max. freq after the call.

EDIT: with SIP >=600MHz lock is only during call initiation, during the call it is 500Mhz.

my next experiment is to keep the 601Mhz settings and ignore all requests to change to 600MHz, i.e. during calls it would not fix it to >= 600MHz.

rpgAmazon 2010-04-07 21:20

Re: Overclock the N900?
 
Confused: Lehto's one phone call are at 600 or 950 (my case) clocked?
No matter for me, lots of very short calls... but if Lehto calls=950 mhz then Titan+Lehto works equals to allways working clock selection, I'm right?

zlatokosi 2010-04-07 21:26

Re: Overclock the N900?
 
Quote:

Originally Posted by Lehto (Post 600007)
This MIGHT possibly explain the reason why one user reported that the phone calls worked more smoothly with my crude OC kernel. As for that thing the min and max will be the maximum speed during phone call (bye bye battery life!).

Woooaaa, hold on. So if I understand this correctly, cpu is constantly at 600 mhz during phonecalls (or only when initiating a phonecall?). If that's the case, wouldn't longer phonecalls (1 hour+) be dangerous for the cpu, according to Nokia? Maybe that is why they advise against oc's and why the standard kernel maxes at 600. Now that I wrote that, it really doesn't make sense, since even on oc'd kernels the value decreases back to 600...

Thanks again for the kernels, Lehto and Titan.

UNderworld 2010-04-07 21:28

Re: Overclock the N900?
 
I just opened up conky and made a phone call... with stock clocks - it was 600, went to 500, then 250.... during the call.....

but stayes on 500mhz during skype call :S

egoshin 2010-04-07 21:30

Re: Overclock the N900?
 
Quote:

Originally Posted by titan (Post 600003)
I noticed that during the call both min and max are set to 600Mhz (using console via ssh).
after the call the minimum is reset to 250MHz.
can someone confirm that during extended phonecalls, even with the stock kernel,
scaling_min_freq, scaling_max_freq and scaling_cur_freq are 600000?

it would mean that Nokia keeps your device at the dangerous 600MHz during an entire extended phone call!
Calling is overclocking!

Stock PR1.1 kernel, before call:

# cat scaling_min_freq scaling_max_freq scaling_cur_freq cpuinfo_min_freq cpuinfo_max_freq cpuinfo_cur_freq
250000
600000
250000
250000
600000
249600

During call:

# cat scaling_min_freq scaling_max_freq scaling_cur_freq cpuinfo_min_freq cpuinfo_max_freq cpuinfo_cur_freq
250000
600000
250000
250000
600000
249600

Got via WiFi ssh.

EDIT: I have set value "1" in "ondemand/ignore_nice_load" to prevent tracker from eating battery (testing it).

EDIT2: I also have both sr_vdd1_autocomp and sr_vdd2_autocomp set to "1".

Lehto 2010-04-07 21:31

Re: Overclock the N900?
 
Quote:

Originally Posted by zlatokosi (Post 600033)
Woooaaa, hold on. So if I understand this correctly, cpu is constantly at 600 mhz during phonecalls (or only when initiating a phonecall?). If that's the case, wouldn't longer phonecalls (1 hour+) be dangerous for the cpu, according to Nokia? Maybe that is why they advise against oc's and why the standard kernel maxes at 600. Now that I wrote that, it really doesn't make sense, since even on oc'd kernels the value decreases back to 600...

Thanks again for the kernels, Lehto and Titan.

No idea. I'll publish a set of low voltage 800mhz kernels in near future on my fantastic iPad compatible website. This should effectively prevent some of the heat problems (however these kernels wont work for everyone!)

My AWESOME website.

titan 2010-04-07 21:33

Re: Overclock the N900?
 
correction: with SIP >=600MHz lock is only during call initiation, during the call it is 500Mhz.


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

vBulletin® Version 3.8.8