Re: [LARTC] HTB deadlock

2008-01-31 Thread Marek Kierdelewicz
Greetings, Hi, I've been experiencing problems with HTB where the whole machine locks up. This usually happens when the whole qdisc is being removed and occasionally when a leaf is being removed. You may be interested in reading these two: http://bugzilla.kernel.org/show_bug.cgi?id=9318

Re: [LARTC] HTB performance improvement

2007-12-07 Thread Andy Furniss
gypsy wrote: gypsy wrote: tc qdisc add dev eth0.2 root handle 1: htb tc class add dev eth0.2 parent 1: classid 1:1 htb rate 1 ceil 1 burst 100 quantum 1600 tc class add dev eth0.2 parent 1:1 classid 1:10 htb prio 1 rate 7000 ceil 7000 burst 100 quantum 1600 tc

Re: [LARTC] HTB performance improvement

2007-12-06 Thread gypsy
gypsy wrote: tc qdisc add dev eth0.2 root handle 1: htb tc class add dev eth0.2 parent 1: classid 1:1 htb rate 1 ceil 1 burst 100 quantum 1600 tc class add dev eth0.2 parent 1:1 classid 1:10 htb prio 1 rate 7000 ceil 7000 burst 100 quantum 1600 tc

Re: [LARTC] htb on Gigabit Interfaces

2007-10-10 Thread Marco Aurelio
On 9/18/07, hhoxha [EMAIL PROTECTED] wrote: Hi every body I have a linux server with Intel(R) Xeon(TM) CPU 3.20GHz , and 2 Gigabit of RAM , kernel version 2.6.22.6 , and 2 Intel 82541PI Gigabit Ethernet controllers In simple situation i would like to limit bandwidth for 2 customers

Re: [LARTC] htb : server trafficcontrol

2007-09-16 Thread Jens Thiele
On 16 Sep 2007, [EMAIL PROTECTED] wrote: Suppose we have simple router with upstream interface connected to internet (eth0) and downstream interface connected to lan (eth1). Lan uses private addressing so there is NAT rule used for traffic leaving eth0. You can redirect lan-internet traffic

Re: [LARTC] htb : server trafficcontrol

2007-09-15 Thread Jens Thiele
On 15 Sep 2007, [EMAIL PROTECTED] wrote: Hi everyone, I have a small problem. I have my debian server setup in my home. I have setup htb that is working perfectly. The only problem I have is to control the traffic server - internet I have a daemon (bittorrent) and I would like to limit its

Re: [LARTC] htb : server trafficcontrol

2007-09-15 Thread Marek Kierdelewicz
Any idea how to control that traffic (serv - net) Its the same problems with apt etc etc When I use it, it uses the entire amount of bandwidth... You can shape download to server on ingress using IFB: http://linux-net.osdl.org/index.php?title=IFB IMQ could also be helpfull, but IFB is included

Re: [LARTC] htb : server trafficcontrol

2007-09-15 Thread Jens Thiele
On 15 Sep 2007, [EMAIL PROTECTED] wrote: You can shape download to server on ingress using IFB: http://linux-net.osdl.org/index.php?title=IFB But AFAIK at the moment practically only if there is no NAT involved (or if you do not want to classify de-nated traffic). Any news regarding this

Re: [LARTC] HTB does not respect the prio parameter

2007-09-07 Thread Justin Schoeman
Is quantum not perhaps a bit high? Try setting it lower, and see what happens? -justin On 2007-08-29 08:06, Martin Björnsson wrote: Hi all, I'm experimenting with HTB and the prio parameter and it does not give me results I expect. I've created 4 HTB classes: 1:10 TCP ACKs

Re: [LARTC] HTB does not respect the prio parameter

2007-08-29 Thread bartekR
Martin Björnsson pisze: Hi all, I'm experimenting with HTB and the prio parameter and it does not give me results I expect. I've created 4 HTB classes: 1:10 TCP ACKs (prio 0) 1:20 TCP traffic on dst port 10001 (prio 1) 1:30 TCP traffic on dst port 1 (prio 2) 1:40

Re: [LARTC] HTB does not respect the prio parameter

2007-08-29 Thread Martin Björnsson
Yes, exactly. So my 1:20 class (prio 1) should get to send more than the 1:30 class. But it doesn't, they both get about the same throughput. Nobody else having problems with the prio parameter? Martin bartekR wrote: Martin Björnsson pisze: Hi all, I'm experimenting with HTB and the prio

Re: [LARTC] HTB does not respect the prio parameter

2007-08-29 Thread Nikolay Kichukov
Hello Martin, I used to have this kind of problem before. Not sure if I resolved it with the help of folks on this mailing list, but I never tested. What you can try is to remove the prio parameter from the classes and leave the prio only for the filters. Let us know if that helps. Cheers,

Re: [LARTC] HTB doesn't give me the promised rate: cpufreq?

2007-08-28 Thread DervishD
Hi Andy :) * Andy Furniss [EMAIL PROTECTED] dixit: DervishD wrote: I've thought that the culprit may be cpufreq. I have cpufreq scaling activated, and cpufreq reduces the clock speed from 1800MHz to 1000MHz when the processor is idle. This is more or less the same amount that I lose

Re: [LARTC] HTB doesn't give me the promised rate: cpufreq?

2007-08-28 Thread Andy Furniss
DervishD wrote: I'll start a new thread here for this and will report to LKML too. OK you should probably report to [EMAIL PROTECTED] rather than LKML. Andy. ___ LARTC mailing list LARTC@mailman.ds9a.nl

Re: [LARTC] HTB doesn't give me the promised rate: cpufreq?

2007-08-28 Thread DervishD
Hi Andy :) * Andy Furniss [EMAIL PROTECTED] dixit: DervishD wrote: I'll start a new thread here for this and will report to LKML too. OK you should probably report to [EMAIL PROTECTED] rather than LKML. I was considering it, but then I thought that maybe this problem was known

Re: [LARTC] HTB doesn't give me the promised rate: cpufreq?

2007-08-27 Thread Andy Furniss
DervishD wrote: Hi all :) I've been using a tc setup for almost two years, but at some point (probably when I switched to kernel 2.6.x, but I'm not sure) it has started making something very weird. For a certain class, the rate is 125000bit and the ceil is 27bit, but the

Re: [LARTC] HTB tree is too deep

2007-08-22 Thread Andy Furniss
Marco C. Coelho wrote: I've got a linux (2.6.18-8.1.6.el5.centos.plus) router doing pppoe termination and HTB rate limiting. the number of connections has grown quite a bit in the last few months, and I'm now getting a: HTB tree is too deep message on the monitor. where is the setting

Re: [LARTC] HTB and ATM patch

2007-07-05 Thread Andy Furniss
Edouard Thuleau wrote: Hi all, I patch my kernel (2.6.17) and my tc (iproute2-2.6.18-061002) utilitie for an accurate packet scheduling on an ATM link. I configure my HTB hierarchy on the upload of the link and try with differents flows. It works correctly but in some of case I lose about 50%

Re: [LARTC] HTB deadlock

2007-06-24 Thread Andy Furniss
Ranko Zivojnovic wrote: Greetings, I've been experiencing problems with HTB where the whole machine locks up. This usually happens when the whole qdisc is being removed and occasionally when a leaf is being removed. Common is that it always happens when some sort of removal is in progress.

Re: [LARTC] HTB

2007-06-11 Thread [EMAIL PROTECTED]
Marco Aurelio ha scritto: What exactly happens if the sum of the children classes rate is bigger than the parent's? HTB will assign to the leaf the rate regardeless of the value of the parent's rate. The parent's rate is used only to compute how much bandwith must be allocated to the leaf's

Re: [LARTC] HTB and bursts

2007-05-11 Thread Andy Furniss
Pablo Fernandes Yahoo wrote: I would like to have the customer using 150kbit stable in a download. But at the begining of the conection, i would like to have a 200kbit burst. Depends what you mean - burst is an amount of data not a bitrate. If you want them (using your setup) to have 25k of

Re: [LARTC] HTB and burst...

2007-05-03 Thread Andy Furniss
Michael Fincham wrote: Hey everyone, For some reason my htb configuration isn't allowing any class to burst up to its ceiling ever, even when the link is only being utilised by one class that class only ever gets its assigned rate and exactly that assigned rate... The hierarchy I have is 1: at

RE: [LARTC] HTB and burst...

2007-05-03 Thread Michael Fincham
It looks as though I may have had the hierarchy wrong... I had a class with a qdisc as a child then all my classes as children of the qdisc... now borrowing allowed as they're all root qdiscs. -Michael On Thu, 2007-05-03 at 08:53 -0700, Flechsenhaar, Jon J wrote: I would need to see your

Re: [LARTC] HTB+SFQ

2007-04-27 Thread Alejandro Ramos Encinosa
On Thursday 26 April 2007 19:34, terraja-based wrote: Hi folks, Hi! Hola! I`ve a problem to use HTB and SFQ. The first script, below, to show a simple configuration, does work fine...!!! But, in the second example, does not work, becouse i put more code to clasify the traffic by protocol,

Re: [LARTC] HTB policing affects shaping performance? Please, help.

2007-02-16 Thread Grzegorz Chwesewicz
On Wed, 14 Feb 2007 23:01:02 +0200, Radu Oprisan wrote Bc.Slavomir Danas wrote: I'm trying to access shared folders (samba) on ip 10.4.10.10 from my laptop with ip 172.16.0.2. Everything works as expected when downloading or uploading (correctly shaped and policed at 1Mbit). But when I

Re: [LARTC] HTB policing affects shaping performance? Please, help.

2007-02-14 Thread Radu Oprisan
Bc.Slavomir Danas wrote: I'm trying to access shared folders (samba) on ip 10.4.10.10 from my laptop with ip 172.16.0.2. Everything works as expected when downloading or uploading (correctly shaped and policed at 1Mbit). But when I try to download and upload at the same time, my speed drops

RE: [LARTC] HTB? (NEWBIE)

2007-01-22 Thread Flechsenhaar, Jon J
How the guide say I expect to see on router (with command tc -s qdisc ls dev eth0) that unclassified traffic, like ssh, get rounded to 20: but it doesn't happen. - Traffic just doesn't get rounded to a class. If you want traffic going to a class you need to specify a filter. Did you by

Re: [LARTC] HTB? (NEWBIE)

2007-01-20 Thread Bartek Krawczyk
On Jan 20, 2007, at 12:05 AM, Simone84bo wrote: Hi to all I am studying HTB on LARTC how to. I realize a simple configuration on router: tc qdisc add dev eth0 root handle 1: htb default 30 tc class add dev eth0 parent 1: classid 1:1 htb rate 3mbit burst 15k tc class add dev eth0 parent 1:1

Re: [LARTC] HTB? (NEWBIE)

2007-01-19 Thread Jordi Segues
You should propably try: tc qdisc add dev eth0 root handle 1: htb default 20 and not 30 cause your default class is 20 no? On 1/20/07, Simone84bo [EMAIL PROTECTED] wrote: Hi to all I am studying HTB on LARTC how to. I realize a simple configuration on router: tc qdisc add dev eth0 root handle

RE: [LARTC] HTB GUI

2006-12-04 Thread Rangi Biddle
Hi Alan, can anyone teach me what software to use to build a own web based GUI HTB software in Fedoracore ( Linux based) ? Thanks That really is a very open question to be asking. There are so many different programming languages that can work with a web server 2 that spring to mind are

RE: [LARTC] HTB GUI

2006-12-04 Thread Mark Dueck
You might want to look into MasterShaper. It's a full tc/ip bandwidth shaper. The author of it is Unki. He's done the GUI in php, and uses some perl scripts to run the actual scripts on the system. He's currently working on a newer version, and I think it's supposed to support multiple wans.

Re: [LARTC] htb/iptables for ISP

2006-11-04 Thread Peter Surda
plugthebox.net /dev/null wrote: Hello, hi This process kills my machine for 3-4 minutes until dumping all htb/sqf/iptables into files and running these files (remember that i almost have 1200 IPs, and each IP has 6 HTB+SFQ line with 2 iptables) both iptables and tc have a batch mode, and both

Re: [LARTC] HTB has 2 bucket?

2006-10-14 Thread Thossapron Apinyapanha
own [EMAIL PROTECTED]To: Thossapron Apinyapanha [EMAIL PROTECTED]Cc: lartc lartc lartc@mailman.ds9a.nlSent: Friday, October 13, 2006 7:56:02 PMSubject: Re: [LARTC] HTB has 2 bucket? -BEGIN PGP SIGNED MESSAGE-Hash: SHA1Greetinsg Thossapron,: in HTB use 2 bucket for manage 2 rate??? first bucket - ke

Re: [LARTC] HTB has 2 bucket?

2006-10-14 Thread Thossapron Apinyapanha
PROTECTED]To: Thossapron Apinyapanha [EMAIL PROTECTED]Cc: lartc lartc lartc@mailman.ds9a.nlSent: Friday, October 13, 2006 7:56:02 PMSubject: Re: [LARTC] HTB has 2 bucket? -BEGIN PGP SIGNED MESSAGE-Hash: SHA1Greetinsg Thossapron,: in HTB use 2 bucket for manage 2 rate??? first bucket - ke

Re: [LARTC] HTB has 2 bucket?

2006-10-13 Thread Martin A. Brown
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetinsg Thossapron, : in HTB use 2 bucket for manage 2 rate??? first bucket - keep : token for sending with rate second bucket - keep ctoken for : sending with ceil rate Is it true?? may be i'm misunderstand : about token/bucket thoery Yes,

Re: [LARTC] HTB root rate allowing to much of a burst

2006-09-28 Thread Andy Furniss
Flechsenhaar, Jon J wrote: I don't know if you answer basic HTB questions but I'l try anyway. I'm implementing AF and EF with a root rate of 500 kbps (kilo bits per second). I am using DSMARK to classify packets. I'm implementing this on two different hardware sets PPC and x86 with the same

Re: [LARTC] HTB and HFSC,declaration tc command question

2006-09-26 Thread Andy Furniss
*~ r a K u ~ * wrote: I have a lot question about tc-command because now i'm doing research to compare performance between HTB and HFSC so i'm doubt a lot thing and your reply are so very helpful to me ... My question is *In HTB tc command question* 1. I'm use opensource (Mastershaper) for

Re: [LARTC] HTB and per-connection bandwidth allocation

2006-09-23 Thread Andy Furniss
Namitha Rao wrote: Hi http://mailman.ds9a.nl/pipermail/lartc/2002q3/004977.html I have the same problem to discuss as in the above link. I want to allocate say X MBit per individual connection regardless of the number of connection . KIndly could anyonen suggest me how to proceed. I have

Re: [LARTC] HTB shaping problem

2006-09-18 Thread Andy Furniss
f00ty wrote: Hi all ! I'm building a network appliance whose goals are to enhance Voip quality on 512/128k DSL links. But, i have a voice quality problem, and i think i'm doing something wrong, but i can't find what. Please excuse my terrible english, i'm french. From what i've read, tc is

Re: [LARTC] HTB and per-connection bandwidth allocation

2006-09-14 Thread Luciano Ruete
El Thursday 14 September 2006 05:55, Namitha Rao escribió: Hi http://mailman.ds9a.nl/pipermail/lartc/2002q3/004977.html I have the same problem to discuss as in the above link. I want to allocate say X MBit per individual connection regardless of the number of connection . KIndly could

Re: [LARTC] HTB and tc filter

2006-09-12 Thread gypsy
d3xcrIpt wrote: Help me ... I try use the tc filter, but seems he doesn't work, I already reconfigured my kernel ( 2.4.32 ) with all options related a QOS enabled ( like modules ) and nothing happens. I get the tc tool from HTB source package, well this is my set : eth0 is my

Re: [LARTC] htb traffic shaping problem

2006-09-08 Thread e . janz
Good afternoon,your configuration seems correct to me. Could you send us the output of tc -s -d class show dev eth0 during your probes?What kernel and tc versions are you using?Regards,Eric Janz Departamento de SistemasGrupo Barceló ViajesC\ 16 de Julio, 7507009 Polígono Son CastellóPalma de

RE: [LARTC] htb traffic shaping problem

2006-09-08 Thread Charlie Meyer
7:40 AM To: lartc@mailman.ds9a.nl Subject: Re: [LARTC] htb traffic shaping problem Good afternoon, your configuration seems correct to me. Could you send us the output of tc -s -d class show dev eth0 during your probes? What kernel and tc versions are you using? Regards, Eric Janz

Re: [LARTC] htb prioritise trafic

2006-08-22 Thread Luciano Ruete
On Tuesday 22 August 2006 02:27, Adorean Alexandru Raul wrote: I have a router with about 300 clients connecting to it. It has htb with a class per client. I wnat to create a script to prioritise www trafic and ssh trafic over p2p trafic this is a sample of what i have now: /sbin/tc

Re: [LARTC] HTB shaping borrowing info

2006-05-27 Thread Andreas Klauer
On Sat, May 27, 2006 at 11:28:12PM +0200, Stefano Mainardi wrote: The goal is to divide the traffic for classes of workstations, at example in three classes, let say A, B and C. Sounds simple enough... If B don't make traffic, 7/8 of 20Mb/s must be assigned to A and all the rest at B Why

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-16 Thread Jesper Dangaard Brouer
On Mon, 15 May 2006, Larry Brigman wrote: On 5/14/06, Jesper Dangaard Brouer [EMAIL PROTECTED] wrote: On Fri, 12 May 2006, Muthukumar S wrote: cut Also I was wondering what limits (if any) the kernel timer resolution imposes on HTB. cut The kernel timer resolution does have an impact on

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-16 Thread Andy Furniss
Muthukumar S wrote: Iperf has a demonstrated behavior that when running more than one copy at the same time on the same box (client side); that the timing of each will start to effect the other copies. This is a function of how Iperf does it's timing (spin loops). What traffic generators

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-15 Thread Larry Brigman
On 5/14/06, Jesper Dangaard Brouer [EMAIL PROTECTED] wrote: On Fri, 12 May 2006, Muthukumar S wrote: cut Also I was wondering what limits (if any) the kernel timer resolution imposes on HTB. cut The kernel timer resolution does have an impact on the precision of HTB (the delay jitter). I

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-14 Thread Jesper Dangaard Brouer
On Fri, 12 May 2006, Muthukumar S wrote: cut Also I was wondering what limits (if any) the kernel timer resolution imposes on HTB. cut The kernel timer resolution does have an impact on the precision of HTB (the delay jitter). I have done some detailed studies in my master thesis. Which

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-12 Thread Muthukumar S
I'll try using 450 K and setting a higher ceil to see how it works. Also I was wondering what limits (if any) the kernel timer resolution imposes on HTB. Thanks! Muthu On 5/11/06, Jody Shumaker [EMAIL PROTECTED] wrote: On 5/10/06, Muthukumar S [EMAIL PROTECTED] wrote: First up, thanks for the

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-12 Thread Muthukumar S
Iperf has a demonstrated behavior that when running more than one copy at the same time on the same box (client side); that the timing of each will start to effect the other copies. This is a function of how Iperf does it's timing (spin loops). What traffic generators would you recommend? What

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-12 Thread Larry Brigman
On 5/12/06, Muthukumar S [EMAIL PROTECTED] wrote: Iperf has a demonstrated behavior that when running more than one copy at the same time on the same box (client side); that the timing of each will start to effect the other copies. This is a function of how Iperf does it's timing (spin

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-12 Thread Luciano Ruete
On Friday 12 May 2006 12:35, Muthukumar S wrote: Iperf has a demonstrated behavior that when running more than one copy at the same time on the same box (client side); that the timing of each will start to effect the other copies. This is a function of how Iperf does it's timing (spin

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-11 Thread Muthukumar S
Forwarding this to the list just so its in the archives. -- Forwarded message -- From: Larry Brigman [EMAIL PROTECTED] Date: May 11, 2006 10:16 AM Subject: Re: [LARTC] HTB at 100+ Mbits/sec To: Muthukumar S [EMAIL PROTECTED] On 5/10/06, Muthukumar S [EMAIL PROTECTED] wrote

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-11 Thread Jody Shumaker
On 5/10/06, Muthukumar S [EMAIL PROTECTED] wrote: First up, thanks for the response Jody. I appreciate your taking the time to answer. So in essence what this means is that I will not be able to use the maximum that the link allows if I'm shaping traffic? Please correct me if I got this wrong -

Re: [LARTC] HTB How To ??

2006-05-07 Thread Daniel Harold L.
On Monday April 17 2006 18:56, Cahyo Purnomo wrote: Dear All, I wanna to implement of bandwith shapingin my office using HTB, any body suggest about the case ? Below the acl ip range i want to limit : 1. staf (10.0.0.1 - 3) -- limit to 10kbyte/s 2. lab (10.0.0.4 - 6) -- limit to 5kbyte/s

Re: [LARTC] HTB - Rate errors

2006-04-26 Thread Luciano Ruete
El Wednesday 26 April 2006 13:00, Luke McConnell escribió: Hi, I'm trying to get HTB working correctly on Centos4 (RHEL-based) with kernel 2.6.9-34.EL. I have two gigabit network interfaces bridged together and I have created the following: tc qdisc add dev eth2 root handle 1: htb default 1

Re: [LARTC] htb overrate with 2.6.16

2006-04-18 Thread Andy Furniss
Yanko Kaneti wrote: One more thing I just thought - sfq sets its quantum from the dev mtu. Riiight. I should have tried without the sfq earlier. Without it this works as expected without explicit mtu setting for the htb class. And no giants. # tc qdisc add dev eth0 root handle 1: htb # tc

Re: [LARTC] htb overrate with 2.6.16

2006-04-18 Thread Andy Furniss
Andy Furniss wrote: Looking again at your stats - Sent 189796883 bytes 20626 pkt (dropped 0, overlimits 0 requeues 0) rate 3484Kbit 45pps backlog 0b 0p requeues 0 lended: 20627 borrowed: 0 giants: 30926 tokens: -9768 ctokens: -9768 The giants count is higher than the packet count so now I

Re: [LARTC] htb overrate with 2.6.16

2006-04-18 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Looking again at your stats - Sent 189796883 bytes 20626 pkt (dropped 0, overlimits 0 requeues 0) rate 3484Kbit 45pps backlog 0b 0p requeues 0 lended: 20627 borrowed: 0 giants: 30926 tokens: -9768 ctokens: -9768 The giants count is higher than the

Re: [LARTC] htb overrate with 2.6.16

2006-04-17 Thread Andy Furniss
Yanko Kaneti wrote: On Sun, 2006-04-16 at 19:40 +0100, Andy Furniss wrote: Yanko Kaneti wrote: On Sun, 2006-04-16 at 03:03 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The

Re: [LARTC] htb overrate with 2.6.16

2006-04-17 Thread Yanko Kaneti
On Mon, 2006-04-17 at 21:32 +0200, Patrick McHardy wrote: Andy Furniss wrote: Well, as much as google tells me TSO has been in the kernel and enabled since 2.5.33 and e1000 was the first driver to support it. The FC4 2.6.16 kernel doesn't have any tso related patches as can be seen here

Re: [LARTC] htb overrate with 2.6.16

2006-04-16 Thread Andy Furniss
Yanko Kaneti wrote: On Sun, 2006-04-16 at 03:03 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The mtu of the interface is and was 1500. Or so ifconfig and ip link tell me. Or this

Re: [LARTC] htb overrate with 2.6.16

2006-04-16 Thread Yanko Kaneti
On Sun, 2006-04-16 at 19:40 +0100, Andy Furniss wrote: Yanko Kaneti wrote: On Sun, 2006-04-16 at 03:03 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The mtu of the interface

Re: [LARTC] htb overrate with 2.6.16

2006-04-16 Thread Andy Furniss
Yanko Kaneti wrote: I think you need to ask fedora or intel driver maintainer about this. AIUI tso is not in vanilla kernels and the patches are quite invasive. Well, as much as google tells me TSO has been in the kernel and enabled since 2.5.33 and e1000 was the first driver to support it.

Re: [LARTC] htb overrate with 2.6.16

2006-04-15 Thread Andy Furniss
Yanko Kaneti wrote: Hi Here is something that worked with with 2.6.10-1.771_FC2smp and stopped working when I upgraded to 2.6.16-1.2069_FC4smp. These are fedora kernels and the network controller is an Intel Gbit (e1000) running a 100 Mbps Full Duplex. Don't know how or if this matters but the

Re: [LARTC] htb overrate with 2.6.16

2006-04-15 Thread Yanko Kaneti
On Sun, 2006-04-16 at 00:13 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Hi Here is something that worked with with 2.6.10-1.771_FC2smp and stopped working when I upgraded to 2.6.16-1.2069_FC4smp. These are fedora kernels and the network controller is an Intel Gbit (e1000) running

Re: [LARTC] htb overrate with 2.6.16

2006-04-15 Thread Andy Furniss
Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The mtu of the interface is and was 1500. Or so ifconfig and ip link tell me. Or this is some other mtu we are talking about... Hmm I didn't expect that - maybe

Re: [LARTC] htb overrate with 2.6.16

2006-04-15 Thread Yanko Kaneti
On Sun, 2006-04-16 at 03:03 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The mtu of the interface is and was 1500. Or so ifconfig and ip link tell me. Or this is some other mtu

Re: [LARTC] HTB statistics granularity

2006-04-11 Thread Jody Shumaker
b) Is there a way to get a precise rate and pps for the last 10 seconds? (issue of rate taking 3-4 mins to get to zero as opposed to instantly) Run the command, record the number of bytes and packets sent. (tc -s class show dev ppp0) Wait exactly 10 seconds (sleep 10) Run the command again,

Re: [LARTC] htb and priorizing class

2006-03-24 Thread Andreas Klauer
On Fri, Mar 24, 2006 at 04:56:44PM +0100, Fabio wrote: Is this a configuration problem? Also, when I set tc rules I get: quantum of class is big. Consider r2q change Well, that message can be avoided by configuring quantum properly (not always possible if difference between rates is

Re: [LARTC] Htb queueing problem

2006-03-02 Thread Andy Furniss
Diego Andrés Asenjo Gonzalez wrote: Hi again! $IPT -A FORWARD -t mangle -p udp -s 172.16.0.185/32 -i eth1 --sport 1:10100 -d 172.16.1.0/24 -j MARK --set-mark 0x44 This should be -o eth1 or you should be shaping it on eth0 or if it's for the shaping box you need to do some sort of

Re: [LARTC] Htb queueing problem

2006-03-02 Thread [EMAIL PROTECTED]
Diego Andrés Asenjo Gonzalez ha scritto: Sorry, a typo :p. You pointed clearly the -o eth1 in the previous message. Really, is the first time that I use -i or -o in the rule. One point is that the box is a bridge between a LAN and a router, eth0 is in the LAN and eth1 in the router. So, I

Re: [LARTC] Htb queueing problem

2006-03-02 Thread Luciano Ruete
El Thursday 02 March 2006 12:59, Andy Furniss escribió: Diego Andrés Asenjo Gonzalez wrote: Hi again! $IPT -A FORWARD -t mangle -p udp -s 172.16.0.185/32 -i eth1 --sport 1:10100 -d 172.16.1.0/24 -j MARK --set-mark 0x44 This should be -o eth1 or you should be shaping it on eth0 or

Re: [LARTC] Htb queueing problem

2006-03-02 Thread Diego Andrés Asenjo Gonzalez
Hello! Thanks to all for your responses. [EMAIL PROTECTED] wrote: You have to use physdev on a bridge (-m physdev --physdev-out eth1). Yes, you are right. Taken from ebtables FAQ: * Can I use ebtables with iptables? Yes, it's possible to use ebtables together with iptables, there are

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andy Furniss
Diego Andrés Asenjo Gonzalez wrote: Hi everybody! I'm using an edge bridge box with two ethernet cards to shape traffic in a WAN link. I'm running Debian 3.1 stable with kernel 2.6.8 and iproute from packages. I recompiled the kernel with the following built-in options: [*] 802.1d Ethernet

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Diego Andrés Asenjo Gonzalez
Hi and thanks for replying! As I select everything I don't know if this is enough - also I think you need to select classify in netfilter the section. I also select almost everything in the netfilter section, including MARK and CLASSIFY. I simplified the script mantaining the most

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andreas Hasenack
On Wed, Mar 01, 2006 at 02:48:18PM +, Andy Furniss wrote: than bulk. Also remember when setting rates that htb will see ip packets as ip length + 14 when used on ethX Could you elaborate on this a bit? I suppose you also meant this in an earlier message when you mentioned that the overhead

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andy Furniss
Diego Andrés Asenjo Gonzalez wrote: Hi and thanks for replying! As I select everything I don't know if this is enough - also I think you need to select classify in netfilter the section. I also select almost everything in the netfilter section, including MARK and CLASSIFY. I simplified

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andy Furniss
Andreas Hasenack wrote: On Wed, Mar 01, 2006 at 02:48:18PM +, Andy Furniss wrote: than bulk. Also remember when setting rates that htb will see ip packets as ip length + 14 when used on ethX Could you elaborate on this a bit? I suppose you also meant this in an earlier message when you

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Diego Andrés Asenjo Gonzalez
Hi again! $IPT -A FORWARD -t mangle -p udp -s 172.16.0.185/32 -i eth1 --sport 1:10100 -d 172.16.1.0/24 -j MARK --set-mark 0x44 This should be -o eth1 or you should be shaping it on eth0 or if it's for the shaping box you need to do some sort of ingress shaping/policing. Sorry, a typo

Re: [LARTC] HTB: far unequal behaivor at a slight conf rate change [Solved]

2006-02-25 Thread Luciano Ruete
El Friday 24 February 2006 06:36, Andreas Klauer escribió: On Thu, Feb 23, 2006 at 11:42:16PM -0300, Luciano Ruete wrote: with vde_switch daemon listening in a tuntap device. I suppose that htb is device independet, i hope it does not matter. I don't have any experience with vde_switch and

Re: [LARTC] htb root don't reach ceil rate?

2006-02-25 Thread Andy Furniss
Markus Schulz wrote: Am Freitag, 10. Februar 2006 14:45 schrieb Markus Schulz: tc -s -d class show dev ppp0 class htb 1:1 root rate 576000bit ceil 576000bit burst 30Kb/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b overhead 14b level 7 Sent 1485575598 bytes 3140554 pkts (dropped 0, overlimits 0)

Re: [LARTC] htb root don't reach ceil rate?

2006-02-25 Thread Andy Furniss
ok, i've understand now. Differenz comes from gross versus net data rates due to overhead of ATM-SAR and pppoe-overhead. All statistic values are netto values. Yes - you can get patches to do egress overheads for dsl - if you know your exact type and are prepared to rebuild kernel or the

Re: [LARTC] HTB: far unequal behaivor at a slight conf rate change

2006-02-24 Thread Andreas Klauer
On Thu, Feb 23, 2006 at 11:42:16PM -0300, Luciano Ruete wrote: That's becouse the _real_ scenario will look like this: root-parent_all_hosts-client_host_1-prio -dfl [...] -client_host_N-prio

Re: [LARTC] HTB: far unequal behaivor at a slight conf rate change

2006-02-23 Thread Andreas Klauer
On Thu, Feb 23, 2006 at 07:08:27PM -0300, Luciano Ruete wrote: root-parent_all_host(256,256)-client_host_1(X,X)-host_1_prio(X*0.9,X) -host_1_dfl(X*0.1,X) What's the purpose of the 256kbit class? In the setup you posted, the 200/230kbit child

Re: [LARTC] HTB: far unequal behaivor at a slight conf rate change

2006-02-23 Thread Luciano Ruete
El Thursday 23 February 2006 19:38, Andreas Klauer escribió: On Thu, Feb 23, 2006 at 07:08:27PM -0300, Luciano Ruete wrote: root-parent_all_host(256,256)-client_host_1(X,X)-host_1_prio(X*0.9,X) -host_1_dfl(X*0.1,X) What's the purpose of the

Re: [LARTC] HTB, strange capacity distribution

2006-02-22 Thread Andreas Klauer
On Tue, Feb 21, 2006 at 02:21:36PM +0100, Boris Gereg wrote: thanks Andreas, I reconfigured HTB to get your suggested hierarhy: One thing I forgot in my graph: Make sure that the rates always add up, i.e. the sum of the child class rates should equal the parent class rate. It's unlikely to be

Re: [LARTC] HTB, strange capacity distribution

2006-02-22 Thread Andreas Klauer
On Thu, Feb 23, 2006 at 05:00:12AM +0100, Boris Gereg wrote: I did what you suggested and the results are as expected! You can see this picture to verify: http://elusion.sk/visual_inet_7.png At 4:25 I started HTTP download. P2P class immediately droped down to it's RATE, WWW class got it's

Re: [LARTC] HTB, strange capacity distribution

2006-02-21 Thread Boris Gereg
Hello, thanks Andreas, I reconfigured HTB to get your suggested hierarhy: AK 1: HTB Qdisc AK | AK \--- 1:2 HTB root class (10Kbit:10kbit) AK | AK \--- 1:2000 HTB leaf class (5Kbit:10Kbit) #local AK | AK \--- 1:3000 HTB parent class (2048Kbit:2048Kbit) AK

Re: [LARTC] HTB, strange capacity distribution

2006-02-20 Thread Andreas Klauer
On Mon, Feb 20, 2006 at 10:59:33PM +0100, Boris Gereg wrote: I made a screen to help explain my problem. Please, see this picture: http://elusion.sk/visual_inet_hory.png Nice graph. I assume this is on downstream, and you rely on HTB to drop packets for you. You may have read this in the

Re: [LARTC] HTB, strange capacity distribution

2006-02-20 Thread Andreas Klauer
On Tue, Feb 21, 2006 at 12:49:59AM +0100, Boris Gereg wrote: (first of all, please, how to reply to some article in LARTC via mail to post it into right thread?) Using 'reply all', or 'reply list' if your mail software offers it. If all else fails, just hit 'reply' and add the mailing list to

Re: [LARTC] htb root don't reach ceil rate?

2006-02-18 Thread Markus Schulz
Am Freitag, 10. Februar 2006 14:45 schrieb Markus Schulz: tc -s -d class show dev ppp0 class htb 1:1 root rate 576000bit ceil 576000bit burst 30Kb/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b overhead 14b level 7  Sent 1485575598 bytes 3140554 pkts (dropped 0, overlimits 0)  rate 480008bit

Re: [LARTC] htb prio ...

2006-02-05 Thread Jody Shumaker
They would do different things, the prio only has to do with all other classes that share the same parent. The prio isn't preserved as it goes up/down the tree. Depending on what you want to accomplish, you really should probably be doing it on all levels, not one or the other. - JodyOn 2/5/06,

Re: [LARTC] HTB prio question

2006-01-30 Thread Andreas Klauer
On Mon, Jan 30, 2006 at 02:35:36PM +0200, Anton Glinkov wrote: Is the prio specification in the htb class global or is it on a per class basis? A simple example: class 1:10 parent 1: class 1:130 parent 1:10 prio 3 class 1:170 parent 1:10 prio 7 class 1:171 parent 1:170 prio 1 class

Re: [LARTC] HTB - not borrowing, not exceeding rate

2006-01-15 Thread Kajetan Staszkiewicz
Dnia wtorek, 10 stycznia 2006 00:57, Andy Furniss napisał(a): # main rate limitation for whole connection (802.11a radio link) tc class add dev eth2.24 parent 1: classid 1:1 htb rate 15000kbit ceil 15000kbit burst 10kbit Burst too small - it's realated to HZ and also should be at least

Re: [LARTC] HTB traffic shaping odd effects

2006-01-09 Thread Andy Furniss
Oliver Hookins wrote: burst 19k will limit you unless your HZ=1000 Our HZ is 512. I don't know if it makes any difference, but I would have chosen 500 so that it was 2ms. The default now is 250 and with 19k burst that fits the speed you get really well - with 512 it would be around

Re: [LARTC] HTB - not borrowing, not exceeding rate

2006-01-09 Thread Andy Furniss
Kajetan Staszkiewicz wrote: Here is current setup: tc qdisc del root dev eth2.24 2/dev/null tc qdisc add root dev eth2.24 handle 1: htb default 1 # main rate limitation for whole connection (802.11a radio link) tc class add dev eth2.24 parent 1: classid 1:1 htb rate 15000kbit ceil 15000kbit

Re: [LARTC] HTB traffic shaping odd effects

2006-01-08 Thread Oliver Hookins
Denis Ovsienko wrote: tc qdisc add dev eth0 root handle 1: htb default 10 tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit burst 24k Does the following help? tc qdisc add dev eth0 root handle 1: htb default 1 tc class add dev eth0 parent 1: classid 1:1 htb rate 81mbit burst 24k

Re: [LARTC] HTB traffic shaping odd effects

2006-01-08 Thread Andy Furniss
Oliver Hookins wrote: Hi, I'm trying to perform some (what I consider) basic traffic shaping on our network utilising HTB. I have mostly reused the example on the lartc.org site: tc qdisc add dev eth0 root handle 1: htb default 10 tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit

  1   2   3   4   5   6   7   >