[LARTC] HTB High CPU Utilization
Gerardo Arceri
elfarto@elfarto.com.ar
Fri, 03 Dec 2004 17:41:43 -0300
This is a multi-part message in MIME format.
--------------050805050602020002010600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi, i'm running a Bridge/iptables firewall, with no tc filters
configured CPU utilization barely reaches 1%, i had to rate limit one
particular server outgoing traffic and setup a HTB scheme like this
iptables -F PREROUTING -t mangle
iptables -A PREROUTING -t mangle -p tcp -s 99.99.99.99 -j MARK --set-mark 2
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 10: htb default 10
tc class add dev eth0 parent 10: classid 10:3 htb rate 1000kbit ceil
1000kbit
tc filter add dev eth0 parent 10: protocol ip prio 3 handle 2 fw classid
10:3
Now i'm seeing CPU Utilization beyond 30% and load averages of 0.79, the
network total bandwidth is 20Mb/s. The server is a linux kernel
2.6.7-gentoo-r8 running on a P4 1.7 Ghz.
Is this normal behaviour ? is there any error in my configuration or in
my kernel config ?
Thanks!
--------------050805050602020002010600
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Trebuchet MS">Hi, i'm running a
Bridge/iptables firewall, with no tc filters configured CPU utilization
barely reaches 1%, i had to rate limit one particular server outgoing
traffic and setup a HTB scheme like this<br>
<br>
iptables -F PREROUTING -t mangle<br>
iptables -A PREROUTING -t mangle -p tcp -s 99.99.99.99 -j MARK
--set-mark 2<br>
tc qdisc del dev eth0 root<br>
tc qdisc add dev eth0 root handle 10: htb default 10<br>
tc class add dev eth0 parent 10: classid 10:3 htb rate 1000kbit ceil
1000kbit<br>
tc filter add dev eth0 parent 10: protocol ip prio 3 handle 2 fw
classid 10:3<br>
<br>
Now i'm seeing CPU Utilization beyond 30% and load averages of 0.79,
the network total bandwidth is 20Mb/s. The server is a linux kernel
2.6.7-gentoo-r8 running on a P4 1.7 Ghz.<br>
Is this normal behaviour ? is there any error in my configuration or in
my kernel config ?<br>
Thanks!<br>
<br>
</font></font>
</body>
</html>
--------------050805050602020002010600--