[Click] Multi-threaded Traffic Generation

Nilay Vaish nilay at cs.wisc.edu
Tue Feb 1 20:13:38 EST 2011


Did you try the configuration that we had mailed? Does it work on your 
setup?

--
Nilay

On Tue, 1 Feb 2011, Roman Chertov wrote:

> I am not sure what your MQToDevice element does (i assume it uses multiple tx
> queues for a single device).
>
> However, with the script below
> pd0 :: InfiniteSource(DATA \<00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00
>       45 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01
>       02 00 00 02  13 69 13 69  00 14 d6 41  55 44 50 20
>       70 61 63 6b  65 74 21 0a  04 00 00 00  01 00 00 00
>       01 00 00 00  00 00 00 00  00 80 04 08  00 80 04 08
>       53 53 00 00  53 53 00 00  05 00 00 00  00 10 00 00
>       01 00 00 00  54 53 00 00  54 e3 04 08  54 e3 04 08
>       d8 01 00 00>, LIMIT -1, STOP true)
>    -> q1 :: CPUQueue(1000)
>    -> uq0 :: Unqueue2
>    -> Discard;
>
> StaticThreadSched(pd0 0, uq0 0);
>
> pd1 :: RandomSource(1400)
>    -> q2 :: CPUQueue(1000)
>    -> uq1 :: Unqueue2
>    -> Discard;
>
> When I run top, I can see to kclick hogging up two CPUs.
>
> Roman
>
>
> On Tue, 1 Feb 2011 18:38:19 -0600 "Nilay" <nilay at cs.wisc.edu> wrote
>
>> gen2.conf looks like
>>
>> pd0 :: InfiniteSource(DATA \<00 00 c0 ae 67 ef  00 00 00 00 00 00  08 00
>> 45 00 00 28  00 00 00 00  40 11 77 c3  01 00 00 01
>> 02 00 00 02  13 69 13 69  00 14 d6 41  55 44 50 20
>> 70 61 63 6b  65 74 21 0a  04 00 00 00  01 00 00 00
>> 01 00 00 00  00 00 00 00  00 80 04 08  00 80 04 08
>> 53 53 00 00  53 53 00 00  05 00 00 00  00 10 00 00
>> 01 00 00 00  54 53 00 00  54 e3 04 08  54 e3 04 08
>> d8 01 00 00>, LIMIT -1, STOP true) ->
>> q1 :: CPUQueue(1000) ->
>> td0 :: MQToDevice(eth1, QUEUE 0, BURST 32);
>> StaticThreadSched(pd0 0, td0 0);
>>
>> pd1 :: RandomSource(1400) ->
>> q2 :: CPUQueue(1000) ->
>> td1 :: MQToDevice(eth1, QUEUE 1, BURST 32);
>> StaticThreadSched(pd1 1, td1 1);
>>
>> ~
>>


More information about the click mailing list