Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756578AbYBRH2G (ORCPT ); Mon, 18 Feb 2008 02:28:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753442AbYBRH1x (ORCPT ); Mon, 18 Feb 2008 02:27:53 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:32973 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753267AbYBRH1w (ORCPT ); Mon, 18 Feb 2008 02:27:52 -0500 Date: Sun, 17 Feb 2008 23:28:29 -0800 (PST) Message-Id: <20080217.232829.222344360.davem@davemloft.net> nTo: devik@cdi.cz Cc: linux-kernel@vger.kernel.org, kaber@trash.net, netdev@vger.kernel.org Subject: Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation From: David Miller In-Reply-To: References: X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1164 Lines: 29 From: Martin Devera Date: Fri, 15 Feb 2008 00:02:56 +0100 > From: Martin Devera > > HTB is event driven algorithm and part of its work is to apply > scheduled events at proper times. It tried to defend itself from > livelock by processing only limited number of events per dequeue. > Because of faster computers some users already hit this hardcoded > limit. > This patch uses loops_per_jiffy variable to limit event processing > up to single jiffy interval and then delay remainder to other > jiffy. > > Signed-off-by: Martin Devera I think we would be wise to use something other than loops_per_jiffy. Depending upon the loop calibration method used by a particular architecture it can me one of many different things. Some platforms don't even make use of it and thus leave it at it's default value of "1<<12", so using it as a heuristic here is arbitrary at best. -- 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/