[Click] ..use cpu 100%

Jiangbo Li jblicn at yahoo.com.cn
Mon Nov 3 03:45:08 EST 2003


> > my cpu usage is 100% always...it's normal??
> 
> do you use PollDevice in your configuration ? Then it is 
> normal as the  ethernet cards are polled continuously. If
> you use only FromDevice elements then it should not happen.

I use FromDevice in Linux 2.4.20 kernel, and my cpu usage is also
100% always. I even checked out the newest Click from the CVS
tonight. It's the same.

I have two Ethernet cards. Both of them are Realtek RTL8139. 
At the bottom of this email is my configuration file which was generated
by make-ip-conf.pl

Can anyone tell me what's wrong?

Thanks a lot.

Jiangbo Li

// Generated by make-ip-conf.pl
// eth0 192.168.0.2 00:C0:A8:8F:1E:39
// eth1 169.254.1.1 00:30:BD:09:18:8D

// Shared IP input path and routing table
ip :: Strip(14)
    -> CheckIPHeader(INTERFACES 192.168.0.2/255.255.255.0
169.254.1.1/255.255.255.0)
    -> rt :: StaticIPLookup(
	192.168.0.2/32 0,
	192.168.0.255/32 0,
	192.168.0.0/32 0,
	169.254.1.1/32 0,
	169.254.1.255/32 0,
	169.254.1.0/32 0,
	192.168.0.0/255.255.255.0 1,
	169.254.1.0/255.255.255.0 2,
	255.255.255.255/32 0.0.0.0 0,
	0.0.0.0/32 0,
	0.0.0.0/0.0.0.0 192.168.0.1 1);

// ARP responses are copied to each ARPQuerier and the host.
arpt :: Tee(3);

// Input and output paths for eth0
c0 :: Classifier(12/0806 20/0001, 12/0806 20/0002, 12/0800, -);
FromDevice(eth0) -> c0;
out0 :: Queue(200) -> todevice0 :: ToDevice(eth0);
c0[0] -> ar0 :: ARPResponder(192.168.0.2 00:C0:A8:8F:1E:39) -> out0;
arpq0 :: ARPQuerier(192.168.0.2, 00:C0:A8:8F:1E:39) -> out0;
c0[1] -> arpt;
arpt[0] -> [1]arpq0;
c0[2] -> Paint(1) -> ip;
c0[3] -> Print("eth0 non-IP") -> Discard;

// Input and output paths for eth1
c1 :: Classifier(12/0806 20/0001, 12/0806 20/0002, 12/0800, -);
FromDevice(eth1) -> c1;
out1 :: Queue(200) -> todevice1 :: ToDevice(eth1);
c1[0] -> ar1 :: ARPResponder(169.254.1.1 00:30:BD:09:18:8D) -> out1;
arpq1 :: ARPQuerier(169.254.1.1, 00:30:BD:09:18:8D) -> out1;
c1[1] -> arpt;
arpt[1] -> [1]arpq1;
c1[2] -> Paint(2) -> ip;
c1[3] -> Print("eth1 non-IP") -> Discard;

// Local delivery
toh :: ToHost;
arpt[2] -> toh;
rt[0] -> EtherEncap(0x0800, 1:1:1:1:1:1, 2:2:2:2:2:2) -> toh;

// Forwarding path for eth0
rt[1] -> DropBroadcasts
    -> cp0 :: PaintTee(1)
    -> gio0 :: IPGWOptions(192.168.0.2)
    -> FixIPSrc(192.168.0.2)
    -> dt0 :: DecIPTTL
    -> fr0 :: IPFragmenter(1500)
    -> [0]arpq0;
dt0[1] -> ICMPError(192.168.0.2, timeexceeded) -> rt;
fr0[1] -> ICMPError(192.168.0.2, unreachable, needfrag) -> rt;
gio0[1] -> ICMPError(192.168.0.2, parameterproblem) -> rt;
cp0[1] -> ICMPError(192.168.0.2, redirect, host) -> rt;

// Forwarding path for eth1
rt[2] -> DropBroadcasts
    -> cp1 :: PaintTee(2)
    -> gio1 :: IPGWOptions(169.254.1.1)
    -> FixIPSrc(169.254.1.1)
    -> dt1 :: DecIPTTL
    -> fr1 :: IPFragmenter(1500)
    -> [0]arpq1;
dt1[1] -> ICMPError(169.254.1.1, timeexceeded) -> rt;
fr1[1] -> ICMPError(169.254.1.1, unreachable, needfrag) -> rt;
gio1[1] -> ICMPError(169.254.1.1, parameterproblem) -> rt;
cp1[1] -> ICMPError(169.254.1.1, redirect, host) -> rt;




More information about the click mailing list