All of lore.kernel.org
 help / color / mirror / Atom feed
* tc doesn't shape correctly -->> iproute2-latest + iptables 1.4.3.2  +linux-kernel 2.6.29.4 + imq support
@ 2009-10-08 13:49 Andrei Moraru
  2009-10-08 15:47 ` Karel Rericha
  0 siblings, 1 reply; 5+ messages in thread
From: Andrei Moraru @ 2009-10-08 13:49 UTC (permalink / raw)
  To: netfilter

Hello
I am running a Linux gateway, with details written in title.
The kernel is patched for imq support.
The gateway has 2 interfaces, eth0 --> ISP, , eth1 -->LAN.
Also there w virtual devices, imq0 atached to eth0 for download from
the world, , imq1 atached to eth1 for upload from the LAN.
I have a problem with traffic shaping:
1) the ceil value for the root class atached to imq0 is not respected;
currently the ceil value is 3200 kbits but the bandwitdh goes near
3700 kbits.
Some details of my system that might be helpful:
CONFIG_HZ=1000
net.ipv4.netfilter.ip_conntrack_max = 262140
The discipline for queueing is HFSC.
Best regards,
  matagou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tc doesn't shape correctly -->> iproute2-latest + iptables  1.4.3.2 +linux-kernel 2.6.29.4 + imq support
  2009-10-08 13:49 tc doesn't shape correctly -->> iproute2-latest + iptables 1.4.3.2 +linux-kernel 2.6.29.4 + imq support Andrei Moraru
@ 2009-10-08 15:47 ` Karel Rericha
  2009-10-13  4:56   ` Michal Soltys
  0 siblings, 1 reply; 5+ messages in thread
From: Karel Rericha @ 2009-10-08 15:47 UTC (permalink / raw)
  To: netfilter

2009/10/8 Andrei Moraru <matagou@gmail.com>:
> I have a problem with traffic shaping:
> 1) the ceil value for the root class atached to imq0 is not respected;
> currently the ceil value is 3200 kbits but the bandwitdh goes near
> 3700 kbits.

Same here,

I can confirm that similar setup (no imq) on Gentoo quadcore AMD64
2.6.29 HFSC root class overflows where HTB is ok. This situation
persist for about year and few last kernels and I havent found a
solution except some notices about HFSC in current linux incarnation
being buggy.

Our solution was return back to HTB :-)

If anyone knows why HFSC overflows, please post.

Karel

P.S.: Half year back we tested simple HFSC setup on bench with 3
classes (5, 10 and 15Mbits with root class 20Mbits) and when we
saturated all classes, total flow was 20Mbit for few seconds (5-30)
and then it overflowed to about 25Mbit, and sometimes returned back to
20Mbit after few minutes. VERY strange.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tc doesn't shape correctly -->> iproute2-latest + iptables  1.4.3.2 +linux-kernel 2.6.29.4 + imq support
  2009-10-08 15:47 ` Karel Rericha
@ 2009-10-13  4:56   ` Michal Soltys
  2009-10-14  9:02     ` Karel Rericha
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Soltys @ 2009-10-13  4:56 UTC (permalink / raw)
  To: Karel Rericha; +Cc: netfilter

> 
> I can confirm that similar setup (no imq) on Gentoo quadcore AMD64
> 2.6.29 HFSC root class overflows where HTB is ok. This situation
> persist for about year and few last kernels and I havent found a
> solution except some notices about HFSC in current linux incarnation
> being buggy.
> 

Mind giving a pointer to such notices ?

> Our solution was return back to HTB :-)
> 
> If anyone knows why HFSC overflows, please post.
> 
> Karel
> 
> P.S.: Half year back we tested simple HFSC setup on bench with 3
> classes (5, 10 and 15Mbits with root class 20Mbits) and when we
> saturated all classes, total flow was 20Mbit for few seconds (5-30)
> and then it overflowed to about 25Mbit, and sometimes returned back to
> 20Mbit after few minutes. VERY strange.

What exactly was your setup and how did you test it ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tc doesn't shape correctly -->> iproute2-latest + iptables  1.4.3.2 +linux-kernel 2.6.29.4 + imq support
  2009-10-13  4:56   ` Michal Soltys
@ 2009-10-14  9:02     ` Karel Rericha
  2009-10-14  9:56       ` Michal Soltys
  0 siblings, 1 reply; 5+ messages in thread
From: Karel Rericha @ 2009-10-14  9:02 UTC (permalink / raw)
  To: Michal Soltys; +Cc: netfilter

2009/10/13 Michal Soltys <soltys@ziu.info>:
>>
>> I can confirm that similar setup (no imq) on Gentoo quadcore AMD64
>> 2.6.29 HFSC root class overflows where HTB is ok. This situation
>> persist for about year and few last kernels and I havent found a
>> solution except some notices about HFSC in current linux incarnation
>> being buggy.
>>
>
> Mind giving a pointer to such notices ?

Sorry, I dont have links to such notices I read when I did tests, but
quick Google search for "hfsc overflows" is giving results like this:
http://patchwork.ozlabs.org/patch/27303/

>> P.S.: Half year back we tested simple HFSC setup on bench with 3
>> classes (5, 10 and 15Mbits with root class 20Mbits) and when we
>> saturated all classes, total flow was 20Mbit for few seconds (5-30)
>> and then it overflowed to about 25Mbit, and sometimes returned back to
>> 20Mbit after few minutes. VERY strange.
>
> What exactly was your setup and how did you test it ?
>

Not sure (long time ago), but I think gentoo-sources 2.6.27 AMD64 on
dual dualcore Opteron 2214, 2x Intel 82571EB, 2x Broadcom BCM5754,
tested without bonding (but in production setup bonding is used),
without packet offloading, no imq nor ifb used. HFSC overflowed but
HTB was ok.

Karel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tc doesn't shape correctly -->> iproute2-latest + iptables  1.4.3.2 +linux-kernel 2.6.29.4 + imq support
  2009-10-14  9:02     ` Karel Rericha
@ 2009-10-14  9:56       ` Michal Soltys
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Soltys @ 2009-10-14  9:56 UTC (permalink / raw)
  To: Karel Rericha; +Cc: netfilter

Karel Rericha wrote:
> 
>>> P.S.: Half year back we tested simple HFSC setup on bench with 3
>>> classes (5, 10 and 15Mbits with root class 20Mbits) and when we
>>> saturated all classes, total flow was 20Mbit for few seconds (5-30)
>>> and then it overflowed to about 25Mbit, and sometimes returned back to
>>> 20Mbit after few minutes. VERY strange.
>> What exactly was your setup and how did you test it ?
>>
> 
> Not sure (long time ago), but I think gentoo-sources 2.6.27 AMD64 on
> dual dualcore Opteron 2214, 2x Intel 82571EB, 2x Broadcom BCM5754,
> tested without bonding (but in production setup bonding is used),
> without packet offloading, no imq nor ifb used. HFSC overflowed but
> HTB was ok.
> 
> Karel
> 

I meant more about your hfsc rules in that simple setup, not the hardware.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-14  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-08 13:49 tc doesn't shape correctly -->> iproute2-latest + iptables 1.4.3.2 +linux-kernel 2.6.29.4 + imq support Andrei Moraru
2009-10-08 15:47 ` Karel Rericha
2009-10-13  4:56   ` Michal Soltys
2009-10-14  9:02     ` Karel Rericha
2009-10-14  9:56       ` Michal Soltys

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.