maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   performance (https://talk.maemo.org/showthread.php?t=30785)

gheghe_diego 2009-08-13 13:18

performance
 
hi!
i've a question:
it is possible to create a program that you choose the performance?
for example:
save battery -> 400MHz, low light on the screen, ecc
normal -> 600MHz, ecc
Multimedia -> 5/600 MHz high light on the screen
High performance -> 800MHz/1GHz

is someone to have the capacity for realize this program ?
i think that's a good idea for a wonderful program

Andre Klapper 2009-08-13 13:24

Re: performance
 
Hmm, I think the system itself should be intelligent enough to do this. Why should a user have to take the burden to decide this?
Can you come up with an explicit usecase for "save battery -> 400MHz, low light on the screen" that's not covered by the current N810 that dims the screen after some time anyway?
Why would you want to not use the complete power for "normal" performance? 4 days of battery life in stand-by mode not enough? :-)

gheghe_diego 2009-08-13 13:34

Re: performance
 
yes, you're right. i have the n800 ad i forgot that the n810 can do that...
but this is not a bad idea...
adn what about the high performance? when i go on tne internet i must have a high performance to see the page with full flash, 5 or 6 page on the same time, pop up and so on...

tamarin2087 2009-08-13 13:50

Re: performance
 
Advanced Power and Advanced Power Monitor (https://garage.maemo.org/projects/advanced-power/) have a CPU Policy option that lets you choose between options like 'conservative','on-demand' and 'performance'. I've found it to be useful for times when I need top stretch the battery life due to a lack of power for an extended time.

gheghe_diego 2009-08-13 14:01

Re: performance
 
ohhh fantastic! that's what i'm looking for!!
thank you!!

Den in USA 2009-08-13 14:25

Re: performance
 
Quote:

Originally Posted by tamarin2087 (Post 311475)
Advanced Power and Advanced Power Monitor (https://garage.maemo.org/projects/advanced-power/) have a CPU Policy option that lets you choose between options like 'conservative','on-demand' and 'performance'. I've found it to be useful for times when I need top stretch the battery life due to a lack of power for an extended time.

I just installed Advanced Power Monitor, how do I access the application?

attila77 2009-08-13 14:43

Re: performance
 
Just click the battery applet and you'll have options under 'CPU policy'. If cpu policy is not enabled by default, you can enable it in settings->items (again in the battery menu).

pinguino89 2009-08-13 14:49

Re: performance
 
Just to know, when i put the device in "performance mode", the clock is 400mhz. When is "ondemand" it's 400mhz ever...
what's the difference???
ondemand means that it space between 165 and 400mhz, but performance is always on 400mhz...
what's the advantage?

hyartep 2009-08-13 16:17

Re: performance
 
Quote:

Originally Posted by pinguino89 (Post 311489)
Just to know, when i put the device in "performance mode", the clock is 400mhz. When is "ondemand" it's 400mhz ever...
what's the difference???
ondemand means that it space between 165 and 400mhz, but performance is always on 400mhz...
what's the advantage?

i'm not sure i understand your question. however, reason for performance mode is, that system does not need to check for cpu usage and does not try to scale cpu, therefore gives a little bit better performance than "ondemmand".

pinguino89 2009-08-13 16:43

Re: performance
 
ha ok Understood, I was asking me, wy "performance" if the maximum is always 400 mhz

elimoon8 2009-08-13 18:18

Re: performance
 
If I understand correctly, the performance mode puts the processor constantly at 400 mhz, while "on-demand" lets the processor scale its performance up and down, due to what is required of it and to save battery. If it's not being used, it can operate, say, at 200 mhz and it won't impact use. The "conservative" mode keeps the processor lower than the maximum at all times. The processor is never "overclocked". To keep the device and components safe from overheating, the processors is never forced to go to 600 mhz or 1 ghz.

Thesandlord 2009-08-13 18:54

Re: performance
 
The processor never overclocks. It can't go to 600mhz or 1ghz.

Performance: Always at 400mhz
On-demand: Scales between 165mhz and 400mhz
Conservative: Always at 165mhz

Performance mode, AFAIK, was discovered by lcuk when he was making liqbase. The algorithms were so efficient that the tablet would scale down the processor and make the animations jerky. So he found out if you force it to stay at the max, it works a lot better.

Also, I have not found any significant battery savings between the modes, so performance is the best.

lardman 2009-08-13 21:33

Re: performance
 
The "performance" governor will give worse battery life but probably slightly improved latency than "ondemand". If you wish to modify the CPU scaling from userspace you could always use the "userspace" governor with a suitable daemon to monitor activity and alter the CPU speed.

E.g. http://www.thinkwiki.org/wiki/How_to...caling_Daemons

GeneralAntilles 2009-08-13 23:42

Re: performance
 
Quote:

Originally Posted by lardman (Post 311597)
The "performance" governor will give worse battery life but probably slightly improved latency than "ondemand".

Not to overcomplicated things, but there are a number of situations where performance can actually provide slightly better battery life.

nwerneck 2009-08-14 01:03

Re: performance
 
Quote:

Originally Posted by GeneralAntilles (Post 311637)
Not to overcomplicated things, but there are a number of situations where performance can actually provide slightly better battery life.

And how is that?

(BTW, when we say 'battery life' are we talking about the time it would take to discharge the abttery befre recharging, or the actual life of the battey in the long run, i.e. years before it can't take much charge anymore?)

mrojas 2009-08-14 01:11

Re: performance
 
Quote:

Originally Posted by nwerneck (Post 311644)
And how is that?

(BTW, when we say 'battery life' are we talking about the time it would take to discharge the abttery befre recharging, or the actual life of the battey in the long run, i.e. years before it can't take much charge anymore?)

Probably because the CPU running at its highest speed can finish a task sooner and then go to idle.

GeneralAntilles 2009-08-14 01:58

Re: performance
 
Quote:

Originally Posted by nwerneck (Post 311644)
(BTW, when we say 'battery life' are we talking about the time it would take to discharge the abttery befre recharging, or the actual life of the battey in the long run, i.e. years before it can't take much charge anymore?)

How many hours of charge it gives you.

Quote:

Originally Posted by mrojas (Post 311645)
Probably because the CPU running at its highest speed can finish a task sooner and then go to idle.

Basically (race-to-idle). The problem with performance is when tasks are sitting around using CPU all day long (even at 0.1%). Then the CPU sits on all that time at a much higher voltage than it would in ondemand.

If you don't have any tasks using CPU frequently, however, the CPU will actually spend less time active in performance than ondemand.

lardman 2009-08-14 08:32

Re: performance
 
Hmm, I understand the reasoning, but is this actually true for our devices?

We'd need to know the power consumption at the different CPU freqs and once the clock has stopped due to the dyntick stuff too, and then decide what usage scenario is most applicable, I don't suppose anyone has that info lying about?

GeneralAntilles 2009-08-14 12:34

Re: performance
 
Quote:

Originally Posted by lardman (Post 311672)
Hmm, I understand the reasoning, but is this actually true for our devices?

Yes.

Quote:

Originally Posted by lardman (Post 311672)
We'd need to know the power consumption at the different CPU freqs and once the clock has stopped due to the dyntick stuff too, and then decide what usage scenario is most applicable, I don't suppose anyone has that info lying about?

I don't have exact numbers on the consumption handy, but there definitely is a large difference.

ssam 2009-08-14 14:27

Re: performance
 
you will save power by letting the run fast, to get a job done, and then it can drop to a low power idle mode. search "matthew garrett power management" for some good blog posts and videos.

i imagine this is even more true on an arm cpu (compared to desktop/laptop cpus), as it have very low power idle modes.

if you have things running in the background using cpu, they are either along the lines of
* sleep for n milliseconds/seconds/minutes, do something, sleep again
* run as fast as possible all the time

the first case, the soon the job can finish, the sooner you can save power again.

the second case will drain your battery pretty quick no matter what you do.

has anyone tried running powertop on an IT

KristianW 2009-08-14 17:15

Re: performance
 
Quote:

Originally Posted by ssam (Post 311704)
- - -
search "matthew garrett power management" for some good blog posts and videos.
- - -

http://www.codon.org.uk/~mjg59/power...practices.html

lardman 2009-08-22 00:22

Re: performance
 
Sorry to dredge up this slightly old thread, I've finally got round to reading the above link, and its conclusion is:

"Summary: Use ondemand. Conservative is a valid option for processors that take a sufficiently long time to switch performance states that ondemand will not work. "

Which is fine, as that's what happens on the tablets.


All times are GMT. The time now is 03:24.

vBulletin® Version 3.8.8