Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Dec 2001 12:18:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Dec 2001 12:18:48 -0500 Received: from mail.xmailserver.org ([208.129.208.52]:30221 "EHLO mail.xmailserver.org") by vger.kernel.org with ESMTP id ; Fri, 28 Dec 2001 12:18:44 -0500 Date: Fri, 28 Dec 2001 09:22:28 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Stephan von Krawczynski cc: Alan Cox , , lkml Subject: Re: 2.4.17 absurd number of context switches In-Reply-To: <20011228181403.2b364811.skraw@ithnet.com> 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, 28 Dec 2001, Stephan von Krawczynski wrote: > On Fri, 28 Dec 2001 09:07:48 -0800 (PST) > Davide Libenzi wrote: > > > The scheduler that Linus merged in 2.5.2-pre3 will solve the problem. > > Could you kindly provide a patch for 2.4.17 for Jeffrey to test and give > comparison results to the list. This could be interesting for 2.4 too (which > the world uses nowadays (and in the near future))? > > Thanks for your help ;-) You can't, the scheduler is changed. Try this, in sys_sched_yield() remove : spin_lock_irq(&runqueue_lock); move_last_runqueue(current); spin_unlock_irq(&runqueue_lock); and replace it with : local_irq_disable(); if (current->counter > 0) --current->counter; local_irq_enable(); - Davide - 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/