Linux Netfilter discussions
 help / color / mirror / Atom feed
* help on tc with kernels >= 2.6.27
@ 2009-01-02 18:46 Jorge Bastos
  2009-01-02 19:49 ` Marek Kierdelewicz
  0 siblings, 1 reply; 10+ messages in thread
From: Jorge Bastos @ 2009-01-02 18:46 UTC (permalink / raw)
  To: netfilter

Hi,
I just joined the mailing list.
I'm using tc to do traffic shaping for about 6 years

Since kernels >= 2.6.27 it just stoped working, and started shaping
traffic to 1/2kb /sec.
How could this be debug? I don't see other place to request for help
other than this one, and I was adviced to ask for help here too.

Thanks in advanced,
Jorge

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

* Re: help on tc with kernels >= 2.6.27
  2009-01-02 18:46 help on tc with kernels >= 2.6.27 Jorge Bastos
@ 2009-01-02 19:49 ` Marek Kierdelewicz
  2009-01-02 20:44   ` bsilva
                     ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Marek Kierdelewicz @ 2009-01-02 19:49 UTC (permalink / raw)
  To: Jorge Bastos; +Cc: netfilter

>Hi,

Hi Jorge & List,

>I just joined the mailing list.

It's mailing list for netfilter not Linux QoS. I think your issue is
more suitable for lartc mailing list (is lartc list alive by the way?
anyone?).

>I'm using tc to do traffic shaping for about 6 years
>Since kernels >= 2.6.27 it just stoped working, and started shaping
>traffic to 1/2kb /sec.
>How could this be debug? I don't see other place to request for help
>other than this one, and I was adviced to ask for help here too.

Try attaching qdiscs (sfp/pfifo/bfifo) below each htb class. Please
send some more information (tc script, scenario, result of "tc -s -d
class sh dev XXX" command).

Regards,
Marek Kierdelewicz

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

* Re: help on tc with kernels >= 2.6.27
  2009-01-02 19:49 ` Marek Kierdelewicz
@ 2009-01-02 20:44   ` bsilva
       [not found]   ` <00c301c96d17$750ea820$5f2bf860$@jorge@decimal.pt>
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: bsilva @ 2009-01-02 20:44 UTC (permalink / raw)
  To: Marek Kierdelewicz; +Cc: Jorge Bastos, netfilter

As of last month at least, the LARTC mailing list is dead.  As near as I
can tell, this is the best list for tc questions, although if I'm wrong,
I'd love to hear about it.  I'm working on a QoS project as well.


Brad


On Fri, 2 Jan 2009, Marek Kierdelewicz wrote:

> >Hi,
>
> Hi Jorge & List,
>
> >I just joined the mailing list.
>
> It's mailing list for netfilter not Linux QoS. I think your issue is
> more suitable for lartc mailing list (is lartc list alive by the way?
> anyone?).
>
> >I'm using tc to do traffic shaping for about 6 years
> >Since kernels >= 2.6.27 it just stoped working, and started shaping
> >traffic to 1/2kb /sec.
> >How could this be debug? I don't see other place to request for help
> >other than this one, and I was adviced to ask for help here too.
>
> Try attaching qdiscs (sfp/pfifo/bfifo) below each htb class. Please
> send some more information (tc script, scenario, result of "tc -s -d
> class sh dev XXX" command).
>
> Regards,
> Marek Kierdelewicz
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>

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

* Re: help on tc with kernels >= 2.6.27
       [not found]   ` <00c301c96d17$750ea820$5f2bf860$@jorge@decimal.pt>
@ 2009-01-02 20:53     ` Marek Kierdelewicz
  0 siblings, 0 replies; 10+ messages in thread
From: Marek Kierdelewicz @ 2009-01-02 20:53 UTC (permalink / raw)
  To: Jorge Bastos; +Cc: netfilter

>My QoS rules (always were the same)
>---
>/sbin/tc qdisc del dev eth0 root
>/sbin/tc qdisc add dev eth0 root handle 1 cbq bandwidth 100Mbit avpkt
>1000 cell 8
>/sbin/tc class change dev eth0 root cbq weight 10Mbit allot 1514

Sorry, but I'm not familiar with cbq. Try the script below:

-----------------------------CUT-----------------------------
TC="/sbin/tc"
DEV="eth0"
$TC qdisc del dev $DEV root
$TC qdisc add dev $DEV root handle 1: htb default 10
$TC class add dev $DEV parent 1: classid 1:1 htb rate 100Mbit
$TC class add dev $DEV parent 1:1 classid 1:10 htb rate 90Mbit ceil \
100Mbit
$TC class add dev $DEV parent 1: classid 1:1280 htb rate \
200kbit ceil 200kbit 
$TC qdisc add dev $DEV parent 1:1280 handle 1280: sfq perturb 1
$TC filter add dev $DEV parent 1:0 protocol ip prio 100 u32 match ip \
src 195.23.14.71 match ip sport 110 0xffff classid 1:1280
-----------------------------CUT-----------------------------

I hope it does the same your cbq.init did - shapes traffic to
195.23.14.71 to maximal throuput of 200kbit/s and lets the rest of the
traffic to go fullspeed.

Regards,
Marek Kierdelewicz

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

* LARTC (was: Re: help on tc with kernels >= 2.6.27)
  2009-01-02 19:49 ` Marek Kierdelewicz
  2009-01-02 20:44   ` bsilva
       [not found]   ` <00c301c96d17$750ea820$5f2bf860$@jorge@decimal.pt>
@ 2009-01-02 20:57   ` /dev/rob0
  2009-01-03 10:11   ` help on tc with kernels >= 2.6.27 Michele Petrazzo - Unipex srl
  3 siblings, 0 replies; 10+ messages in thread
From: /dev/rob0 @ 2009-01-02 20:57 UTC (permalink / raw)
  To: netfilter

On Fri January 2 2009 13:49:08 Marek Kierdelewicz wrote:
> more suitable for lartc mailing list (is lartc list alive by the way?
> anyone?).

I haven't seen anything from LARTC list in about a year.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header

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

* Re: help on tc with kernels >= 2.6.27
  2009-01-02 19:49 ` Marek Kierdelewicz
                     ` (2 preceding siblings ...)
  2009-01-02 20:57   ` LARTC (was: Re: help on tc with kernels >= 2.6.27) /dev/rob0
@ 2009-01-03 10:11   ` Michele Petrazzo - Unipex srl
       [not found]     ` <001701c96d92$43c4e600$cb4eb200$@jorge@decimal.pt>
  3 siblings, 1 reply; 10+ messages in thread
From: Michele Petrazzo - Unipex srl @ 2009-01-03 10:11 UTC (permalink / raw)
  To: Marek Kierdelewicz; +Cc: Jorge Bastos, netfilter

Marek Kierdelewicz wrote:
>> Hi,
> 
> Hi Jorge & List,

Hi,

> 
>> I just joined the mailing list.
> 
> It's mailing list for netfilter not Linux QoS. I think your issue is
>  more suitable for lartc mailing list (is lartc list alive by the
> way? anyone?).
> 

If I remember correctly, lartc is dead and it's joined to netfilter one.

>> I'm using tc to do traffic shaping for about 6 years Since kernels
>>> = 2.6.27 it just stoped working, and started shaping traffic to
>> 1/2kb /sec. How could this be debug? I don't see other place to 
>> request for help other than this one, and I was adviced to ask for 
>> help here too.
> 

Just tried here (with 2.6.27) with Marek example and some modifies (like
remove the tc filter and add classify into mangle) and it's works well.

Looking at the .27 changelog at:
http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.27
seem that there are some patches against the various htb/hfs and so on,
that can (only a supposition) introduce a problems.

Can you recreate a simple working script that show us the problem?

Michele

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

* Re: help on tc with kernels >= 2.6.27
       [not found]     ` <001701c96d92$43c4e600$cb4eb200$@jorge@decimal.pt>
@ 2009-01-03 11:47       ` Michele Petrazzo - Unipex srl
       [not found]         ` <002701c96d9b$53a5c0e0$faf142a0$@jorge@decimal.pt>
  0 siblings, 1 reply; 10+ messages in thread
From: Michele Petrazzo - Unipex srl @ 2009-01-03 11:47 UTC (permalink / raw)
  To: Jorge Bastos
  Cc: 'Marek Kierdelewicz', 'Jorge Bastos', netfilter

Jorge Bastos wrote:
> Hi Michele,
> 

Ciao,

> For htb, the script Marek wrote here, shape's the traffic, but it 
> gets a bit unstable, sometimes if goes down, other goes up, for a 
> considered number of seconds, so I believe it's a pike.
> 

I have a "big" environ with htb (kernel .26) and it works well, without
problems. Never seen up and down course.


> Here's what Marek wrote here:
<-cut->

> 
> With cbq, the traffic was always stable at a constant speed, the 
> oscillation wasn't more than about 1kb.
> 

Also here the same.

> What I use for cbq, is the cbq.init script that generates this rules:
> 
> 
> 
> 

<-cut->

> For cbq, instead of the 20kb/sec, it goes to 1/2, sometimes 4 or 5, 
> but never more than that.
> 


With that rules, also here :( . Starting to say that I'm not a big tc
expert but after some test, it's seem that tbf create the problems:
if you try to remove that rule, it'll work. Also tried sfq or cbq like last
queuing and seem to shape correctly. (my test was done with scp and iptraf)
Have you tried it?

Michele

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

* Re: help on tc with kernels >= 2.6.27
       [not found]         ` <002701c96d9b$53a5c0e0$faf142a0$@jorge@decimal.pt>
@ 2009-01-03 12:29           ` Michele Petrazzo - Unipex srl
       [not found]             ` <003101c96ddb$9d991310$d8cb3930$@jorge@decimal.pt>
  0 siblings, 1 reply; 10+ messages in thread
From: Michele Petrazzo - Unipex srl @ 2009-01-03 12:29 UTC (permalink / raw)
  To: Jorge Bastos
  Cc: 'Marek Kierdelewicz', 'Jorge Bastos', netfilter

Jorge Bastos wrote:
> Bingo!
> 

:)

> So it seams that the problem is in TBF since 2.6.27 >= Checking the
> 2.6.27 changelog as you said, were made a lot of changes regargind
> TBF (also some CBQ and HTB changes), so that may be the problem. I
> say this because my rules were the same always, and always worked ok.
>  How can this be reported to the QoS people that maintains it in the
> kernel?
> 

See into the changelog, there is the mail addrs of the people who made the
commits and, if you want, to the lkml.

Michele


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

* Re: help on tc with kernels >= 2.6.27
       [not found]             ` <003101c96ddb$9d991310$d8cb3930$@jorge@decimal.pt>
@ 2009-01-05 11:39               ` Michele Petrazzo - Unipex srl
       [not found]                 ` <01ee01c96f3b$eee74fa0$ccb5eee0$@jorge@decimal.pt>
  0 siblings, 1 reply; 10+ messages in thread
From: Michele Petrazzo - Unipex srl @ 2009-01-05 11:39 UTC (permalink / raw)
  To: Jorge Bastos
  Cc: 'Marek Kierdelewicz', 'Jorge Bastos', netfilter

Jorge Bastos wrote:
> Michele, The NIC in where you are shaping, it's a 100mbit or
> 1000mbit?
> 

My nic are 100mbit (or better, are a 1000mbit with a 100mbit switch) and
I have the problems, so I think that aren't this the problem.

Have you tried to wrote to the devels?

Michele

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

* Re: help on tc with kernels >= 2.6.27
       [not found]                 ` <01ee01c96f3b$eee74fa0$ccb5eee0$@jorge@decimal.pt>
@ 2009-01-05 14:21                   ` Michele Petrazzo - Unipex srl
  0 siblings, 0 replies; 10+ messages in thread
From: Michele Petrazzo - Unipex srl @ 2009-01-05 14:21 UTC (permalink / raw)
  To: Jorge Bastos; +Cc: netfilter

Jorge Bastos wrote:
> Hum... could it be my NIC's with the "sky2" driver, I mean, a sky2 bug
> causing this?

Could be a lot of things!
Have you tried with another board? A simple rtl8139 can be a good choice

> The devel's... to wich list should I report this Michele?
> 

As said, see to the changelog where there are the mail addrs of the 
devels. Try also on lkml

> To "netdev@vger.kernel.org"?
> 

Can be also this

Michele

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

end of thread, other threads:[~2009-01-05 14:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-02 18:46 help on tc with kernels >= 2.6.27 Jorge Bastos
2009-01-02 19:49 ` Marek Kierdelewicz
2009-01-02 20:44   ` bsilva
     [not found]   ` <00c301c96d17$750ea820$5f2bf860$@jorge@decimal.pt>
2009-01-02 20:53     ` Marek Kierdelewicz
2009-01-02 20:57   ` LARTC (was: Re: help on tc with kernels >= 2.6.27) /dev/rob0
2009-01-03 10:11   ` help on tc with kernels >= 2.6.27 Michele Petrazzo - Unipex srl
     [not found]     ` <001701c96d92$43c4e600$cb4eb200$@jorge@decimal.pt>
2009-01-03 11:47       ` Michele Petrazzo - Unipex srl
     [not found]         ` <002701c96d9b$53a5c0e0$faf142a0$@jorge@decimal.pt>
2009-01-03 12:29           ` Michele Petrazzo - Unipex srl
     [not found]             ` <003101c96ddb$9d991310$d8cb3930$@jorge@decimal.pt>
2009-01-05 11:39               ` Michele Petrazzo - Unipex srl
     [not found]                 ` <01ee01c96f3b$eee74fa0$ccb5eee0$@jorge@decimal.pt>
2009-01-05 14:21                   ` Michele Petrazzo - Unipex srl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox