Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263597AbTGFVBo (ORCPT ); Sun, 6 Jul 2003 17:01:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263628AbTGFVBo (ORCPT ); Sun, 6 Jul 2003 17:01:44 -0400 Received: from c17870.thoms1.vic.optusnet.com.au ([210.49.248.224]:9655 "EHLO mail.kolivas.org") by vger.kernel.org with ESMTP id S263597AbTGFVBk (ORCPT ); Sun, 6 Jul 2003 17:01:40 -0400 From: Con Kolivas To: Felipe Alfaro Solana Subject: Re: [PATCH] O3int interactivity for 2.5.74-mm2 Date: Mon, 7 Jul 2003 07:17:13 +1000 User-Agent: KMail/1.5.2 Cc: linux kernel mailing list , Andrew Morton References: <200307070317.11246.kernel@kolivas.org> <1057516609.818.4.camel@teapot.felipe-alfaro.com> In-Reply-To: <1057516609.818.4.camel@teapot.felipe-alfaro.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307070717.13951.kernel@kolivas.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2232 Lines: 63 On Mon, 7 Jul 2003 04:36, Felipe Alfaro Solana wrote: > On Sun, 2003-07-06 at 19:16, Con Kolivas wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Attached is an incremental patch against 2.5.74-mm2 with more > > interactivity work. Audio should be quite resistant to skips with this, > > and it should not induce further unfairness. > > > > Changes: > > The sleep_avg buffer was not needed with the improved semantics in O2int > > so it has been removed entirely as it created regressions in O2int. > > > > A small change to the idle detection code to only make tasks with enough > > accumulated sleep_avg become idle. > > > > Minor cleanups and clarified code. > > > > > > Other issues: > > Jerky mouse with heavy page rendering in web browsers remains. This is a > > different issue to the audio and will need some more thought. > > > > The patch is also available for download here: > > http://kernel.kolivas.org/2.5 > > > > Note for those who wish to get smooth X desktop feel now for their own > > use, the granularity patch on that website will do wonders on top of > > O3int, but a different approach will be needed for mainstream > > consumption. > > I'm seeing extreme X starvation with this patch under 2.5.74-mm2 when > starting a CPU hogger: > > 1. Start a KDE session. > 2. Launch a Konsole > 3. Launch Konqueror > 4. Launch XMMS > 5. Make XMMS play an MP3 file > 6. On the Konsole terminal, run "while true; do a=2; done" > > When the "while..." is run, X starves completely for ~5 seconds (e.g. > the mouse cursor doesn't respond to my input events). After those 5 > seconds, the mouse cursor goes jerky for a while (~2 seconds) and then > the system gets responsive. Oh one more thing if you dare. Try commenting out these lines in sched.c ~650: normalise_sleep(p); normalise_sleep(p->parent); if (p->sleep_avg < p->parent->sleep_avg) p->parent->sleep_avg = (p->parent->sleep_avg * EXIT_WEIGHT + p->sleep_avg) / (EXIT_WEIGHT + 1); 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/