Re: CPU usage (Read by `top`)

From: Pavel Machek (pavel@suse.cz)
Date: Thu Jan 20 2000 - 15:20:16 EST


Hi!

> > > Now sched_yield(), itself, works well. The problem is that the task
> > > that gave up the CPU is still being 'Charged' for it!
> >
> > Well, I used to had worse case: software that sleeps "just before" it
> > would be charged is charged 0% even if it eats 80% or so.
> >
> > Clearly, cpu metering is broken. There's no easy way to fix it.
> > Pavel
> > --
>
> Just wanted to get it into the queue of things that should be fixed
> before the next big leap into some future improvement project that
> sometimes leaves old bugs unfixed.

Well - it is not quite clear if this bug should be fixed.

Current method is very_low_overhead and wrong.

Is it worth to add overhead?
                                                                Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:23 EST