Reply
Thread Tools
Posts: 191 | Thanked: 415 times | Joined on Jan 2012
#1
I have been interested in the effect of kernel-power v49 on battery usage, particularly with smartreflex enabled, so I ran a few tests to have a rough ideia of its impact.

The system runs CSSU testing, and the test setup was:
* install mplayer and i2c-tools
* enable offline mode
* mute the volume
* turn off the screen just before the test (see below)
The rationale is to control the test scenario and minimize the power consumption of other N900 components, so the test results can better measure the MPU power consumption.

For this test I have chosen playing mp3 files as 'load'.

The test is as follows:
1. read current battery status (with i2cget)
2. play some music files (with mplayer)
3. read current battery status again
4. calculate the diff of 1 and 3
The atual shell code I used in the test is:
Code:
#! /bin/sh
sleep 2
before=$(i2cget -y 2 0x55 0x0c w)
/bin/su - user -c "mplayer -really-quiet -loop $1 $2"
after=$(i2cget -y 2 0x55 0x0c w)
echo "$before-$after = $(($before - $after))"
The /bin/su is required because mplayer bombs when run as root. During the sleep I turned the screen off.

Warning: i2c-tools is very low level and may damage the hw if used incorrectly.

In my test I used a ~5min mp3 with a 5x loop, which gives about 25-30min of playing.

The results are the following.

| load | nokia kernel | kp49 default | kp49 dsp | kp49 starving |
| mp3 | 165 | 145 | 145 | 154 |
| mp3 | 100% | 88% | 88% | 93% |

Each test has been run at least 3 times and the lower number is presented in the table.

Conclusions for my device with load 'playing mp3,':
* the most power efficient case is kp49 with smartreflex enabled;
* for my device with load 'playing mp3,' overclocking does not save power (the saying goes that overclocking may improve battery usage since code runs faster and processor idles sooner);
* smartreflex is more power efficient than undervolting the processor.

Congratulations to the KP team and, in particular, to those working on SR!

It would be interesting to see more results with other N900s and other loads.

history:
* check post #2 for relevant considerations
* added numbers for 'starving' profile

Last edited by caveman; 2012-01-15 at 15:59. Reason: updated based on comments
 

The Following 17 Users Say Thank You to caveman For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#2
You have to add "on this particular device" too, as SR is device dependent. And you don't see any battery savings with overclocking as mp3 is not MPU intensive, playng such usualy requires frequencies between 250 and 500. Try something which is more CPU intensive. And you can do the same measurements with DSP involved (i.e. playing a video).

Otherwise big thanks for the research.
 

The Following 3 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#3
@Karam - here is your way to prove whether battery patch reduces battery usage.
 

The Following 2 Users Say Thank You to freemangordon For This Useful Post:
Posts: 112 | Thanked: 92 times | Joined on Nov 2010
#4
@ caveman,

Would you have time to do another run with a custom sane undervolt profile to compare the benifis of having SR on to do the undervolting on the fly and to have the device permanatly undervolted using a custom profile.

for starters you could create a new profile with +2 noches in voltage values for each frequency vs the values calculated by SR.( On your device of course)

and yes, as freemangodan suggested would highly appreciate if you can use a video or something of that sort to create a higher mpu load.

/nkirk
 

The Following User Says Thank You to nkirk For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#5
Also, consider the fact that overclocking lower limit (i.e. setting 500-900) result in power savings during standby - as N900 finish it's "idle tasks" quicker, sitting in 0mhz longer every second (as compared to switching into 125 or 250 mhz lower limit while idle - see batterypatch or other voodoo that actually use power to monitor dbus events (idle, locked etc)

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#6
Also, consider the fact that overclocking lower limit (i.e. setting 500-900) result in power savings during standby - as N900 finish it's "idle tasks" quicker, sitting in 0mhz longer every second (as compared to switching into 125 or 250 mhz lower limit while idle - see batterypatch or other voodoo that actually use power to monitor dbus events (idle, locked etc)

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 
Posts: 191 | Thanked: 415 times | Joined on Jan 2012
#7
Originally Posted by nkirk View Post
@ caveman,
Would you have time to do another run with a custom sane undervolt profile to compare the benifis of having SR on to do the undervolting on the fly and to have the device permanatly undervolted using a custom profile.
/nkirk
Good idea! Based on your suggestion I added numbers taken with the starving profile.
 
Posts: 191 | Thanked: 415 times | Joined on Jan 2012
#8
Originally Posted by freemangordon View Post
You have to add "on this particular device" too, as SR is device dependent. And you don't see any battery savings with overclocking as mp3 is not MPU intensive, playng such usualy requires frequencies between 250 and 500. Try something which is more CPU intensive. And you can do the same measurements with DSP involved (i.e. playing a video).
You are right. I will run a few tests using video as load to compare the numbers, in particular to test if overclocking saves power.
 

The Following User Says Thank You to caveman For This Useful Post:
Posts: 191 | Thanked: 415 times | Joined on Jan 2012
#9
I ran a few tests using video as load, and the results were startling if not unexpected.

All tests used the same procedured outlined above, but I used a video file as load, instead of a music file. For those interested in running the same test, the video was the mp4 trailer @ 480 of sintel, from http://www.sintel.org/. It runs for about 50s, and I used a 10x loop.

The results follow:
| profile | juice | % |
| default | 245 | 100% |
| dsp | 270 | 110% |
| starving | 245 | 100% |

So for my phone, OC does not save power, at least playing video with mplayer.
 

The Following 2 Users Say Thank You to caveman For This Useful Post:
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#10
Originally Posted by caveman View Post
I ran a few tests using video as load, and the results were startling if not unexpected.

All tests used the same procedured outlined above, but I used a video file as load, instead of a music file. For those interested in running the same test, the video was the mp4 trailer @ 480 of sintel, from http://www.sintel.org/. It runs for about 50s, and I used a 10x loop.

The results follow:
| profile | juice | % |
| default | 245 | 100% |
| dsp | 270 | 110% |
| starving | 245 | 100% |

So for my phone, OC does not save power, at least playing video with mplayer.
Interesting, though I'm not convinced the full story has yet been told.

Just imagine how different things would have been if such careful investigation had been undertaken when overclocking was first proposed; instead the powers that be chose to focus on bogus and hysterical scare stories.
__________________
All I want is 40 acres, a mule, and Xterm.
 

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


 
Forum Jump


All times are GMT. The time now is 12:56.