olha essa msg do Alan Cox:

> I am having almost the same problem in 2.4.12-ac1:
>
> gallir@linux:~$ uname -a
> Linux linux 2.4.12-ac1 #2 Fri Oct 12 19:01:03 CEST 2001 i686 unknown
>
> kapm-idled consumes a 14% of CPU (in a P3 1GHz)
>
> PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>   3 root      17   0     0    0     0 RW   14.3  0.0   1:17 kapm-idled
>
> The same happens with vanilla Linus tree (tested up to 2.4.11). In a P2,
> CPU consuption was more than 85%.
>
> The CPU's temperature, while the system idle, is more than 4 degrees (C)
> higher than the same conditions with the kapm-idled disabled.

I've been reading throught the APM spec and code a bit further. The more
I read the more I wonder quite how our idle code is meant to work and what
kind of beer was overconsumed during its writing.

There are two glaring issues I can see right now

#1      The BIOS might sleep for a tick, but it is also is allowed to slow
        the cpu and return straight back to us.

        If it returns back to us we spin in a tight loop at the lower clock
        speed calling the APM bios. Not ideal.

        Just fixed that in my tree for the next -ac

#2      We test system_idle() nr_running==1, but we spent all our time
        pretending we aren't running. Im not 100% sure the test is safe
        yet

Alan

Bogo wrote:

> Por acaso � um Linux Mandrake 8.0? Quando eu utilizava essa distro, tive o
> mesmo problema. N�o consegui resolver de modo algum. Depois passei a usar o
> 8.1 e esse problema desapareceu. N�o encontrei nada relacionado no site da
> Mandrake. Com rela��o a esse problema em outras distros, n�o tenho
> conhecimento
>              Jos� Bogo Junior
>             [EMAIL PROTECTED]
>            Linux User - 185674
>          "Seja Livre - Use Linux"


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Assinantes em 20/02/2002: 2249
Mensagens recebidas desde 07/01/1999: 155455
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a