]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetdevbandwidth: Compute quantum value
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Feb 2016 11:48:44 +0000 (12:48 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 5 Feb 2016 15:43:19 +0000 (16:43 +0100)
commit065054daa71f645fc83aff0271f194d326208616
tree798fd223eec5914f26aed806618f9e36b641e2e0
parent173054ceea09b598ad0909f388793ed27950233a
virnetdevbandwidth: Compute quantum value

I've noticed couple of warning in dmesg while debugging
something:

[ 9683.973754] HTB: quantum of class 10001 is big. Consider r2q change.
[ 9683.976460] HTB: quantum of class 10002 is big. Consider r2q change.

I've read the HTB documentation and linux kernel code to find out
what's wrong. Basically we need to pass another argument
"quantum" to our tc cmd line because the default computed by HTB
does not always work in which case the warning message is printed
out.

You can read more details here:

http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#sharing

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnetdevbandwidth.c
tests/virnetdevbandwidthtest.c