Re: [PATCH] Staircase scheduler v7.4

kernel
2004-06-26T03:32:13Z

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

Quoting Michael Buesch <mbuesch@freenet.de>:
> But as the load grows, the system is usable as with load 0.0.
> And it really should be usable with 76.0% nice. ;) No problem here.
> This really high load is not correct.

There was the one clear bug that Adrian Drzewiecki found (thanks!) that is easy
to fix. Can you see if this has any effect before I go searching elsewhere?

Con

[-- Attachment #2: staircase7.4-1 --]
[-- Type: application/octet-stream, Size: 519 bytes --]

--- linux-2.6.7/kernel/sched.c 2004-06-26 13:27:47.601409062 +1000
+++ linux-2.6.7-ck2/kernel/sched.c 2004-06-26 13:08:07.000000000 +1000
@@ -231,8 +231,8 @@ static void dequeue_task(struct task_str

static void enqueue_task(struct task_struct *p, runqueue_t *rq)
{
- if (rq->curr->flags & PF_PREEMPTED) {
- rq->curr->flags &= ~PF_PREEMPTED;
+ if (p->flags & PF_PREEMPTED) {
+ p->flags &= ~PF_PREEMPTED;
list_add(&p->run_list, rq->queue + p->prio);
} else
list_add_tail(&p->run_list, rq->queue + p->prio);