Unix Technical Forum

tc & bandwidth limit problem

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, ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 05:52 PM
pardo
 
Posts: n/a
Default tc & bandwidth limit problem

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 05:53 PM
pardo
 
Posts: n/a
Default Re: tc & bandwidth limit problem

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com