[2.4.0] Cannot lower bandwidth for parent queue (children using %)
-
Not sure if this is by design but seems a bit odd.
I have a shaper queue set up for 2800Kbps with all its child queues using percentages. I can increase the bandwidth value fine and the changes reflect correctly on the child queues (as seen in pftop) but when I try to decrease the bandwidth value I get the error "The sum of child bandwidth is higher than parent."
It seems like a bug as I would expect it would either work in both directions or not work at all.
-
I'm pretty sure it's a bug. I've ran into it also. The validation logic incorrectly calculates the children's bandwidth based on the current root's bandwidth and not the new value. As far as I can tell, the actual values are set correctly, it's just an issue of validation giving a false positive.
-
I'm pretty sure it's a bug. I've ran into it also. The validation logic incorrectly calculates the children's bandwidth based on the current root's bandwidth and not the new value. As far as I can tell, the actual values are set correctly, it's just an issue of validation giving a false positive.
Yes what I thought too.
To get around this now I just have to drop a few percent off one of the child queues, then set the new bandwidth and then put the percentage back.
-
@drzoidberg33 thanks for that work around info. 4.5 years later this is still an issue.
-
I can't tell if it's a coincidence that a 4.5 year old thread is revived to say thanks, or whether you're doing me a solid by bringing it back to the top, but I posted this just 3 hours earlier.
It appears to be the same issue and it looks like I've been able to fudge my queue figures and percentages to tip toe around it and set the correct bandwidth on my LAN interfaces. @seijirou - thanks friend.
-
-
@ads76 entirely coincidental but I'm glad it helped you too.