Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932173AbWC3LHj (ORCPT ); Thu, 30 Mar 2006 06:07:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932174AbWC3LHj (ORCPT ); Thu, 30 Mar 2006 06:07:39 -0500 Received: from willy.net1.nerim.net ([62.212.114.60]:15373 "EHLO willy.net1.nerim.net") by vger.kernel.org with ESMTP id S932173AbWC3LHi (ORCPT ); Thu, 30 Mar 2006 06:07:38 -0500 Date: Thu, 30 Mar 2006 13:07:21 +0200 From: Willy Tarreau To: Mike Galbraith Cc: lkml , Ingo Molnar , Andrew Morton , Peter Williams , Nick Piggin , Con Kolivas Subject: Re: [rfc][patch] improved interactive starvation patch against 2.6.16 Message-ID: <20060330110721.GA4851@w.ods.org> References: <1143713997.9381.28.camel@homer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1143713997.9381.28.camel@homer> User-Agent: Mutt/1.5.10i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 33 Hi Mike, On Thu, Mar 30, 2006 at 12:19:57PM +0200, Mike Galbraith wrote: > Greetings, > > The patch below alone makes virgin 2.6.16 usable in the busy apache > server scenario, and should help quite a bit with other situations as > well. > > The original version helps a lot, but not enough, and the latency of > being awakened in the expired array can be needlessly painful. Ergo, > speed up the array switch, and instead of unconditionally plunking all > awakening tasks (including rt tasks, oops) into the expired array, check > to see if the task has run since the last array switch first. This > leaves a theoretical hole for a stream of one-time waking tasks to > starve the expired array indefinitely, but it deals with the real > problem pretty nicely I think. Interesting. > For the one or two folks on the planet testing my anti-starvation > patches, I've attached an incremental to my 2.6.16 test release. Thanks, I'll test this ASAP, though I'm clearly busy right now. Cheers, Willy - 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/