This is a discussion on tc & bandwidth limit problem within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi everyone. I'm trying to implement the Linux 2.6 QoS capabilities to distribute the bandwidth in my network apps, ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi everyone. I'm trying to implement the Linux 2.6 QoS capabilities to distribute the bandwidth in my network apps, but I can't get the limits to work properly. For example: tc qdisc add dev eth0 parent root handle 1: htb default 1 tc class add dev eth0 parent 1: classid 1:1 htb rate 520kbit These sample commands should maintain output traffic to a maximum of 520 kbit/s , if I'm correct. But the transfers here become in fact limited to approximately one quarter (25%) of that value. No matter what I put as 'rate', a limit seem to be enforced at 25% of it. (I get same results when I try cbq or tbf qdiscs, too.) Anyone knows what the problem could be? Thanks!! -- Pardo Powered by: Linux, KDE, Firefox Following: GUNDAM SEED, .hack//Roots, Kore ga Watashi no Goshujin-sama! Playing: Silver Knights, Oblivion |
| ||||
| pardo wrote: > tc qdisc add dev eth0 parent root handle 1: htb default 1 > tc class add dev eth0 parent 1: classid 1:1 htb rate 520kbit > These sample commands should maintain output traffic to a maximum of > 520 kbit/s , if I'm correct. > But the transfers here become in fact limited to approximately one > quarter (25%) of that value. Solved: new kernel build replacing CONFIG_NET_SCH_CLK_CPU with CONFIG_NET_SCH_CLK_GETTIMEOFDAY . Maybe the cpu cycle counter doesn't work well as clock source on this athlon-M w/powernow, which is.. frequently hopping frequencies -- Pardo Powered by: Linux+KDE+Firefox Watching: GUNDAM SEED, .hack//Roots Playing: Silver Knights, Oblivion |
| Thread Tools | |
| Display Modes | |
|
|