Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 11 Sep 2002 17:09:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 11 Sep 2002 17:09:27 -0400 Received: from h181n1fls11o1004.telia.com ([195.67.254.181]:25231 "EHLO ringstrom.mine.nu") by vger.kernel.org with ESMTP id ; Wed, 11 Sep 2002 17:09:26 -0400 Date: Wed, 11 Sep 2002 23:14:06 +0200 (CEST) From: Tobias Ringstrom X-X-Sender: tori@boris.prodako.se To: Ingo Molnar cc: Alan Cox , Kernel Mailing List Subject: Re: Problem with the O(1) scheduler in 2.4.19 In-Reply-To: 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 Content-Length: 1370 Lines: 38 On Wed, 11 Sep 2002, Tobias Ringstrom wrote: > On Tue, 3 Sep 2002, Ingo Molnar wrote: > > > does -10 make it equivalent to the 2.4 behavior? Could you somehow measure > > the priority where it's still acceptable? Ie. -8 or -9? > > I've done some more experimenting, and I've found something interesting. > I've attached two very simple CPU hog programs. ...and now I've done some code study. I think the following is what happens: 1. hog is sleeping, and is interactive 2. latency is running and is non-interactive 3. hog becomes runnable 4. latency is preemted and put on the expired list 5. hog runs uses it's timeslice (151 ms), but sice it is interactive it stays on the active list and continues to run. 6. after 4/11*2 s = 0.7 s (and a few expired timeslices) hog is no longer interactive and is moved to the expired list 7. latency runs after a 0.7 s break. Do you agree? In other words: Any nice-0 task that has been sleeping for two seconds or more will be able to monololize the CPU for up to 0.7 seconds. Do you agree that this is a problem, or am I being too narrow-minded? :-) /Tobias - 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/