[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46582E4F.5090306@trash.net>
Date: Sat, 26 May 2007 14:55:43 +0200
From: Patrick McHardy <kaber@...sh.net>
To: Ranjit Manomohan <ranjitm@...gle.com>
CC: netdev@...r.kernel.org
Subject: Re: [PATCH][NET_SCHED] Update htb rate when stats are polled.
Patrick McHardy wrote:
> Ranjit Manomohan wrote:
>
>>Currently the HTB rate for a class is update very slowly (once
>>every 16 seconds). This patch updates the rate whenever the stats
>>are requested from user space. This enables more accurate rate
>>monitoring.
>>
>>+/* Update packet/byte rate for a class. */
>>[..]
>
> We have a generic rate estimator, I think we should convert HTB over
> to use it and then maybe add this feature to the generic estimator.
You can use this patch as a base. It needs a bit more work
(for example the CONFIG_NET_SCHED_ESTIMATOR ifdefs are
unnecessary, but I've added them to remind me to clean this
up in all schedulers), but it works well enough for testing.
Actually .. do you still need your changes with this patch?
You can now replace the default estimator by one with a
shorter interval.
View attachment "x" of type "text/plain" (6439 bytes)
Powered by blists - more mailing lists