[Click] problems with SMP Click

Kevin Lahey lahey at ISI.EDU
Sat Sep 23 20:05:16 EDT 2006


I've been trying to use Click to source and sink traffic.  With regular,
single-threaded Click, I can get line speed in and out four interfaces
for MTUs of 512 or greater on my dual-CPU 3GHz Xeon boxes.  I had hoped
that going to multithreaded Click would increase my throughput
significantly, but I see the same (or sometimes less) traffic.

This is on Click-1.5.0;  based on a quick and dirty test, Click from CVS
seemed a little slower.  Any ideas?  Is my configuration bogus?  Did I
somehow screw up the static thread scheduling?

elementclass UDPGen {
  $device, $rate, $limit, $size,
  $seth, $sip, $sport, $deth, $dip, $dport |

  source :: FastUDPSource($rate, $limit, $size, $seth, $sip, $sport,
                                                $deth, $dip, $dport);
  pd :: PollDevice($device) -> AverageCounter -> Discard;
  source -> td :: ToDevice($device);
};

eth0 :: UDPGen(eth0, 1488095, 148809500, 64, 
		 00:04:23:C5:E3:6A, 10.1.1.2, 1234,
		 00:04:23:c5:d7:8c, 10.1.1.3, 1234);

eth1 :: UDPGen(eth1, 1488095, 148809500, 64, 
		 00:04:23:C5:E3:6B, 10.1.2.2, 1234,
		 00:04:23:c5:d7:8d, 10.1.2.3, 1234);

eth2 :: UDPGen(eth2, 1488095, 148809500, 64, 
		 00:04:23:C5:E1:4E, 10.1.3.2, 1234,
		 00:04:23:c5:d5:5e, 10.1.3.3, 1234);

eth3 :: UDPGen(eth3, 1488095, 148809500, 64, 
		 00:04:23:C5:E1:4F, 10.1.4.2, 1234,
		 00:04:23:c5:d5:5f, 10.1.4.3, 1234);

StaticThreadSched(eth0/source 0, eth0/pd 0, eth1/source 1, eth1/pd 1,
eth2/source 0, eth2/pd 0, eth3/source 1, eth3/pd 1);

Thanks!

Kevin Lahey
lahey at isi.edu


More information about the click mailing list