Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 10 Mar 2001 09:09:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 10 Mar 2001 09:09:26 -0500 Received: from brutus.conectiva.com.br ([200.250.58.146]:36346 "HELO burns.conectiva") by vger.kernel.org with SMTP id ; Sat, 10 Mar 2001 09:09:07 -0500 Date: Sat, 10 Mar 2001 01:56:41 -0300 (BRST) From: Rik van Riel X-X-Sender: To: Jamie Lokier cc: Boris Dragovic , Oswald Buddenhagen , Subject: Re: static scheduling - SCHED_IDLE? In-Reply-To: <20010309210913.F13320@pcep-jamie.cern.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Mar 2001, Jamie Lokier wrote: > Rik van Riel wrote: > > > Just raise the priority whenever the task's in kernel mode. Problem > > > solved. > > > > Remember that a task schedules itself out at the timer interrupt, > > in kernel/sched.c::schedule() ... which is kernel mode ;) > > Even nicer. On x86 change this: > > reschedule: > call SYMBOL_NAME(schedule) # test > jmp ret_from_sys_call > > to this: > > 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 3. ... ? regards, Rik -- Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose... http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com/ - 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/