If it is the 2.2.16 scheduler & other linux'es have a bug.
The following code snippets can go into a tight loop.
while (p != &init_task)
int weight = goodness(prev, p, this_cpu);
if (weight > c)
c = weight, next = p;
p = p->next_run;
/* Do we need to re-calculate counters? */
struct task_struct *p;
p->counter = (p->counter >> 1) + p->priority;
If the weight & priority of all runnable processes is 0 then the
recalculate with recalculate p->counter=0 for all runnable processes,
& the code will go into a tight loop between the goodness calculation &
Not very robust in my opinion.
D.J. Barrow Linux for S/390 kernel developer
IBM Germany Lab, Schönaicherstr. 220, 71032 Böblingen
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:30 EST