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.