[Click] Kernel Click multithreading

Tom Gibson tom.gibson at ipvidnet.com
Thu Apr 9 19:22:02 EDT 2009


What would a simple click config look like to test utilizing all my
available CPU cores with simulated data?

I tried the following, but I'm not seeing more than 1 core utilized:

InfiniteSource(\<0800>) -> rate1 :: Counter() -> Discard;
InfiniteSource(\<0800>) -> rate2 :: Counter() -> Discard;
InfiniteSource(\<0800>) -> rate3 :: Counter() -> Discard;
InfiniteSource(\<0800>) -> rate4 :: Counter() -> Discard;
InfiniteSource(\<0800>) -> rate5 :: Counter() -> Discard;
InfiniteSource(\<0800>) -> rate6 :: Counter() -> Discard;


I read that a single scheduled element only ever executes on one thread.  I
figured making 6 InfiniteSource elements would cause 6 cores to be utilized.

I configured click with --enable-multithread=8  and installed with -t 6.
What am I missing?

-Tom


More information about the click mailing list