All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB is being hang my computer :/
@ 2005-06-08 11:46 Konrad
  2005-06-08 12:25 ` Rio Martin.
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Konrad @ 2005-06-08 11:46 UTC (permalink / raw)
  To: lartc

What's wrong... I have Celeron 633MHz nd 768Mb RAM.

When I'm running my script everything is OK, but when I'm connecting 
Internet and LAN link computer is hanging. But when i dissconnect this 
everything is OK.


I have 500 users, 1500 classes and 3000 filters.


Is it normal? What should I do?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
@ 2005-06-08 12:25 ` Rio Martin.
  2005-06-08 12:43 ` Thomas Graf
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Rio Martin. @ 2005-06-08 12:25 UTC (permalink / raw)
  To: lartc

Perhaps you use IMQ + iptables MARKING and you made mistake with the way you 
mark packets.

- Rio.Martin -

On Wednesday 08 June 2005 11:46, Konrad wrote:
> What's wrong... I have Celeron 633MHz nd 768Mb RAM.
>
> When I'm running my script everything is OK, but when I'm connecting
> Internet and LAN link computer is hanging. But when i dissconnect this
> everything is OK.
>
>
> I have 500 users, 1500 classes and 3000 filters.
>
>
> Is it normal? What should I do?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
  2005-06-08 12:25 ` Rio Martin.
@ 2005-06-08 12:43 ` Thomas Graf
  2005-06-08 12:51 ` Peter Surda
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Thomas Graf @ 2005-06-08 12:43 UTC (permalink / raw)
  To: lartc

* Konrad <42A6DA9A.1010900@tlen.pl> 2005-06-08 13:46
> When I'm running my script everything is OK, but when I'm connecting 
> Internet and LAN link computer is hanging. But when i dissconnect this 
> everything is OK.

What kernel version are you running? Can you provide an oops message?
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
  2005-06-08 12:25 ` Rio Martin.
  2005-06-08 12:43 ` Thomas Graf
@ 2005-06-08 12:51 ` Peter Surda
  2005-06-08 12:52 ` Konrad
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Peter Surda @ 2005-06-08 12:51 UTC (permalink / raw)
  To: lartc

On Wed, 08 Jun 2005 13:46:34 +0200 Konrad <kcem@tlen.pl> wrote:

>I have 500 users, 1500 classes and 3000 filters.
Perhaps you might try WRR instead of having so many HTB classes?

Yours sincerely,
Peter
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (2 preceding siblings ...)
  2005-06-08 12:51 ` Peter Surda
@ 2005-06-08 12:52 ` Konrad
  2005-06-08 12:56 ` Konrad
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Konrad @ 2005-06-08 12:52 UTC (permalink / raw)
  To: lartc

Thomas Graf wrote:
> * Konrad <42A6DA9A.1010900@tlen.pl> 2005-06-08 13:46
> 
>>When I'm running my script everything is OK, but when I'm connecting 
>>Internet and LAN link computer is hanging. But when i dissconnect this 
>>everything is OK.
> 
> 
> What kernel version are you running? Can you provide an oops message?
Without any errors...
Only 2000ms ping to this computer and don't respond when pressing keys 
keyboard :/ (until I disconect LAN).
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (3 preceding siblings ...)
  2005-06-08 12:52 ` Konrad
@ 2005-06-08 12:56 ` Konrad
  2005-06-08 13:06 ` Thomas Graf
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Konrad @ 2005-06-08 12:56 UTC (permalink / raw)
  To: lartc

Rio Martin. wrote:
> Perhaps you use IMQ + iptables MARKING and you made mistake with the way you 
> mark packets.

I'm using IMQ with connmark and u32 mark, but when I'm connecting 1 comp 
it works.
Kernel 2.6.11, HTB without HYSTERESIS, SFQ_DEPTH 16.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (4 preceding siblings ...)
  2005-06-08 12:56 ` Konrad
@ 2005-06-08 13:06 ` Thomas Graf
  2005-06-08 13:31 ` Rio Martin.
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Thomas Graf @ 2005-06-08 13:06 UTC (permalink / raw)
  To: lartc

* Konrad <42A6EA14.3000701@tlen.pl> 2005-06-08 14:52
> Thomas Graf wrote:
> >* Konrad <42A6DA9A.1010900@tlen.pl> 2005-06-08 13:46
> >
> >>When I'm running my script everything is OK, but when I'm connecting 
> >>Internet and LAN link computer is hanging. But when i dissconnect this 
> >>everything is OK.
> >
> >
> >What kernel version are you running? Can you provide an oops message?
> Without any errors...
> Only 2000ms ping to this computer and don't respond when pressing keys 
> keyboard :/ (until I disconect LAN).

What kernel version are you running? (Please answer questions the first
time I ask them, it is in your interest.) Do you see any messages in the
console (dmesg)?

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

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (5 preceding siblings ...)
  2005-06-08 13:06 ` Thomas Graf
@ 2005-06-08 13:31 ` Rio Martin.
  2005-06-08 13:53 ` Konrad
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Rio Martin. @ 2005-06-08 13:31 UTC (permalink / raw)
  To: lartc

Tested in my Pentium 4 Router with 512MB RAM when playing with IMQ + iptables 
marking PREROUTING , FORWARD, POSTROUTING  made this PC dizzy and reboot 
several times .. he he :))
so I think this is the same situation ..

- Rio.Martin -



On Wednesday 08 June 2005 12:56, Konrad wrote:
> Rio Martin. wrote:
> > Perhaps you use IMQ + iptables MARKING and you made mistake with the way
> > you mark packets.
>
> I'm using IMQ with connmark and u32 mark, but when I'm connecting 1 comp
> it works.
> Kernel 2.6.11, HTB without HYSTERESIS, SFQ_DEPTH 16.
> _______________________________________________
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (6 preceding siblings ...)
  2005-06-08 13:31 ` Rio Martin.
@ 2005-06-08 13:53 ` Konrad
  2005-06-09 23:48 ` Andy Furniss
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Konrad @ 2005-06-08 13:53 UTC (permalink / raw)
  To: lartc

Rio Martin. wrote:
> Perhaps you use IMQ + iptables MARKING and you made mistake with the way you 
> mark packets.

I'm using IMQ with connmark and u32 mark, but when I'm connecting 1 comp 
it works.
Kernel 2.6.11, HTB without HYSTERESIS, SFQ_DEPTH 16.

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

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (7 preceding siblings ...)
  2005-06-08 13:53 ` Konrad
@ 2005-06-09 23:48 ` Andy Furniss
  2005-06-10  6:23 ` Rio Martin.
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Andy Furniss @ 2005-06-09 23:48 UTC (permalink / raw)
  To: lartc

Rio Martin. wrote:
> Tested in my Pentium 4 Router with 512MB RAM when playing with IMQ + iptables 
> marking PREROUTING , FORWARD, POSTROUTING  made this PC dizzy and reboot 
> several times .. he he :))
> so I think this is the same situation ..

What kernel are you using - does it crash with a normal setup ie. not in 
forward and specifying interfaces in iptables rules etc.

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

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (8 preceding siblings ...)
  2005-06-09 23:48 ` Andy Furniss
@ 2005-06-10  6:23 ` Rio Martin.
  2005-06-13 14:40 ` Andy Furniss
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Rio Martin. @ 2005-06-10  6:23 UTC (permalink / raw)
  To: lartc

On Thursday 09 June 2005 23:48, Andy Furniss wrote:
> Rio Martin. wrote:
> > Tested in my Pentium 4 Router with 512MB RAM when playing with IMQ +
> > iptables marking PREROUTING , FORWARD, POSTROUTING  made this PC dizzy
> > and reboot several times .. he he :))
> > so I think this is the same situation ..
> What kernel are you using - does it crash with a normal setup ie. not in
> forward and specifying interfaces in iptables rules etc.
>
> Andy.


I tried to made dumb rules Andy .. 
after incoming packets  jump  to ( -i eth0 -j IMQ1) i made another jump when 
packets leaving out eth1 (-o eth1 -j IMQ1)

he he he , results, kernel crash and reboot several times when big packets 
arrived. So, enough for the try n error, wont try again.

root@DTC:/home/t3rm# uname -a
Linux DTC 2.4.29 #1 Sat Feb 12 16:26:06 WIT 2005 i686 unknown

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

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (9 preceding siblings ...)
  2005-06-10  6:23 ` Rio Martin.
@ 2005-06-13 14:40 ` Andy Furniss
  2005-06-13 19:00 ` Adis Nezirovic
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Andy Furniss @ 2005-06-13 14:40 UTC (permalink / raw)
  To: lartc

Rio Martin. wrote:

> 
> I tried to made dumb rules Andy .. 
> after incoming packets  jump  to ( -i eth0 -j IMQ1) i made another jump when 
> packets leaving out eth1 (-o eth1 -j IMQ1)
> 
> he he he , results, kernel crash and reboot several times when big packets 
> arrived. So, enough for the try n error, wont try again.
> 
> root@DTC:/home/t3rm# uname -a
> Linux DTC 2.4.29 #1 Sat Feb 12 16:26:06 WIT 2005 i686 unknown
> 
> - Rio.Martin -
> 

Yea I got 2.6.10 IIRC to crash doing similar (to make eth0 single 
duplex) I'll have to try again sometime with a later kernel.

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

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (10 preceding siblings ...)
  2005-06-13 14:40 ` Andy Furniss
@ 2005-06-13 19:00 ` Adis Nezirovic
  2005-06-16  0:05 ` Andy Furniss
  2005-06-16  0:32 ` Andy Furniss
  13 siblings, 0 replies; 15+ messages in thread
From: Adis Nezirovic @ 2005-06-13 19:00 UTC (permalink / raw)
  To: lartc

> > after incoming packets  jump  to ( -i eth0 -j IMQ1) i made another jump when
> > packets leaving out eth1 (-o eth1 -j IMQ1)
> >
> > he he he , results, kernel crash and reboot several times when big packets
> > arrived. So, enough for the try n error, wont try again.

I think kernel panics are triggered by IMQ. I was able to solve that
problem with following rules:

iptables -t mangle -A POSTROUTING -o eth0 -s ! 192.168.100.100 -j IMQ
--todev imq0
iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev imq0

(eth0 is my internal NIC, with 192.168.100.100 ip address).
i.e. no download shaping from "local machine". By using the same IMQ
and NIC device for both, POSTROUTING and PREROUTING, I am able to
simulate "half-duplex" link. (bandwidth for upload/download is
shared).

tcng works great in the above combination.


Kernel 2.6.11.11 (with ck patches)
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (11 preceding siblings ...)
  2005-06-13 19:00 ` Adis Nezirovic
@ 2005-06-16  0:05 ` Andy Furniss
  2005-06-16  0:32 ` Andy Furniss
  13 siblings, 0 replies; 15+ messages in thread
From: Andy Furniss @ 2005-06-16  0:05 UTC (permalink / raw)
  To: lartc

Andy Furniss wrote:
> Rio Martin. wrote:
> 
>>
>> I tried to made dumb rules Andy .. after incoming packets  jump  to ( 
>> -i eth0 -j IMQ1) i made another jump when packets leaving out eth1 (-o 
>> eth1 -j IMQ1)
>>
>> he he he , results, kernel crash and reboot several times when big 
>> packets arrived. So, enough for the try n error, wont try again.
>>
>> root@DTC:/home/t3rm# uname -a
>> Linux DTC 2.4.29 #1 Sat Feb 12 16:26:06 WIT 2005 i686 unknown
>>
>> - Rio.Martin -
>>
> 
> Yea I got 2.6.10 IIRC to crash doing similar (to make eth0 single 
> duplex) I'll have to try again sometime with a later kernel.

Well I tried and I couldn't get 2.6.12-rc1 to crash doesn't mean you 
couldn't of course.

Andy.


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

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

* Re: [LARTC] HTB is being hang my computer :/
  2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
                   ` (12 preceding siblings ...)
  2005-06-16  0:05 ` Andy Furniss
@ 2005-06-16  0:32 ` Andy Furniss
  13 siblings, 0 replies; 15+ messages in thread
From: Andy Furniss @ 2005-06-16  0:32 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

Adis Nezirovic wrote:
>>>after incoming packets  jump  to ( -i eth0 -j IMQ1) i made another jump when
>>>packets leaving out eth1 (-o eth1 -j IMQ1)
>>>
>>>he he he , results, kernel crash and reboot several times when big packets
>>>arrived. So, enough for the try n error, wont try again.
> 
> 
> I think kernel panics are triggered by IMQ. I was able to solve that
> problem with following rules:
> 
> iptables -t mangle -A POSTROUTING -o eth0 -s ! 192.168.100.100 -j IMQ
> --todev imq0
> iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev imq0
> 
> (eth0 is my internal NIC, with 192.168.100.100 ip address).
> i.e. no download shaping from "local machine". By using the same IMQ
> and NIC device for both, POSTROUTING and PREROUTING, I am able to
> simulate "half-duplex" link. (bandwidth for upload/download is
> shared).
> 
> tcng works great in the above combination.
> 
> 
> Kernel 2.6.11.11 (with ck patches)

I am lucky I don't really have to shape for single duplex.

There are alternatives eg if you only need to do forwarded traffic mark 
-i eth0 -o eth1 in forward and visa versa and then jump to imq for the 
marked packets just from postrouting.

If you need to include local traffic and don't need to hook imq after 
de-nat in prerouting you could use a modified dummy device instead.

Replace drivers/net/dummy.c with the one attached rebuild and you can 
shape with it.

I can't find the script I tested but could do another example sometime 
if anyone needed.

Andy.


[-- Attachment #2: dummy.c.gz --]
[-- Type: application/x-gzip, Size: 2952 bytes --]

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

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

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

end of thread, other threads:[~2005-06-16  0:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-08 11:46 [LARTC] HTB is being hang my computer :/ Konrad
2005-06-08 12:25 ` Rio Martin.
2005-06-08 12:43 ` Thomas Graf
2005-06-08 12:51 ` Peter Surda
2005-06-08 12:52 ` Konrad
2005-06-08 12:56 ` Konrad
2005-06-08 13:06 ` Thomas Graf
2005-06-08 13:31 ` Rio Martin.
2005-06-08 13:53 ` Konrad
2005-06-09 23:48 ` Andy Furniss
2005-06-10  6:23 ` Rio Martin.
2005-06-13 14:40 ` Andy Furniss
2005-06-13 19:00 ` Adis Nezirovic
2005-06-16  0:05 ` Andy Furniss
2005-06-16  0:32 ` Andy Furniss

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.