Time in CPU States
Hi guys,
Has anyone managed to get the: Time in CPU state scripts working from here: http://wiki.maemo.org/Overclocking#A...ArbitRabbit.29 I find that they just give me syntax errors. Any help would be very welcome =] Been tinkering around with some power saving things, one of which were dbus scripts to underclock CPU whilst phone is locked, but I like to check that things are working, so the Time in CPU state would be useful. Unless anyone can think of another way I can check this? Thanks all, Chris |
Re: Time in CPU States
Quote:
http://talk.maemo.org/showthread.php?p=491333 I can't be bothered reading other peoples scripts at this time of night. while true ;do sleep 10;cat /sys/devices/system/cpu/cpu0/cpuidle/state*/time;done|awk 'BEGIN{print "C1\tC2\tC3\tC4"}NR%4==1&&NR>8{print l[0]-o[0]"\t"l[1]-o[1]"\t"l[2]-o[2]"\t"l[3]-o[3]}{k=(NR-1)%4;o[k]=l[k];l[k]=int($0/1000)}' is a simple script to print states every 10s. It outputs milliseconds in each state. It stalls for twice the update period at the beginning, for the obvious reason. |
Re: Time in CPU States
Quote:
Of course powertop does this... I'm an idiot for not thinking of myself =p Thanks for the reminder! |
Re: Time in CPU States
Hi this is my first post, I've recently got myself a N900 and been playing around with it since then
I thought this would be the best thread to ask this... What are the times in cpu states do people get with their phones idle? Idle: I mean when it is not being used, an in lying there with screen off. Here is mine using powertop Code:
Sample interval was 30m 30s 21057us and no 3g used ever. |
Re: Time in CPU States
xchat (30+ channels) over wifi, a periodid (5s) script running, foreca weather widget. openvpn.
C0: 3.4% 600 MHz 23.9%C1: 0.1% 0.4ms C2: 3.4% 7.4ms C3: 18.3% 124.9ms C4: 74.8% 1020.8ms usbhost 100% OFF sgx 100% OFF per 91% OFF dss 100% OFF cam 100% OFF core 74% OFF neon: 74% OFF mpu: 74% OFF iva2: 100% OFF |
Re: Time in CPU States
I guess my freqs are not showing cause my oc-kernel.
Code:
C# | Ratio | Avg/dura | Frequency | Ratio Code:
Total wakeups 452, 15.1/s | IRQ 328, 10.9/s | Timers 124, 4.1/s |
Re: Time in CPU States
thanks guys for responding...
any suggestions on how i can get better than 2 % on C4? looking at your posts, mine definetely looks Wrong!! :confused: please help, do you think I need to reflash? i,d still like to find out the root cause. |
Re: Time in CPU States
Ok i did a few more runs over SSH
And i just don't get it, whats up with C0 at 98.4% !!! :eek: I am really curious now... Top says 0.3% cpu Code:
Mem: 240128K used, 5412K free, 0K shrd, 37892K buff, 57716K cached Code:
C# | Ratio | Avg/dura | Frequency | Ratio Code:
IRQ# | Activity | Type | Name Code:
Power domain activity breakdown Code:
Total wakeups 729, 24.3/s | IRQ 586, 19.5/s | Timers 143, 4.8/s |
Re: Time in CPU States
Well that seems odd. 1% C4, but 91% OFF?
|
Re: Time in CPU States
yeah, and there is nothing there in 'top' as well, either something prevents the cpu from sleeping or my powertop binary is broken! My limited knowledge cannot give me another reason :(
|
All times are GMT. The time now is 08:51. |
vBulletin® Version 3.8.8