Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261960AbTGGKJk (ORCPT ); Mon, 7 Jul 2003 06:09:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262023AbTGGKJk (ORCPT ); Mon, 7 Jul 2003 06:09:40 -0400 Received: from c17870.thoms1.vic.optusnet.com.au ([210.49.248.224]:8128 "EHLO mail.kolivas.org") by vger.kernel.org with ESMTP id S261960AbTGGKJj (ORCPT ); Mon, 7 Jul 2003 06:09:39 -0400 From: Con Kolivas To: Mike Galbraith Subject: Re: [PATCH] O3int interactivity for 2.5.74-mm2 Date: Mon, 7 Jul 2003 20:25:18 +1000 User-Agent: KMail/1.5.2 Cc: Felipe Alfaro Solana , linux kernel mailing list , Andrew Morton References: <1057516609.818.4.camel@teapot.felipe-alfaro.com> <5.2.1.1.2.20030707110403.02843af0@pop.gmx.net> In-Reply-To: <5.2.1.1.2.20030707110403.02843af0@pop.gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307072025.18711.kernel@kolivas.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2380 Lines: 50 On Mon, 7 Jul 2003 19:40, Mike Galbraith wrote: > At 01:19 PM 7/7/2003 +1000, Con Kolivas wrote: > >Thanks to Felipe who picked this up I was able to find the one bug causing > > me grief. The idle detection code was allowing the sleep_avg to get to > > ridiculously high levels. This is corrected in the following replacement > > O3int patch. Note this fixes the mozilla issue too. Kick arse!! > > I took this out for a spin in stock 74. If I do while true; do sh -c 'ps l > $$'; date; sleep 1; done, the shell is running at priority 22. In the face You're hitting spot on the idle detection code. Sleep for a second or longer and this patch makes you get only your static priority. This way if you suddenly become a cpu hog you cant starve the machine. ie. it works with your test exactly as I planned it. > of any load, that leads to quite long response times. With a make -j5 > bzImage running, I frequently saw response times of over a second. In X, > with a make -j2 bzImage running, opening a new shell takes too long, and X Yes I was planning on increasing the child penalty to 95 once the other things settled down. This will speed up start time. > loses interactive status considerably quicker than stock when doing window The sleep avg decrements at the same place and at the same rate in my patch as it does in stock, so I can't see how that's happening. > wiggle. Init is at 20, and kernel threads bounce around between 15 and 20 > depending on how active they are (doesn't seem good considering they're > using practically no cpu). They're idle. Why do they need higher priority? > Thud is still dead, but maybe _too_ dead ;-) I never saw it get above the > lowest priority, which is very unfair considering the amount of sleeping it > does. It sounds like you're applying your idea of what you expect the priority to be based on previous algorithms rather than judging it on it's own merits. I didn't see any mention of whether audio skips less or mouse moves smoother which is what it's addressing. The data shows it doesn't unfairly disadvantage other tasks. CPU hogs get treated as such. Con - 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/