Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-18 Thread David Miller
From: Martin Devera <[EMAIL PROTECTED]> Date: Mon, 18 Feb 2008 11:08:09 +0100 > Like > max_jiff = jiffies+2; /* not +1 at we could be at +0. now */ > while (jiffies if (more_work) schedule_to_next_jiffie(); > > This will keep event queue work load under 66% of system load which > seems reason

Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-18 Thread Martin Devera
David Miller wrote: From: Martin Devera <[EMAIL PROTECTED]> Date: Mon, 18 Feb 2008 09:03:52 +0100 aha, ok, I'm not so informed about crossplatform issues. I was also thining about looking at jiffies value and stop once it is startjiffy+2, but with NO_HZ introduction, are jiffies still increment

Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-18 Thread David Miller
From: Martin Devera <[EMAIL PROTECTED]> Date: Mon, 18 Feb 2008 09:03:52 +0100 > aha, ok, I'm not so informed about crossplatform issues. > I was also thining about looking at jiffies value and stop once > it is startjiffy+2, but with NO_HZ introduction, are jiffies > still incremented ? There sho

Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-18 Thread Martin Devera
up to single jiffy interval and then delay remainder to other jiffy. Signed-off-by: Martin Devera <[EMAIL PROTECTED]> 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 differe

Re: [PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-17 Thread David Miller
From: Martin Devera <[EMAIL PROTECTED]> Date: Fri, 15 Feb 2008 00:02:56 +0100 > From: Martin Devera <[EMAIL PROTECTED]> > > 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 numbe

[PATCH 2.6.24 1/1] sch_htb: fix "too many events" situation

2008-02-14 Thread Martin Devera
From: Martin Devera <[EMAIL PROTECTED]> 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 hardcode