Re: [LARTC] Re: htb traffic shaping problem

2006-09-18 Thread Bugzilla-Redirect
I was not aware that segmentation offloading would cause a problem... and I 
do believe it's on.


I think I'll just stuck with the high mtu for the moment then, as I would 
rather have the CPU savings

then more accurate traffic controlling.

Thanks.
-Ryan Power

At 07:48 AM 9/18/2006, Andy Furniss wrote:

gypsy wrote:

Bugzilla-Redirect wrote:


Yes, the output is below:
eth0  Link encap:Ethernet  HWaddr 00:11:09:2A:A6:F6
  inet addr:10.0.0.50  Bcast:10.0.0.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:4244867 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1306632 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:3898905509 (3.6 GiB)  TX bytes:1756030081 (1.6 GiB)
  Interrupt:19


Try a "quantum 1514" then; that is correct for an ethernet device with
an MTU of 1500.
Perhaps reading the source code will give a clue about MPU and MTU? 
Frankly, I'd set it to whatever works as long as the rest of the status

info looks right and not give a damn that it is huge.


Even if ifconfig says 1500 there have been posts that say you don't get it 
with gig cards that do segmentation offload unless you can turn it off 
with ethtool.


Apologies if this has already been said as I don't have all the thread.

Andy.


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Re: htb traffic shaping problem

2006-09-18 Thread Andy Furniss

gypsy wrote:

Bugzilla-Redirect wrote:


Yes, the output is below:
eth0  Link encap:Ethernet  HWaddr 00:11:09:2A:A6:F6
  inet addr:10.0.0.50  Bcast:10.0.0.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:4244867 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1306632 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:3898905509 (3.6 GiB)  TX bytes:1756030081 (1.6 GiB)
  Interrupt:19



Try a "quantum 1514" then; that is correct for an ethernet device with
an MTU of 1500.

Perhaps reading the source code will give a clue about MPU and MTU? 
Frankly, I'd set it to whatever works as long as the rest of the status

info looks right and not give a damn that it is huge.


Even if ifconfig says 1500 there have been posts that say you don't get 
it with gig cards that do segmentation offload unless you can turn it 
off with ethtool.


Apologies if this has already been said as I don't have all the thread.

Andy.
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Re: htb traffic shaping problem

2006-09-16 Thread gypsy
Bugzilla-Redirect wrote:
> 
> Yes, the output is below:
> eth0  Link encap:Ethernet  HWaddr 00:11:09:2A:A6:F6
>inet addr:10.0.0.50  Bcast:10.0.0.255  Mask:255.255.255.0
>UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>RX packets:4244867 errors:0 dropped:0 overruns:0 frame:0
>TX packets:1306632 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:1000
>RX bytes:3898905509 (3.6 GiB)  TX bytes:1756030081 (1.6 GiB)
>Interrupt:19

Try a "quantum 1514" then; that is correct for an ethernet device with
an MTU of 1500.

Perhaps reading the source code will give a clue about MPU and MTU? 
Frankly, I'd set it to whatever works as long as the rest of the status
info looks right and not give a damn that it is huge.
--
gypsy
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Re: htb traffic shaping problem

2006-09-15 Thread Bugzilla-Redirect

Yes, the output is below:
eth0  Link encap:Ethernet  HWaddr 00:11:09:2A:A6:F6
  inet addr:10.0.0.50  Bcast:10.0.0.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:4244867 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1306632 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:3898905509 (3.6 GiB)  TX bytes:1756030081 (1.6 GiB)
  Interrupt:19

And from ethtool:
Settings for eth0:
Supported ports: [ MII ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes

Thanks.
-Ryan Power

At 04:32 PM 9/14/2006, you wrote:

Hi,

could you check the mtu set on eth0 with an ifconfig?
I tried my own setup and it works fine...


Regards,

Eric Janz
Departamento de Sistemas
Grupo Barceló Viajes


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Re: htb traffic shaping problem

2006-09-14 Thread e . janz
u wrote:>Message: 4>Date: Tue, 12 Sep 2006 10:36:27 +0200>From: [EMAIL PROTECTED]>Subject: Re: [LARTC] Re: htb traffic shaping problem (Charlie Meyer)>To: lartc@mailman.ds9a.nl>Message-ID:>         <[EMAIL PROTECTED]>>Content-Type: text/plain; charset="iso-8859-1">>Hi again,>>sorry for my late response. Could you give us also the output of>>tc -s -d qdisc show dev eth0>tc filter show dev eth0>>It is very strange that the rate and ceil from class 1:10 are set to>512Kbit but the class's rate goes over 3,5Mbits!! ¿Maybe it is a bug?>I'm preparing a similar setup (a linux wan router on a 100Mbit lan
with>5Mbps upload/dowload to the Internet. We will see if I run into the
same>issues...>>>Regards,>Eric JanzAt 09:51 PM 9/12/2006, you wrote:>The giants indicate that your MPU (MTU) is wrong.  Set it specifically.>Try 1500.  Search the archives for "giants" and "MPU"
or "MTU".>-->gypsy___LARTC mailing listLARTC@mailman.ds9a.nlhttp://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc--

ADVERTENCIA LEGAL
El contenido de este correo es confidencial y dirigido unicamente a su destinatario. Para acceder a su clausula de privacidad consulte http://www.barceloviajes.com/privacy

LEGAL ADVISORY
This message is confidential and intended only for the person or entity to which it is addressed. In order to read its privacy policy consult it at http://www.barceloviajes.com/privacy
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Re: htb traffic shaping problem (Charlie Meyer)

2006-09-12 Thread gypsy
Bugzilla-Redirect wrote:
> 
> Eric,
> I've attached the output from the command you requested below.
> I'm using kernel 2.6.17.12 and tc version ss060323.  I'm have a nforce4
> onboard giggabit controller using the forcedeth driver, if that makes a
> difference.
> 
> Charlie,
> I'll take a look at the Apache model for throttling, thanks.  I was going
> for tc because was going to try to add additional shaping to non-apache
> traffic once I got it working correctly.
> 
> Thanks,
> -Ryan Power
> 
> tc -s -d class show dev eth0
> class htb 1:99 parent 1:1 leaf 99: prio 0 quantum 3000 rate 90Kbit ceil
> 1000Mbit burst 451350b/8 mpu 0b overhead 0b cburst 501375b/8 mpu 0b
> overhead 0b level 0
>   Sent 48695 bytes 398 pkt (dropped 0, overlimits 0 requeues 0)
>   rate 2704bit 2pps backlog 0b 0p requeues 0
>   lended: 398 borrowed: 0 giants: 0
>   tokens: 4326 ctokens: 4325
> 
> class htb 1:1 root rate 1000Mbit ceil 1000Mbit burst 501375b/8 mpu 0b
> overhead 0b cburst 501375b/8 mpu 0b overhead 0b level 7
>   Sent 32821394 bytes 994 pkt (dropped 0, overlimits 0 requeues 0)
>   rate 3556Kbit 10pps backlog 0b 0p requeues 0
>   lended: 0 borrowed: 0 giants: 1128
>   tokens: 4325 ctokens: 4325
> 
> class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 3000 rate 512000bit ceil
> 512000bit burst 1755b/8 mpu 0b overhead 0b cburst 1755b/8 mpu 0b overhead
> 0b level 0
>   Sent 34256069 bytes 701 pkt (dropped 0, overlimits 0 requeues 0)
>   rate 3554Kbit 8pps backlog 0b 105p requeues 0
>   lended: 596 borrowed: 0 giants: 1128
>   tokens: -52724 ctokens: -52724

The giants indicate that your MPU (MTU) is wrong.  Set it specifically. 
Try 1500.  Search the archives for "giants" and "MPU" or "MTU".
--
gypsy
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] Re: htb traffic shaping problem (Charlie Meyer)

2006-09-12 Thread e . janz

Hi again,sorry for my late response. Could you
give us also the output of tc -s -d qdisc show dev eth0tc filter show dev eth0It is very strange that the rate and
ceil from class 1:10 are set to 512Kbit but the class's rate goes over
3,5Mbits!! ¿Maybe it is a bug?I'm preparing a similar setup (a linux
wan router on a 100Mbit lan with 5Mbps upload/dowload to the Internet.
We will see if I run into the same issues...Regards,Eric Janz Bugzilla-Redirect <[EMAIL PROTECTED]>Enviado por: [EMAIL PROTECTED]09/09/2006 21:56Paralartc@mailman.ds9a.nlccAsunto[LARTC] Re: htb traffic shaping problem
(Charlie Meyer)Eric,I've attached the output from the command you requested below.I'm using kernel 2.6.17.12 and tc version ss060323.  I'm have a nforce4
onboard giggabit controller using the forcedeth driver, if that makes a
difference.Charlie,I'll take a look at the Apache model for throttling, thanks.  I was
going for tc because was going to try to add additional shaping to non-apache
traffic once I got it working correctly.Thanks,-Ryan Powertc -s -d class show dev eth0class htb 1:99 parent 1:1 leaf 99: prio 0 quantum 3000 rate 90Kbit
ceil 1000Mbit burst 451350b/8 mpu 0b overhead 0b cburst 501375b/8 mpu 0b overhead 0b level 0  Sent 48695 bytes 398 pkt (dropped 0, overlimits 0 requeues 0)  rate 2704bit 2pps backlog 0b 0p requeues 0  lended: 398 borrowed: 0 giants: 0  tokens: 4326 ctokens: 4325class htb 1:1 root rate 1000Mbit ceil 1000Mbit burst 501375b/8 mpu 0b overhead 0b cburst 501375b/8 mpu 0b overhead 0b level 7  Sent 32821394 bytes 994 pkt (dropped 0, overlimits 0 requeues 0)  rate 3556Kbit 10pps backlog 0b 0p requeues 0  lended: 0 borrowed: 0 giants: 1128  tokens: 4325 ctokens: 4325class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 3000 rate 512000bit ceil
512000bit burst 1755b/8 mpu 0b overhead 0b cburst 1755b/8 mpu 0b overhead
0b level 0  Sent 34256069 bytes 701 pkt (dropped 0, overlimits 0 requeues 0)  rate 3554Kbit 8pps backlog 0b 105p requeues 0  lended: 596 borrowed: 0 giants: 1128  tokens: -52724 ctokens: -52724___LARTC mailing listLARTC@mailman.ds9a.nlhttp://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc--

ADVERTENCIA LEGAL
El contenido de este correo es confidencial y dirigido unicamente a su destinatario. Para acceder a su clausula de privacidad consulte http://www.barceloviajes.com/privacy

LEGAL ADVISORY
This message is confidential and intended only for the person or entity to which it is addressed. In order to read its privacy policy consult it at http://www.barceloviajes.com/privacy
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc