Re: static scheduling - SCHED_IDLE?

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Wed Mar 14 2001 - 08:19:44 EST


Rik van Riel wrote:
> > reschedule:
> > orl $PF_HONOUR_LOW_PRIORITY,flags(%ebx)
> > call SYMBOL_NAME(schedule) # test
> > andl $~PF_HONOUR_LOW_PRIORITY,flags(%ebx)
> > jmp ret_from_sys_call
>
> Wonderful !
>
> I think we'll want to use this, since we can use it for:
>
> 1. SCHED_IDLE
> 2. load control, when the VM starts thrashing we can just
> suspend a few processes to make sure the system as a
> whole won't thrash to death

Surely it would be easier, and more appropriate, to make the processes
sleep when they next page fault.

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



This archive was generated by hypermail 2b29 : Thu Mar 15 2001 - 21:00:16 EST