In the longer term, I'd suggest modifying this idea to use the maximum
of rq->raw_weighted_load and a running average of rq->raw_weighted_load
much the same as was done within the load balancer code. This will tend
to make scheduling "smoother". To try the idea out you could (on an SMP
system) use one of the rq->cpu_load[] metrics as the running average.
Peter
--
Peter Williams pwil3058@bigpond.net.au
"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
-