[LARTC] WRR problem and other things
Paweł Staszewski
pstaszewski@artcom.pl
Tue, 31 Aug 2004 20:59:03 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0020_01C48F9D.58F49D40
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Hello=20
I have problem with wrr and more than 1300 classes
when i try to add qdisc like:
tc qdisc add dev imq1 parent 1:21 handle 1000: wrr dest ip 1512 0
then i have a message like:
RTNETLINK answers: Cannot allocate memory
And some other problem:
When I do more than 2048 filters I have message like:
Classes:
tc class add dev imq1 parent 1:1 classid 1:9 htb rate 1024kbit ceil =
2048kbit
..
tc class add dev imq1 parent 1:1 classid 1:10 htb rate 1024kbit ceil =
2048kbit
...
...
...
tc class add dev imq1 parent 1:1 classid 1:2048 htb rate 1024kbit ceil =
2048kbit
tc class add dev imq1 parent 1:1 classid 1:2049 htb rate 1024kbit ceil =
2048kbit
tc class add dev imq1 parent 1:1 classid 1:2050 htb rate 1024kbit ceil =
2048kbit
Filters:
tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip dst =
1.1.1.1 flowid 1:9
..
tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip dst =
1.1.1.1 flowid 1:10
...
...
...
tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip dst =
1.1.1.1 flowid 1:2048
RTNETLINK answers: File exist
tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip dst =
1.1.1.1 flowid 1:2049
RTNETLINK answers: File exist
tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip dst =
1.1.1.1 flowid 1:2050
RTNETLINK answers: File exist
So classes are added corectly but filters not. WHY ....=20
Please help me
Regards
Pawe=B3 Staszewski
------=_NextPart_000_0020_01C48F9D.58F49D40
Content-Type: text/html;
charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-2">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have problem with wrr and more than =
1300=20
classes</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>when i try to add qdisc =
like:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>tc qdisc add dev imq1 parent 1:21 =
handle 1000: wrr=20
dest ip 1512 0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>then i have a message =
like:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>RTNETLINK answers: Cannot allocate=20
memory</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>And some other problem:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When I do more than 2048 filters I have =
message=20
like:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Classes:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>tc class add dev imq1 parent 1:1 =
classid=20
1:9 htb rate 1024kbit ceil 2048kbit</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>tc class add dev imq1 parent 1:1 =
classid=20
1:10 htb rate 1024kbit ceil 2048kbit</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>tc class add dev imq1 parent 1:1 =
classid=20
1:2048 htb rate 1024kbit ceil 2048kbit</FONT></DIV>
<DIV>tc class add dev imq1 parent 1:1 classid 1:2049 htb rate =
1024kbit ceil=20
2048kbit</DIV>
<DIV>tc class add dev imq1 parent 1:1 classid 1:2050 htb rate =
1024kbit ceil=20
2048kbit</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Filters:</DIV>
<DIV>tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip=20
dst 1.1.1.1 flowid 1:9</DIV>
<DIV>..</DIV>
<DIV>tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip=20
dst 1.1.1.1 flowid 1:10</DIV>
<DIV>...</DIV>
<DIV>...</DIV>
<DIV>...</DIV>
<DIV>tc filter add dev imq1 parent 1:0 protocol ip prio 2 u32 match ip=20
dst 1.1.1.1 flowid 1:2048</DIV>
<DIV></FONT><FONT face=3DArial size=3D2>RTNETLINK answers: File =
exist</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>tc filter add dev imq1 parent 1:0 =
protocol ip prio=20
2 u32 match ip dst 1.1.1.1 flowid 1:2049</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>RTNETLINK answers: File =
exist</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>tc filter add dev imq1 parent 1:0 =
protocol ip prio=20
2 u32 match ip dst 1.1.1.1 flowid 1:2050</FONT></DIV>
<DIV>RTNETLINK answers: File exist</DIV>
<DIV> </DIV>
<DIV>So classes are added corectly but filters not. WHY .... </DIV>
<DIV> </DIV>
<DIV>Please help me</DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV>Pawe=B3 Staszewski</DIV></FONT></DIV></DIV></BODY></HTML>
------=_NextPart_000_0020_01C48F9D.58F49D40--