From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762522AbXHAASR (ORCPT ); Tue, 31 Jul 2007 20:18:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761608AbXHAARl (ORCPT ); Tue, 31 Jul 2007 20:17:41 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:60182 "EHLO e33.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761830AbXHAARi (ORCPT ); Tue, 31 Jul 2007 20:17:38 -0400 Subject: Re: [PATCH RT] Fix RT balancing tasks pulling From: Josh Triplett To: =?ISO-8859-1?Q?S=E9bastien_Dugu=E9?= Cc: Linux RT Users , linux-kernel , Ingo Molnar , Thomas Gleixner , Jean Pierre Dion , Darren Hart , john stultz In-Reply-To: <20070731134824.6ec78447@frecb000686.frec.bull.fr> References: <20070724154202.224f12e8@frecb000686.frec.bull.fr> <1185832234.3334.35.camel@josh-work.beaverton.ibm.com> <20070731134824.6ec78447@frecb000686.frec.bull.fr> Content-Type: text/plain; charset=utf-8 Date: Tue, 31 Jul 2007 17:18:03 -0700 Message-Id: <1185927483.4191.6.camel@josh-work.beaverton.ibm.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2007-07-31 at 13:48 +0200, Sébastien Dugué wrote: > On Mon, 30 Jul 2007 14:50:34 -0700 Josh Triplett wrote: > > On Tue, 2007-07-24 at 15:42 +0200, Sébastien Dugué wrote: > > > this one-liner fixes a bug in balance_rt_tasks() which sometimes manifests by > > > having a lower prio task being scheduled while a higher prio task is sitting > > > waiting on another runqueue. > > > > > > This is pretty hard to reproduce on low cpu count machines, for example, I > > > had to have sched_football run in a loop for ~38h before it failed on a dual HT > > > Xeon box. > > > > Very impressive find, and this does seem to improve things in some > > cases. > > > > However, with 2.6.22.1-rt8, which includes this patch, I still managed > > to get some failures after a few hours on an 8-way (quad dual-core) box. > > Preliminary results so far: > > 420 Final ball position: 0 > > 2 Final ball position: 1 > > > > Darn, I thought it was it :( > > I had a ~60h run on my box with the very same kernel without a single > failure. I think you really need a box with more processors to reproduce these problems in a reasonable timeframe. Happy to test any patches you have to fix RT balancing; please let me know. > Do you have any other user RT load running when those failures pop up? Other than sched_football, I had sshd, bash, and GNU screen, theoretically all 100% idle (no input to read and no output to display). - Josh Triplett