Re: [vpp-dev] vppcom: why __vcl_worker_index is thread local? #vpp

2018-11-28 Thread Florin Coras
I am working on enabling forking with LDP but keep in mind that we mainly 
support it for testing purposes. That is, it can’t work with statically linked 
applications and we don’t plan on supporting all possible 
socket/setsockopts/getsockopts/fcntl options. 

Florin

> On Nov 28, 2018, at 3:15 AM, manuel.alo...@cavium.com wrote:
> 
> Ok, thank you for the clarification. So, as far as I understand, host-stack 
> preloading is not intended to work with forkable(because of the ldp 
> destructor) and/or threadable(because of mentioned index) applications.
> 
> 
> BR,
> Manuel -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#11443): https://lists.fd.io/g/vpp-dev/message/11443
> Mute This Topic: https://lists.fd.io/mt/28286895/675152
> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480544
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [fcoras.li...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11452): https://lists.fd.io/g/vpp-dev/message/11452
Mute This Topic: https://lists.fd.io/mt/28286895/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] vppcom: why __vcl_worker_index is thread local? #vpp

2018-11-28 Thread manuel . alonso
Ok, thank you for the clarification. So, as far as I understand, host-stack 
preloading is not intended to work with forkable(because of the ldp destructor) 
and/or threadable(because of mentioned index) applications.

BR,
Manuel
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11443): https://lists.fd.io/g/vpp-dev/message/11443
Mute This Topic: https://lists.fd.io/mt/28286895/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] vppcom: why __vcl_worker_index is thread local? #vpp

2018-11-23 Thread Florin Coras
It’s done on purpose in order to avoid constant locking. Applications should 
accept new session on the right thread. If you plan to distribute the load 
across multiple workers, then just have them all listen on the same ip:port 
tuple and vpp will load balance. 

Florin

> On Nov 22, 2018, at 6:54 AM, at.man...@gmail.com wrote:
> 
> Hello all,
> Having that index in the thread context is breaking run-time of 
> multi-threaded applications. Most of them accept connections in a main loop 
> and process data in a thread by passing the socket descriptor.
> I understand that there is no data protections across the interface 
> library..but, are there any other reasons, that I might be missing, for that?
> 
> Thanks in advance.
> Manuel -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#11372): https://lists.fd.io/g/vpp-dev/message/11372
> Mute This Topic: https://lists.fd.io/mt/28286895/675152
> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480544
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [fcoras.li...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11390): https://lists.fd.io/g/vpp-dev/message/11390
Mute This Topic: https://lists.fd.io/mt/28286895/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] vppcom: why __vcl_worker_index is thread local? #vpp

2018-11-22 Thread at . manuel
Hello all,
Having that index in the thread context is breaking run-time of multi-threaded 
applications. Most of them accept connections in a main loop and process data 
in a thread by passing the socket descriptor.
I understand that there is no data protections across the interface 
library..but, are there any other reasons, that I might be missing, for that?

Thanks in advance.
Manuel
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11372): https://lists.fd.io/g/vpp-dev/message/11372
Mute This Topic: https://lists.fd.io/mt/28286895/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-