On Wed, May 04, 2005 at 07:42:17PM +0200, DarkT wrote:
>
> altq on $iface hfsc bandwidth 1Mb queue { 1 2 3 }
> queue 1 hfsc(default realtime 50Kb linkshare 100Kb upperlimit 100Kb)
> queue 2 hfsc( realtime 300Kb linkshare 400Kb upperlimit 400Kb )
> queue 3 hfsc( realtime 400Kb linkshare 500Kb upperlimit 500Kb ) { 3a 3b }
> queue 3a hfsc( realtime 150Kb linkshare 250Kb upperlimit 300Kb)
> queue 3b hfsc( realtime 150Kb linkshare 250Kb upperlimit 300Kb)
>
> this is only example :)
> now the important thing, if you pfctl it it says that realtime is over 80%
> of Iface bandwidth and get error , but it is real exceded ? ,the
> childrens are in parent 3 so shouldn`t admission control function dont sum
> them as already
> summed parent queue ? i think it summ all queues on iface and dont check
> if it is parent or childrens of some parent.
i believe the realtimes of child queues don't get nested/encapsulated/
recursed within the realtime of their parent, but rather that the
realtimes are considered flat against the interface? (or maybe
the child queues are added to the parent for realtime?)
not really sure if that came out right, but if i change
your 'queue 3' to have a realtime of 350Kb, the parse error
about 80% goes away; or if i change 3a and 3b to have a realtime
that adds up to <= 15%, but leave queue 3 at 400Kb, it goes away too.
jared
btw, i think you still might need to specify a bandwidth on
each HFSC queue line, even if it is much less than what is
going to really be there (don't go stupidly small, but like
(100/# of queues)-(10% of iface bw) might be reasonableish
--
[ openbsd 3.7 GENERIC ( apr 27 ) // i386 ]