Reply
Thread Tools
Posts: 57 | Thanked: 2 times | Joined on Apr 2008 @ Germany
#1
hiho

is there a program to check N900's cpu clock

a benchmark would help as well...

thanks in advance
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#2
for a very basic check, you can do (in xtermnal)

cat /proc/cpuinfo

Edit: Wrong! See below..

Last edited by kwotski; 2009-12-11 at 00:48.
 
msa's Avatar
Posts: 909 | Thanked: 216 times | Joined on Nov 2009 @ Bremen, Germany
#3
check wikipedia: 600 mhz
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#4
Oops, I should have said:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
There's other stuff in the same directory:

Code:
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
600000 550000 500000 250000

~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
600000 50910
550000 1552
500000 18403
250000 838257
 

The Following 4 Users Say Thank You to kwotski For This Useful Post:
Posts: 57 | Thanked: 2 times | Joined on Apr 2008 @ Germany
#5
thx kwotski

but for now its not possible to check the actual cpu clock?

maybe someone could write an app based on the commands u mentioned...
 

The Following User Says Thank You to J0ph33 For This Useful Post:
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#6
Originally Posted by J0ph33 View Post
but for now its not possible to check the actual cpu clock?
It'll vary by as much as 400MHz several times a second. Why do you care?
__________________
Ryan Abel
 

The Following User Says Thank You to GeneralAntilles For This Useful Post:
Posts: 92 | Thanked: 69 times | Joined on Nov 2009 @ UK
#7
i guess a rolling average is what is being asked for?
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#8
Yeah, I think you really want a benchmark, probably

You won't get much closer to the "actual" clock than reading stuff out of /proc, since (though it looks like a file) the data I mentioned in there is in fact directly accessing data placed in RAM by the kernel routines that are the best informed of anyone about what state the clock is at least supposed to be in.

For a quick "rolling average 'app'" you could try running:

Code:
watch -n 1 "perl -ne 'if(/(\d+)\s+(\d+)/){\$c += \$1 * \$2; \$t += \$2; }END{ \$a = \$c / \$t; print \"\$c cycles in \$t secs, avg: \$a\n\";}' /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state"
in x-term

At this time of night, I'm not guaranteeing the arithmetic..
 

The Following 2 Users Say Thank You to kwotski For This Useful Post:
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#9
Originally Posted by fusi View Post
i guess a rolling average is what is being asked for?
OK, how about powertop?
__________________
Ryan Abel
 
Posts: 267 | Thanked: 128 times | Joined on Sep 2009 @ Somerville MA - USA
#10
Would it be possible to take the governor off the cpu clock? I believe it is currently under clocked to increase battery performance.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:39.