Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759587AbYBRKnW (ORCPT ); Mon, 18 Feb 2008 05:43:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757670AbYBRKnN (ORCPT ); Mon, 18 Feb 2008 05:43:13 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:57476 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1757082AbYBRKnL (ORCPT ); Mon, 18 Feb 2008 05:43:11 -0500 Date: Mon, 18 Feb 2008 02:43:48 -0800 (PST) Message-Id: <20080218.024348.257444630.davem@davemloft.net> To: 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: <47B95909.8060202@cdi.cz> References: <47B93BE8.7010905@cdi.cz> <20080218.001736.124204016.davem@davemloft.net> <47B95909.8060202@cdi.cz> 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 642 Lines: 19 From: Martin Devera Date: Mon, 18 Feb 2008 11:08:09 +0100 > Like > max_jiff = jiffies+2; /* not +1 at we could be at +0.9999 now */ > while (jiffies if (more_work) schedule_to_next_jiffie(); > > This will keep event queue work load under 66% of system load which > seems reasonable to me. > > Would you accept such solution ? Sure. -- 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/