2004-09-20 22:43:30

by Con Kolivas

[permalink] [raw]
Subject: Re: Add on-demand cpu-freq governor as default option

Dominik Brodowski writes:

> I'm sorry, but this can't be done at the moment. The default cpufreq
> governor needs to be one which can't fail to start up. And on-demand has
> quite strict requirements on when it allows to be started and when it
> doesn't.

Ah ok. Thanks.

2 little questions please?

1. Would it be inappropriate to make it drop back to a different governor so
that it can be selected?
2. Can cpu throttling be incorporated into this governor as well as a
secondary mechanism for the lowest cpu frequency and as a primary
mechanism for those cpus that don't support cpufreq?

Cheers,
Con


2004-09-21 16:25:04

by Dominik Brodowski

[permalink] [raw]
Subject: Re: Add on-demand cpu-freq governor as default option

Hi,

On Tue, Sep 21, 2004 at 08:43:09AM +1000, Con Kolivas wrote:
> 1. Would it be inappropriate to make it drop back to a different governor
> so that it can be selected?

This would involve major changes to the cpufreq core, and it wouldn't make
it easier. I'll add it to my TODO list and think about it again once more
important issues are adressed. Agreed?

> 2. Can cpu throttling be incorporated into this governor as well as a
> secondary mechanism for the lowest cpu frequency and as a primary
> mechanism for those cpus that don't support cpufreq?

a) it hasn't to do anything with the _governor_. The governor works with
whatever method is offered to him, may it be frequency scaling or
throttling. Actually, some CPUfreq drivers actually only do throttling, and
you can use ondemand for them [if their latency values are set correctly,
that is].

b) on-demand throttling is useless. Throttling sets the CPU to the same
internal power state as the ACPI idle state C2 does [and C2 has quite the
same energy consumption as C1, actually...], so lowering the time spent
idling and increasing throttling doesn't save energy, while lowering idling
and increasing frequency scaling does save much energy.

c) As throttling does make sense for thermal management and certain energy
consumption requirements [e.g. the battery isn't strong enough for the CPU
running at 100%], adapting the CPUfreq core to support loading one frequency
scaling and one frequency throttling driver at the same time is something I
have in my TODO list as well. Nonetheless, it will not be made available for
"on-demand" throttling, unless I'm convinced otherwise.

Thanks,
Dominik