Re: [vpp-dev] Query on configuration on multithread mode

2017-10-17 Thread Damjan Marion

My wild guess here is that you are doing barrier sync on each session.With more 
workers sync takes longer….

> On 17 Oct 2017, at 08:56, Ni, Hongjun  wrote:
> 
> Hi vpp-dev,
>  
> We are doing performance test in multithread mode, and have a doubt:
>  
> (1). For one main thread and one worker thread, then configuring 16K PPPoE 
> sessions took about100 seconds.
> (2). For one main thread and eight worker thread, then configuring 16K PPPoE 
> sessions took about260 seconds.
> Why is there such a difference of consumed time?
>  
> The second question is:
> In multi-thread mode, are all created tables in VLIB_INIT_FUNCTION 
> (pppoe_init) shared by all worker threads,
> Or each worker thread has its own copy of each table?
>  
> Thanks a lot,
> Hongjun
> ___
> vpp-dev mailing list
> vpp-dev@lists.fd.io 
> https://lists.fd.io/mailman/listinfo/vpp-dev 
> 
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] Query on configuration on multithread mode

2017-10-17 Thread Ni, Hongjun
Hi vpp-dev,

We are doing performance test in multithread mode, and have a doubt:

(1). For one main thread and one worker thread, then configuring 16K PPPoE 
sessions took about 100 seconds.
(2). For one main thread and eight worker thread, then configuring 16K PPPoE 
sessions took about 260 seconds.
Why is there such a difference of consumed time?

The second question is:
In multi-thread mode, are all created tables in VLIB_INIT_FUNCTION (pppoe_init) 
shared by all worker threads,
Or each worker thread has its own copy of each table?

Thanks a lot,
Hongjun
___
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev