On 12/17/2015 07:51 AM, Alexandru Badicioiu wrote:
>
>
> On 17 December 2015 at 00:50, Mike Holmes <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     with apply and build
>
>     Using patch: lng-odp_PATCH_v2_test_performance_add_crypto_test.mbox
>       Trying to apply patch
>       Patch applied
>
>     WARNING: 'Imediately' may be misspelled - perhaps 'Immediately'?
>     #645: FILE: test/performance/odp_crypto.c:582:
>     + print_mem("Imediately encrypted packet", mem,
>
>     total: 0 errors, 1 warnings, 0 checks, 958 lines checked
>
>     And compiling
>
[...]
>
>      
>
>         > +     } else if (cargs.poll) {
>         > +             printf("Run in async poll mode\n");
>         > +     } else {
>         > +             printf("Run in sync mode\n");
>         > +     }
>         > +
>         > +     if (cargs.alg_config) {
>         > +             if (cargs.schedule) {
>         > +                     odph_linux_pthread_create(&thr, &cpumask,
>         > +                                               run_thr_func, 
> &thr_arg);
>         > +                     odph_linux_pthread_join(&thr, num_workers);
>         > +             } else {
>         > +                     run_measure_one_config(&cargs, 
> cargs.alg_config);
>         > +             }
>         Why is there only multithreading in schedule mode?
>
>
>     Not sure, Alex is there a technical reason ?
>
> [Alex] Not sure I understand the question - I guess the intent was to ask 
> "why is there only one thread". Or the question was "why there's a separate 
> thread to run the test"? 
>
>

Your test supports both schedule and poll mode. In schedule mode you spawn 
several threads but in poll mode, you use only one.
It's been a long time since I've read this patch so I'm not sure but I think my 
question is why is multithreading linked to the schedule mode?
Couldn't we select schedule vs poll, single vs multi thread

Nicolas

_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to